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

#include <thread_stack_resource.h>

Inheritance diagram for dart::ThreadStackResource:
dart::StackResource dart::Api::Scope dart::AsThreadStackResource< T, Args > dart::AssertNoDeoptIdsAllocatedScope dart::CompilerState dart::DeoptIdScope dart::Deserializer dart::ForceGrowthSafepointOperationScope dart::ForceGrowthScope dart::HeapIterationScope dart::HierarchyInfo dart::NoReloadScope dart::SafepointOperationScope dart::Serializer dart::StoppedMutatorsScope dart::TransitionSafepointState dart::TypeUsageInfo dart::VMTagScope dart::WritableVMIsolateScope

Public Member Functions

 ThreadStackResource (Thread *T)
 
 ~ThreadStackResource ()
 
Threadthread () const
 
Isolateisolate () const
 
IsolateGroupisolate_group () const
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 21 of file thread_stack_resource.h.

Constructor & Destructor Documentation

◆ ThreadStackResource()

dart::ThreadStackResource::ThreadStackResource ( Thread T)
inlineexplicit

Definition at line 23 of file thread_stack_resource.h.

24 : StackResource(reinterpret_cast<ThreadState*>(T)) {}
StackResource(ThreadState *thread)
Definition allocation.h:25
#define T

◆ ~ThreadStackResource()

dart::ThreadStackResource::~ThreadStackResource ( )

Definition at line 14 of file thread_stack_resource.cc.

14 {
15#if defined(DEBUG)
16 if (thread() != nullptr) {
17 BaseIsolate::AssertCurrent(reinterpret_cast<BaseIsolate*>(isolate()));
18 }
19#endif
20}

Member Function Documentation

◆ isolate()

Isolate * dart::ThreadStackResource::isolate ( ) const

Definition at line 22 of file thread_stack_resource.cc.

22 {
23 return thread()->isolate();
24}
Isolate * isolate() const
Definition thread.h:533

◆ isolate_group()

IsolateGroup * dart::ThreadStackResource::isolate_group ( ) const

Definition at line 26 of file thread_stack_resource.cc.

26 {
27 return thread()->isolate_group();
28}
IsolateGroup * isolate_group() const
Definition thread.h:540

◆ thread()

Thread * dart::ThreadStackResource::thread ( ) const
inline

Definition at line 28 of file thread_stack_resource.h.

28 {
29 return reinterpret_cast<Thread*>(StackResource::thread());
30 }
ThreadState * thread() const
Definition allocation.h:33

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