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

#include <safepoint.h>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ TransitionGeneratedToNative()

dart::TransitionGeneratedToNative::TransitionGeneratedToNative ( Thread T)
inlineexplicit

Definition at line 302 of file safepoint.h.

304 // Native code is considered to be at a safepoint and so we mark it
305 // accordingly.
306 ASSERT(T->execution_state() == Thread::kThreadInGenerated);
307 T->set_execution_state(Thread::kThreadInNative);
308 T->EnterSafepoint();
309 }
@ kThreadInNative
Definition: thread.h:1036
@ kThreadInGenerated
Definition: thread.h:1035
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionGeneratedToNative()

dart::TransitionGeneratedToNative::~TransitionGeneratedToNative ( )
inline

Definition at line 311 of file safepoint.h.

311 {
312 // We are returning to generated code and so we are not at a safepoint
313 // anymore.
314 ASSERT(thread()->execution_state() == Thread::kThreadInNative);
317 }
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: