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

#include <safepoint.h>

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

Public Member Functions

 TransitionToVM (Thread *T)
 
 ~TransitionToVM ()
 
- 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 466 of file safepoint.h.

Constructor & Destructor Documentation

◆ TransitionToVM()

dart::TransitionToVM::TransitionToVM ( Thread T)
inlineexplicit

Definition at line 468 of file safepoint.h.

469 : TransitionSafepointState(T), execution_state_(T->execution_state()) {
471 ASSERT((execution_state_ == Thread::kThreadInVM) ||
472 (execution_state_ == Thread::kThreadInNative));
473 if (execution_state_ == Thread::kThreadInNative) {
474 T->ExitSafepoint();
475 T->set_execution_state(Thread::kThreadInVM);
476 }
477 ASSERT(T->execution_state() == Thread::kThreadInVM);
478 }
static Thread * Current()
Definition: thread.h:362
@ kThreadInNative
Definition: thread.h:1036
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionToVM()

dart::TransitionToVM::~TransitionToVM ( )
inline

Definition at line 480 of file safepoint.h.

480 {
481 ASSERT(thread()->execution_state() == Thread::kThreadInVM);
482 if (execution_state_ == Thread::kThreadInNative) {
485 }
486 }
void set_execution_state(ExecutionState state)
Definition: thread.h:1048
void EnterSafepoint()
Definition: thread.h:1076

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