Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 861 of file profiler.cc.

Constructor & Destructor Documentation

◆ ReturnAddressLocator() [1/2]

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

Definition at line 863 of file profiler.cc.

864 : stack_buffer_(sample->GetStackBuffer()),
865 pc_(sample->pc()),
866 code_(Code::ZoneHandle(code.ptr())) {
867 ASSERT(!code_.IsNull());
869 }
bool ContainsInstructionAt(uword addr) const
Definition object.h:6888
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 871 of file profiler.cc.

872 : stack_buffer_(stack_buffer),
873 pc_(pc),
874 code_(Code::ZoneHandle(code.ptr())) {
875 ASSERT(!code_.IsNull());
876 ASSERT(code_.ContainsInstructionAt(pc_));
877 }

Member Function Documentation

◆ CodePointer()

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

Definition at line 890 of file profiler.cc.

890 {
891 const intptr_t size = code_.Size();
892 ASSERT(offset < size);
893 uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code_.PayloadStart());
894 code_pointer += offset;
895 return code_pointer;
896 }
uword Size() const
Definition object.h:6876
uword PayloadStart() const
Definition object.h:6823
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
Point offset

◆ LocateReturnAddress()

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

◆ pc()

uword dart::ReturnAddressLocator::pc ( )
inline

Definition at line 879 of file profiler.cc.

879{ return pc_; }

◆ RelativePC()

intptr_t dart::ReturnAddressLocator::RelativePC ( )
inline

Definition at line 885 of file profiler.cc.

885 {
886 ASSERT(pc() >= code_.PayloadStart());
887 return static_cast<intptr_t>(pc() - code_.PayloadStart());
888 }

◆ StackAt()

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

Definition at line 898 of file profiler.cc.

898 {
899 ASSERT(i >= 0);
901 return stack_buffer_[i];
902 }
static constexpr int kStackBufferSizeInWords
Definition profiler.h:365

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