Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::AbstractCode Class Reference

#include <profiler.h>

Public Member Functions

 AbstractCode (ObjectPtr code)
 
ObjectPtr ptr () const
 
const Objecthandle () const
 
uword PayloadStart () const
 
uword Size () const
 
int64_t compile_timestamp () const
 
const char * Name () const
 
const char * QualifiedName () const
 
bool IsStubCode () const
 
bool IsAllocationStubCode () const
 
bool IsTypeTestStubCode () const
 
ObjectPtr owner () const
 
bool IsNull () const
 
bool IsCode () const
 
bool is_optimized () const
 

Detailed Description

Definition at line 413 of file profiler.h.

Constructor & Destructor Documentation

◆ AbstractCode()

dart::AbstractCode::AbstractCode ( ObjectPtr  code)
inlineexplicit

Definition at line 415 of file profiler.h.

415 : code_(Object::Handle(code)) {
416 ASSERT(code_.IsNull() || code_.IsCode());
417 }
bool IsNull() const
Definition object.h:363
static Object & Handle()
Definition object.h:407
#define ASSERT(E)

Member Function Documentation

◆ compile_timestamp()

int64_t dart::AbstractCode::compile_timestamp ( ) const
inline

Definition at line 432 of file profiler.h.

432 {
433 if (code_.IsCode()) {
434 return Code::Cast(code_).compile_timestamp();
435 } else {
436 return 0;
437 }
438 }

◆ handle()

const Object * dart::AbstractCode::handle ( ) const
inline

Definition at line 420 of file profiler.h.

420{ return &code_; }

◆ is_optimized()

bool dart::AbstractCode::is_optimized ( ) const
inline

Definition at line 492 of file profiler.h.

492 {
493 if (code_.IsCode()) {
494 return Code::Cast(code_).is_optimized();
495 } else {
496 return false;
497 }
498 }

◆ IsAllocationStubCode()

bool dart::AbstractCode::IsAllocationStubCode ( ) const
inline

Definition at line 465 of file profiler.h.

465 {
466 if (code_.IsCode()) {
467 return Code::Cast(code_).IsAllocationStubCode();
468 } else {
469 return false;
470 }
471 }

◆ IsCode()

bool dart::AbstractCode::IsCode ( ) const
inline

Definition at line 490 of file profiler.h.

490{ return code_.IsCode(); }

◆ IsNull()

bool dart::AbstractCode::IsNull ( ) const
inline

Definition at line 489 of file profiler.h.

489{ return code_.IsNull(); }

◆ IsStubCode()

bool dart::AbstractCode::IsStubCode ( ) const
inline

Definition at line 457 of file profiler.h.

457 {
458 if (code_.IsCode()) {
459 return Code::Cast(code_).IsStubCode();
460 } else {
461 return false;
462 }
463 }

◆ IsTypeTestStubCode()

bool dart::AbstractCode::IsTypeTestStubCode ( ) const
inline

Definition at line 473 of file profiler.h.

473 {
474 if (code_.IsCode()) {
475 return Code::Cast(code_).IsTypeTestStubCode();
476 } else {
477 return false;
478 }
479 }

◆ Name()

const char * dart::AbstractCode::Name ( ) const
inline

Definition at line 440 of file profiler.h.

440 {
441 if (code_.IsCode()) {
442 return Code::Cast(code_).Name();
443 } else {
444 return "";
445 }
446 }

◆ owner()

ObjectPtr dart::AbstractCode::owner ( ) const
inline

Definition at line 481 of file profiler.h.

481 {
482 if (code_.IsCode()) {
483 return Code::Cast(code_).owner();
484 } else {
485 return Object::null();
486 }
487 }
static ObjectPtr null()
Definition object.h:433

◆ PayloadStart()

uword dart::AbstractCode::PayloadStart ( ) const
inline

Definition at line 422 of file profiler.h.

422 {
423 ASSERT(code_.IsCode());
424 return Code::Cast(code_).PayloadStart();
425 }

◆ ptr()

ObjectPtr dart::AbstractCode::ptr ( ) const
inline

Definition at line 419 of file profiler.h.

419{ return code_.ptr(); }
ObjectPtr ptr() const
Definition object.h:332

◆ QualifiedName()

const char * dart::AbstractCode::QualifiedName ( ) const
inline

Definition at line 448 of file profiler.h.

448 {
449 if (code_.IsCode()) {
450 return Code::Cast(code_).QualifiedName(
451 NameFormattingParams(Object::kUserVisibleName));
452 } else {
453 return "";
454 }
455 }
@ kUserVisibleName
Definition object.h:645

◆ Size()

uword dart::AbstractCode::Size ( ) const
inline

Definition at line 427 of file profiler.h.

427 {
428 ASSERT(code_.IsCode());
429 return Code::Cast(code_).Size();
430 }

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