Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::compiler::target::Instance Class Reference

#include <runtime_api.h>

Inheritance diagram for dart::compiler::target::Instance:
dart::AllStatic

Static Public Member Functions

static word first_field_offset ()
 
static word native_fields_array_offset ()
 
static word DataOffsetFor (intptr_t cid)
 
static word ElementSizeFor (intptr_t cid)
 
static word InstanceSize ()
 
static word NextFieldOffset ()
 

Detailed Description

Definition at line 515 of file runtime_api.h.

Member Function Documentation

◆ DataOffsetFor()

word dart::compiler::target::Instance::DataOffsetFor ( intptr_t  cid)
static

Definition at line 555 of file runtime_api.cc.

555 {
557 // Elements start at offset 0 of the external data.
558 return 0;
559 }
562 }
563 switch (cid) {
564 case kArrayCid:
565 case kImmutableArrayCid:
566 return Array::data_offset();
567 case kTypeArgumentsCid:
569 case kOneByteStringCid:
571 case kTwoByteStringCid:
573 case kRecordCid:
574 return Record::field_offset(0);
575 default:
577 return Array::data_offset();
578 }
579}
static word field_offset(intptr_t index)
#define UNIMPLEMENTED
bool IsTypedDataClassId(intptr_t index)
Definition: class_id.h:433
const intptr_t cid
bool IsExternalTypedDataClassId(intptr_t index)
Definition: class_id.h:447

◆ ElementSizeFor()

word dart::compiler::target::Instance::ElementSizeFor ( intptr_t  cid)
static

Definition at line 581 of file runtime_api.cc.

581 {
586 }
587 switch (cid) {
588 case kArrayCid:
589 case kImmutableArrayCid:
590 return kCompressedWordSize;
591 case kTypeArgumentsCid:
592 return kCompressedWordSize;
593 case kOneByteStringCid:
595 case kTwoByteStringCid:
597 default:
599 return 0;
600 }
601}
static constexpr intptr_t kBytesPerElement
Definition: object.h:10542
static constexpr intptr_t kBytesPerElement
Definition: object.h:10683
intptr_t ElementSizeInBytes() const
Definition: object.h:11531
static constexpr intptr_t kCompressedWordSize
Definition: runtime_api.h:286
bool IsTypedDataViewClassId(intptr_t index)
Definition: class_id.h:439
bool IsUnmodifiableTypedDataViewClassId(intptr_t index)
Definition: class_id.h:453

◆ first_field_offset()

word dart::compiler::target::Instance::first_field_offset ( )
static

Definition at line 547 of file runtime_api.cc.

547 {
549}
static intptr_t NextFieldOffset()
Definition: object.h:8355
static word TranslateOffsetInWords(word offset)
Definition: runtime_api.cc:445

◆ InstanceSize()

static word dart::compiler::target::Instance::InstanceSize ( )
static

◆ native_fields_array_offset()

word dart::compiler::target::Instance::native_fields_array_offset ( )
static

Definition at line 551 of file runtime_api.cc.

551 {
553}
static intptr_t NativeFieldsOffset()
Definition: object.h:8357

◆ NextFieldOffset()

word dart::compiler::target::Instance::NextFieldOffset ( )
static

Definition at line 1046 of file runtime_api.cc.


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