Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
dart::NativeEntryData Class Reference

#include <native_entry.h>

Inheritance diagram for dart::NativeEntryData:
dart::ValueObject

Public Member Functions

 NativeEntryData (const TypedData &data)
 
MethodRecognizer::Kind kind () const
 
void set_kind (MethodRecognizer::Kind value) const
 
NativeFunctionWrapper trampoline () const
 
void set_trampoline (NativeFunctionWrapper value) const
 
NativeFunction native_function () const
 
void set_native_function (NativeFunction value) const
 
intptr_t argc_tag () const
 
void set_argc_tag (intptr_t value) const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Static Public Member Functions

static MethodRecognizer::Kind GetKind (TypedDataPtr data)
 
static NativeFunctionWrapper GetTrampoline (TypedDataPtr data)
 
static NativeFunction GetNativeFunction (TypedDataPtr data)
 
static intptr_t GetArgcTag (TypedDataPtr data)
 
static TypedDataPtr New (MethodRecognizer::Kind kind, NativeFunctionWrapper trampoline, NativeFunction native_function, intptr_t argc_tag)
 

Friends

class ObjectPoolSerializationCluster
 

Detailed Description

Definition at line 136 of file native_entry.h.

Constructor & Destructor Documentation

◆ NativeEntryData()

dart::NativeEntryData::NativeEntryData ( const TypedData data)
inlineexplicit

Definition at line 138 of file native_entry.h.

138: data_(data) {}
static int8_t data[kExtLength]

Member Function Documentation

◆ argc_tag()

intptr_t dart::NativeEntryData::argc_tag ( ) const

Definition at line 380 of file native_entry.cc.

380 {
381 return FromTypedArray(data_.ptr())->argc_tag;
382}
ObjectPtr ptr() const
Definition: object.h:332

◆ GetArgcTag()

intptr_t dart::NativeEntryData::GetArgcTag ( TypedDataPtr  data)
static

Definition at line 388 of file native_entry.cc.

388 {
389 return FromTypedArray(data)->argc_tag;
390}

◆ GetKind()

MethodRecognizer::Kind dart::NativeEntryData::GetKind ( TypedDataPtr  data)
static

Definition at line 352 of file native_entry.cc.

352 {
353 return FromTypedArray(data)->kind;
354}

◆ GetNativeFunction()

NativeFunction dart::NativeEntryData::GetNativeFunction ( TypedDataPtr  data)
static

Definition at line 376 of file native_entry.cc.

376 {
377 return FromTypedArray(data)->native_function;
378}

◆ GetTrampoline()

NativeFunctionWrapper dart::NativeEntryData::GetTrampoline ( TypedDataPtr  data)
static

Definition at line 364 of file native_entry.cc.

364 {
365 return FromTypedArray(data)->trampoline;
366}

◆ kind()

MethodRecognizer::Kind dart::NativeEntryData::kind ( ) const

Definition at line 344 of file native_entry.cc.

344 {
345 return FromTypedArray(data_.ptr())->kind;
346}

◆ native_function()

NativeFunction dart::NativeEntryData::native_function ( ) const

Definition at line 368 of file native_entry.cc.

368 {
369 return FromTypedArray(data_.ptr())->native_function;
370}

◆ New()

TypedDataPtr dart::NativeEntryData::New ( MethodRecognizer::Kind  kind,
NativeFunctionWrapper  trampoline,
NativeFunction  native_function,
intptr_t  argc_tag 
)
static

Definition at line 392 of file native_entry.cc.

395 {
396 const TypedData& data = TypedData::Handle(
397 TypedData::New(kTypedDataUint8ArrayCid, sizeof(Payload), Heap::kOld));
398 NativeEntryData native_entry(data);
399 native_entry.set_kind(kind);
400 native_entry.set_trampoline(trampoline);
401 native_entry.set_native_function(native_function);
402 native_entry.set_argc_tag(argc_tag);
403 return data.ptr();
404}
@ kOld
Definition: heap.h:39
NativeEntryData(const TypedData &data)
Definition: native_entry.h:138
NativeFunctionWrapper trampoline() const
intptr_t argc_tag() const
MethodRecognizer::Kind kind() const
NativeFunction native_function() const
static Object & Handle()
Definition: object.h:407
static TypedDataPtr New(intptr_t class_id, intptr_t len, Heap::Space space=Heap::kNew)
Definition: object.cc:25587

◆ set_argc_tag()

void dart::NativeEntryData::set_argc_tag ( intptr_t  value) const

Definition at line 384 of file native_entry.cc.

384 {
385 FromTypedArray(data_.ptr())->argc_tag = value;
386}
uint8_t value

◆ set_kind()

void dart::NativeEntryData::set_kind ( MethodRecognizer::Kind  value) const

Definition at line 348 of file native_entry.cc.

348 {
349 FromTypedArray(data_.ptr())->kind = value;
350}

◆ set_native_function()

void dart::NativeEntryData::set_native_function ( NativeFunction  value) const

Definition at line 372 of file native_entry.cc.

372 {
373 FromTypedArray(data_.ptr())->native_function = value;
374}

◆ set_trampoline()

void dart::NativeEntryData::set_trampoline ( NativeFunctionWrapper  value) const

Definition at line 360 of file native_entry.cc.

360 {
361 FromTypedArray(data_.ptr())->trampoline = value;
362}

◆ trampoline()

NativeFunctionWrapper dart::NativeEntryData::trampoline ( ) const

Definition at line 356 of file native_entry.cc.

356 {
357 return FromTypedArray(data_.ptr())->trampoline;
358}

Friends And Related Function Documentation

◆ ObjectPoolSerializationCluster

friend class ObjectPoolSerializationCluster
friend

Definition at line 173 of file native_entry.h.


The documentation for this class was generated from the following files: