V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
g
i
k
n
p
r
s
t
Functions
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
a
c
d
e
h
k
l
n
o
s
Typedefs
Enumerations
+
Files
File List
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
arguments-inl.h
1
// Copyright 2018 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_ARGUMENTS_INL_H_
6
#define V8_ARGUMENTS_INL_H_
7
8
#include "src/arguments.h"
9
10
#include "src/handles-inl.h"
11
#include "src/objects-inl.h"
12
13
namespace
v8
{
14
namespace
internal {
15
16
template
<
class
S>
17
Handle<S> Arguments::at(
int
index) {
18
return
Handle<S>::cast(at<Object>(index));
19
}
20
21
int
Arguments::smi_at(
int
index) {
22
// TODO(3770): Clean this up when Smi::ToInt supports ObjectPtr inputs.
23
return
Smi::ToInt(reinterpret_cast<Object*>(*address_of_arg_at(index)));
24
}
25
26
double
Arguments::number_at(
int
index) {
return
(*
this
)[index]->Number(); }
27
28
}
// namespace internal
29
}
// namespace v8
30
31
#endif // V8_ARGUMENTS_INL_H_
v8
Definition:
libplatform.h:13
v8
src
arguments-inl.h
Generated on Tue Dec 25 2018 14:37:57 by
1.8.14