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

#include <safepoint.h>

Inheritance diagram for dart::TransitionToGenerated:
dart::TransitionSafepointState dart::ThreadStackResource dart::StackResource dart::DartEntryScope

Public Member Functions

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

Constructor & Destructor Documentation

◆ TransitionToGenerated()

dart::TransitionToGenerated::TransitionToGenerated ( Thread T)
inlineexplicit

Definition at line 432 of file safepoint.h.

433 : TransitionSafepointState(T), execution_state_(T->execution_state()) {
435 ASSERT((execution_state_ == Thread::kThreadInVM) ||
436 (execution_state_ == Thread::kThreadInNative));
437 if (execution_state_ == Thread::kThreadInNative) {
438 T->ExitSafepoint();
439 }
440 T->set_execution_state(Thread::kThreadInGenerated);
441 }
static Thread * Current()
Definition: thread.h:362
@ kThreadInNative
Definition: thread.h:1036
@ kThreadInGenerated
Definition: thread.h:1035
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionToGenerated()

dart::TransitionToGenerated::~TransitionToGenerated ( )
inline

Definition at line 443 of file safepoint.h.

443 {
444 ASSERT(thread()->execution_state() == Thread::kThreadInGenerated);
445 if (execution_state_ == Thread::kThreadInNative) {
448 } else {
449 ASSERT(execution_state_ == Thread::kThreadInVM);
451 }
452 }
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: