Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TransitionGeneratedToVM Class Reference

#include <safepoint.h>

Inheritance diagram for dart::TransitionGeneratedToVM:
dart::TransitionSafepointState dart::ThreadStackResource dart::StackResource

Public Member Functions

 TransitionGeneratedToVM (Thread *T)
 
 ~TransitionGeneratedToVM ()
 
- Public Member Functions inherited from dart::TransitionSafepointState
 TransitionSafepointState (Thread *T)
 
 ~TransitionSafepointState ()
 
SafepointHandlerhandler () const
 
- Public Member Functions inherited from dart::ThreadStackResource
 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 273 of file safepoint.h.

Constructor & Destructor Documentation

◆ TransitionGeneratedToVM()

dart::TransitionGeneratedToVM::TransitionGeneratedToVM ( Thread T)
inlineexplicit

Definition at line 275 of file safepoint.h.

277 ASSERT(T->execution_state() == Thread::kThreadInGenerated);
278 T->set_execution_state(Thread::kThreadInVM);
279 // Fast check to see if a safepoint is requested or not.
280 // We do the more expensive operation of blocking the thread
281 // only if a safepoint is requested.
282 if (T->IsSafepointRequested()) {
283 T->BlockForSafepoint();
284 }
285 }
static Thread * Current()
Definition: thread.h:362
@ kThreadInGenerated
Definition: thread.h:1035
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionGeneratedToVM()

dart::TransitionGeneratedToVM::~TransitionGeneratedToVM ( )
inline

Definition at line 287 of file safepoint.h.

287 {
288 ASSERT(thread()->execution_state() == Thread::kThreadInVM);
290 }
void set_execution_state(ExecutionState state)
Definition: thread.h:1048

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