Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ReturnAddressLocator Class Reference
Inheritance diagram for dart::ReturnAddressLocator:
dart::ValueObject

Public Member Functions

 ReturnAddressLocator (Sample *sample, const Code &code)
 
 ReturnAddressLocator (uword pc, uword *stack_buffer, const Code &code)
 
uword pc ()
 
bool LocateReturnAddress (uword *return_address)
 
intptr_t RelativePC ()
 
uint8_t * CodePointer (intptr_t offset)
 
uword StackAt (intptr_t i)
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 867 of file profiler.cc.

Constructor & Destructor Documentation

◆ ReturnAddressLocator() [1/2]

dart::ReturnAddressLocator::ReturnAddressLocator ( Sample sample,
const Code code 
)
inline

Definition at line 869 of file profiler.cc.

870 : stack_buffer_(sample->GetStackBuffer()),
871 pc_(sample->pc()),
872 code_(Code::ZoneHandle(code.ptr())) {
873 ASSERT(!code_.IsNull());
875 }
bool ContainsInstructionAt(uword addr) const
Definition: object.h:6915
bool IsNull() const
Definition: object.h:363
static Object & ZoneHandle()
Definition: object.h:419
#define ASSERT(E)

◆ ReturnAddressLocator() [2/2]

dart::ReturnAddressLocator::ReturnAddressLocator ( uword  pc,
uword stack_buffer,
const Code code 
)
inline

Definition at line 877 of file profiler.cc.

878 : stack_buffer_(stack_buffer),
879 pc_(pc),
880 code_(Code::ZoneHandle(code.ptr())) {
881 ASSERT(!code_.IsNull());
882 ASSERT(code_.ContainsInstructionAt(pc_));
883 }

Member Function Documentation

◆ CodePointer()

uint8_t * dart::ReturnAddressLocator::CodePointer ( intptr_t  offset)
inline

Definition at line 896 of file profiler.cc.

896 {
897 const intptr_t size = code_.Size();
898 ASSERT(offset < size);
899 uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code_.PayloadStart());
900 code_pointer += offset;
901 return code_pointer;
902 }
uword Size() const
Definition: object.h:6903
uword PayloadStart() const
Definition: object.h:6850
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
SeparatedVector2 offset

◆ LocateReturnAddress()

bool dart::ReturnAddressLocator::LocateReturnAddress ( uword return_address)

◆ pc()

uword dart::ReturnAddressLocator::pc ( )
inline

Definition at line 885 of file profiler.cc.

885{ return pc_; }

◆ RelativePC()

intptr_t dart::ReturnAddressLocator::RelativePC ( )
inline

Definition at line 891 of file profiler.cc.

891 {
892 ASSERT(pc() >= code_.PayloadStart());
893 return static_cast<intptr_t>(pc() - code_.PayloadStart());
894 }

◆ StackAt()

uword dart::ReturnAddressLocator::StackAt ( intptr_t  i)
inline

Definition at line 904 of file profiler.cc.

904 {
905 ASSERT(i >= 0);
907 return stack_buffer_[i];
908 }
static constexpr int kStackBufferSizeInWords
Definition: profiler.h:365

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