5#ifndef RUNTIME_VM_DART_ENTRY_H_
6#define RUNTIME_VM_DART_ENTRY_H_
39 intptr_t
Count()
const;
40 intptr_t
Size()
const;
44 StringPtr
NameAt(intptr_t i)
const;
83 static ArrayPtr
NewBoxed(intptr_t type_args_len,
84 intptr_t num_arguments,
85 const Array& optional_arguments_names,
87 return New(type_args_len, num_arguments, num_arguments,
88 optional_arguments_names, space);
96 static ArrayPtr
New(intptr_t type_args_len,
97 intptr_t num_arguments,
98 intptr_t size_arguments,
99 const Array& optional_arguments_names,
107 intptr_t num_arguments,
109 return New(type_args_len, num_arguments, num_arguments, space);
116 static ArrayPtr
New(intptr_t type_args_len,
117 intptr_t num_arguments,
118 intptr_t size_arguments,
142 kPositionalCountIndex,
143 kFirstNamedEntryIndex,
157 static intptr_t LengthFor(intptr_t num_named_arguments) {
159 return kFirstNamedEntryIndex + (kNamedEntrySize * num_named_arguments) + 1;
162 static ArrayPtr NewNonCached(intptr_t type_args_len,
163 intptr_t num_arguments,
164 intptr_t size_arguments,
169 static intptr_t name_index(intptr_t index) {
170 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kNameOffset;
173 static intptr_t position_index(intptr_t index) {
174 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kPositionOffset;
197 const Array& arguments);
203 const Array& arguments_descriptor,
204 const Array& arguments,
211 const Array& arguments,
212 const Array& arguments_descriptor);
230 const Array& arguments,
231 const Array& arguments_descriptor);
237 const String& target_name,
238 const Array& arguments,
239 const Array& arguments_descriptor);
251 const Array& arguments,
252 const Array& arguments_descriptor);
261 const Array& arguments,
262 const Array& arguments_descriptor);
271 const String& exception_name,
272 const String& constructor_name,
273 const Array& arguments);
308 const Object& array_or_growable_array);
313 const Object& array_or_growable_array);
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static intptr_t type_args_len_offset()
intptr_t PositionalCount() const
bool MatchesNameAt(intptr_t i, const String &other) const
static intptr_t position_offset()
intptr_t NamedCount() const
const char * ToCString() const
static intptr_t named_entry_size()
static intptr_t size_offset()
static intptr_t positional_count_offset()
static intptr_t count_offset()
static ArrayPtr New(intptr_t type_args_len, intptr_t num_arguments, intptr_t size_arguments, const Array &optional_arguments_names, Heap::Space space=Heap::kOld)
static ArrayPtr NewBoxed(intptr_t type_args_len, intptr_t num_arguments, Heap::Space space=Heap::kOld)
void PrintTo(BaseTextBuffer *buffer, bool show_named_positions=false) const
ArrayPtr GetArgumentNames() const
intptr_t SizeWithTypeArgs() const
static constexpr bool ContainsCompressedPointers()
static intptr_t name_offset()
static ArrayPtr NewBoxed(intptr_t type_args_len, intptr_t num_arguments, const Array &optional_arguments_names, Heap::Space space=Heap::kOld)
static intptr_t first_named_entry_offset()
intptr_t CountWithTypeArgs() const
intptr_t FirstArgIndex() const
intptr_t TypeArgsLen() const
intptr_t PositionAt(intptr_t i) const
StringPtr NameAt(intptr_t i) const
static intptr_t element_offset(intptr_t index)
static ObjectPtr InvokeNoSuchMethod(Thread *thread, const Instance &receiver, const String &target_name, const Array &arguments, const Array &arguments_descriptor)
static ObjectPtr InvokeClosure(Thread *thread, const Array &arguments)
static ObjectPtr InvokeFunction(const Function &function, const Array &arguments)
static ObjectPtr HashCode(const Instance &receiver)
static ObjectPtr HandleMessage(Dart_Port port_id, const Instance &message)
static ObjectPtr RehashObjectsInDartCollection(Thread *thread, const Object &array_or_growable_array)
static ObjectPtr LookupHandler(Dart_Port port_id)
static ObjectPtr EnsureScheduleImmediate()
static ObjectPtr HandleFinalizerMessage(const FinalizerBase &finalizer)
static ObjectPtr RehashObjectsInDartCore(Thread *thread, const Object &array_or_growable_array)
static ObjectPtr InstanceCreate(const Library &library, const String &exception_name, const String &constructor_name, const Array &arguments)
static ObjectPtr LookupOpenPorts()
static ObjectPtr Equals(const Instance &left, const Instance &right)
static ObjectPtr ToString(const Instance &receiver)
static ObjectPtr DrainMicrotaskQueue()
static constexpr bool ContainsCompressedPointers()
static const uint8_t buffer[]
Dart_NativeFunction function
static constexpr intptr_t kCompressedWordSize