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

#include <safepoint.h>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ TransitionNativeToVM()

dart::TransitionNativeToVM::TransitionNativeToVM ( Thread T)
inlineexplicit

Definition at line 403 of file safepoint.h.

404 // We are about to execute vm code and so we are not at a safepoint anymore.
405 ASSERT(T->execution_state() == Thread::kThreadInNative);
406 if (T->no_callback_scope_depth() == 0) {
407 T->ExitSafepoint();
408 }
409 T->set_execution_state(Thread::kThreadInVM);
410 }
@ kThreadInNative
Definition thread.h:1023
#define ASSERT(E)
#define T

◆ ~TransitionNativeToVM()

dart::TransitionNativeToVM::~TransitionNativeToVM ( )
inline

Definition at line 412 of file safepoint.h.

412 {
413 // We are returning to native code and so we are at a safepoint.
414 ASSERT(thread()->execution_state() == Thread::kThreadInVM);
416 if (thread()->no_callback_scope_depth() == 0) {
418 }
419 }
void set_execution_state(ExecutionState state)
Definition thread.h:1035
void EnterSafepoint()
Definition thread.h:1063

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