#include <native_arguments.h>
Definition at line 79 of file native_arguments.h.
◆ ArgAt()
Definition at line 86 of file native_arguments.h.
86 {
88 ObjectPtr* arg_ptr = &(argv_[-index]);
89
91 return *arg_ptr;
92 }
#define MSAN_UNPOISON(ptr, len)
constexpr intptr_t kWordSize
◆ argc_tag_offset()
static intptr_t dart::NativeArguments::argc_tag_offset |
( |
| ) |
|
|
inlinestatic |
◆ ArgCount()
int dart::NativeArguments::ArgCount |
( |
| ) |
const |
|
inline |
◆ argv_offset()
static intptr_t dart::NativeArguments::argv_offset |
( |
| ) |
|
|
inlinestatic |
◆ ComputeArgcTag()
static int dart::NativeArguments::ComputeArgcTag |
( |
const Function & |
function | ) |
|
|
inlinestatic |
Definition at line 177 of file native_arguments.h.
177 {
181 int argc =
function.NumParameters();
182 int function_bits = 0;
184 function_bits |= kGenericFunctionBit;
185 argc++;
186 }
188 tag = FunctionBits::update(function_bits, tag);
189 return tag;
190 }
static void encode(uint8_t output[16], const uint32_t input[4])
Dart_NativeFunction function
◆ NativeArg0()
ObjectPtr dart::NativeArguments::NativeArg0 |
( |
| ) |
const |
|
inline |
Definition at line 106 of file native_arguments.h.
106 {
108 return ArgAt(NumHiddenArgs(function_bits));
109 }
ObjectPtr ArgAt(int index) const
◆ NativeArgAt()
ObjectPtr dart::NativeArguments::NativeArgAt |
( |
int |
index | ) |
const |
|
inline |
Definition at line 111 of file native_arguments.h.
111 {
113 if (index == 0) {
115 }
117 const int actual_index = index + NumHiddenArgs(function_bits);
118 return ArgAt(actual_index);
119 }
int NativeArgCount() const
ObjectPtr NativeArg0() const
◆ NativeArgCount()
int dart::NativeArguments::NativeArgCount |
( |
| ) |
const |
|
inline |
◆ NativeTypeArgAt()
AbstractTypePtr dart::NativeArguments::NativeTypeArgAt |
( |
int |
index | ) |
const |
|
inline |
Definition at line 138 of file native_arguments.h.
138 {
141 if (type_args.IsNull()) {
142
143 return Type::dynamic_type().ptr();
144 }
145 return type_args.TypeAt(index);
146 }
int NativeTypeArgCount() const
TypeArgumentsPtr NativeTypeArgs() const
◆ NativeTypeArgCount()
int dart::NativeArguments::NativeTypeArgCount |
( |
| ) |
const |
|
inline |
Definition at line 126 of file native_arguments.h.
126 {
127 if (ToGenericFunction()) {
129 if (type_args.IsNull()) {
130
131 return INT_MAX;
132 }
133 return type_args.Length();
134 }
135 return 0;
136 }
◆ NativeTypeArgs()
TypeArgumentsPtr dart::NativeArguments::NativeTypeArgs |
( |
| ) |
const |
|
inline |
Definition at line 121 of file native_arguments.h.
121 {
122 ASSERT(ToGenericFunction());
124 }
static ObjectPtr RawCast(ObjectPtr obj)
◆ ParameterCountForResolution()
static intptr_t dart::NativeArguments::ParameterCountForResolution |
( |
const Function & |
function | ) |
|
|
inlinestatic |
◆ ReturnValue()
ObjectPtr dart::NativeArguments::ReturnValue |
( |
| ) |
const |
|
inline |
◆ retval_offset()
static intptr_t dart::NativeArguments::retval_offset |
( |
| ) |
|
|
inlinestatic |
◆ SetArgAt()
void dart::NativeArguments::SetArgAt |
( |
int |
index, |
|
|
const Object & |
value |
|
) |
| const |
|
inline |
Definition at line 94 of file native_arguments.h.
94 {
97 argv_[-index] =
value.ptr();
98 }
ExecutionState execution_state() const
◆ SetReturn()
void dart::NativeArguments::SetReturn |
( |
const Object & |
value | ) |
const |
|
inline |
◆ thread()
Thread * dart::NativeArguments::thread |
( |
| ) |
const |
|
inline |
◆ thread_offset()
static intptr_t dart::NativeArguments::thread_offset |
( |
| ) |
|
|
inlinestatic |
◆ Api
◆ NativeEntry
◆ Simulator
The documentation for this class was generated from the following file: