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

#include <runtime_api.h>

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

Public Member Functions

 FINAL_CLASS ()
 

Static Public Member Functions

static word host_type_arguments_field_offset_in_words_offset ()
 
static word declaration_type_offset ()
 
static word super_type_offset ()
 
static word num_type_arguments_offset ()
 
static word InstanceSize ()
 
static classid_t GetId (const dart::Class &handle)
 
static uword GetInstanceSize (const dart::Class &handle)
 
static bool HasCompressedPointers (const dart::Class &handle)
 
static intptr_t NumTypeArguments (const dart::Class &klass)
 
static bool HasTypeArgumentsField (const dart::Class &klass)
 
static intptr_t TypeArgumentsFieldOffset (const dart::Class &klass)
 
static bool TraceAllocation (const dart::Class &klass)
 

Static Public Attributes

static const word kNoTypeArguments = dart::Class::kNoTypeArguments
 

Detailed Description

Definition at line 474 of file runtime_api.h.

Member Function Documentation

◆ declaration_type_offset()

static word dart::compiler::target::Class::declaration_type_offset ( )
static

◆ FINAL_CLASS()

dart::compiler::target::Class::FINAL_CLASS ( )

◆ GetId()

classid_t dart::compiler::target::Class::GetId ( const dart::Class handle)
static

Definition at line 441 of file runtime_api.cc.

441 {
442 return handle.id();
443}
intptr_t id() const
Definition: object.h:1233

◆ GetInstanceSize()

uword dart::compiler::target::Class::GetInstanceSize ( const dart::Class handle)
static

Definition at line 515 of file runtime_api.cc.

515 {
516 return Utils::RoundUp(GetInstanceSizeImpl(handle),
518}
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
Definition: utils.h:120
static uword GetInstanceSizeImpl(const dart::Class &handle)
Definition: runtime_api.cc:450
static constexpr intptr_t kObjectAlignment

◆ HasCompressedPointers()

bool dart::compiler::target::Class::HasCompressedPointers ( const dart::Class handle)
static

Definition at line 526 of file runtime_api.cc.

526 {
527 return handle.HasCompressedPointers();
528}
bool HasCompressedPointers() const
Definition: object.cc:2946

◆ HasTypeArgumentsField()

bool dart::compiler::target::Class::HasTypeArgumentsField ( const dart::Class klass)
static

Definition at line 534 of file runtime_api.cc.

534 {
535 return klass.host_type_arguments_field_offset() !=
537}
intptr_t host_type_arguments_field_offset() const
Definition: object.h:1375
static constexpr intptr_t kNoTypeArguments
Definition: object.h:1374

◆ host_type_arguments_field_offset_in_words_offset()

static word dart::compiler::target::Class::host_type_arguments_field_offset_in_words_offset ( )
static

◆ InstanceSize()

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

◆ num_type_arguments_offset()

static word dart::compiler::target::Class::num_type_arguments_offset ( )
static

◆ NumTypeArguments()

intptr_t dart::compiler::target::Class::NumTypeArguments ( const dart::Class klass)
static

Definition at line 530 of file runtime_api.cc.

530 {
531 return klass.NumTypeArguments();
532}
intptr_t NumTypeArguments() const
Definition: object.cc:3640

◆ super_type_offset()

static word dart::compiler::target::Class::super_type_offset ( )
static

◆ TraceAllocation()

bool dart::compiler::target::Class::TraceAllocation ( const dart::Class klass)
static

Definition at line 543 of file runtime_api.cc.

543 {
545}
bool TraceAllocation(IsolateGroup *isolate_group) const
Definition: object.cc:4434
static IsolateGroup * Current()
Definition: isolate.h:539

◆ TypeArgumentsFieldOffset()

intptr_t dart::compiler::target::Class::TypeArgumentsFieldOffset ( const dart::Class klass)
static

Definition at line 539 of file runtime_api.cc.

539 {
541}
intptr_t target_type_arguments_field_offset() const
Definition: object.h:1384

Member Data Documentation

◆ kNoTypeArguments

const word dart::compiler::target::Class::kNoTypeArguments = dart::Class::kNoTypeArguments
static

Definition at line 486 of file runtime_api.h.


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