diff options
Diffstat (limited to 'deps/v8/src/arguments-inl.h')
-rw-r--r-- | deps/v8/src/arguments-inl.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/deps/v8/src/arguments-inl.h b/deps/v8/src/arguments-inl.h deleted file mode 100644 index e596d44117..0000000000 --- a/deps/v8/src/arguments-inl.h +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef V8_ARGUMENTS_INL_H_ -#define V8_ARGUMENTS_INL_H_ - -#include "src/arguments.h" - -#include "src/handles-inl.h" -#include "src/objects-inl.h" // TODO(jkummerow): Just smi-inl.h. - -namespace v8 { -namespace internal { - -template <class S> -Handle<S> Arguments::at(int index) { - return Handle<S>::cast(at<Object>(index)); -} - -int Arguments::smi_at(int index) { - return Smi::ToInt(Object(*address_of_arg_at(index))); -} - -double Arguments::number_at(int index) { return (*this)[index]->Number(); } - -} // namespace internal -} // namespace v8 - -#endif // V8_ARGUMENTS_INL_H_ |