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

#include <safepoint.h>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ TransitionVMToNative()

dart::TransitionVMToNative::TransitionVMToNative ( Thread T)
inlineexplicit

Definition at line 354 of file safepoint.h.

355 // A thread running native code is considered to be at a safepoint.
356 ASSERT(T->execution_state() == Thread::kThreadInVM);
357 T->set_execution_state(Thread::kThreadInNative);
358 T->EnterSafepoint();
359 }
@ kThreadInNative
Definition: thread.h:1036
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionVMToNative()

dart::TransitionVMToNative::~TransitionVMToNative ( )
inline

Definition at line 361 of file safepoint.h.

361 {
362 // We are returning to vm code and so we are not at a safepoint anymore.
363 ASSERT(thread()->execution_state() == Thread::kThreadInNative);
366 }
void set_execution_state(ExecutionState state)
Definition: thread.h:1048
void ExitSafepoint()
Definition: thread.h:1094

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