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

#include <compiler.h>

Inheritance diagram for dart::NoBackgroundCompilerScope:
dart::StackResource

Public Member Functions

 NoBackgroundCompilerScope (Thread *thread)
 
 ~NoBackgroundCompilerScope ()
 
- 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 161 of file compiler.h.

Constructor & Destructor Documentation

◆ NoBackgroundCompilerScope()

dart::NoBackgroundCompilerScope::NoBackgroundCompilerScope ( Thread thread)
inlineexplicit

Definition at line 163 of file compiler.h.

164 : StackResource(thread), isolate_group_(thread->isolate_group()) {
165#if defined(DART_PRECOMPILED_RUNTIME)
166 UNREACHABLE();
167#else
168 isolate_group_->background_compiler()->Disable();
169#endif
170 }
#define UNREACHABLE()
Definition: assert.h:248
BackgroundCompiler * background_compiler() const
Definition: isolate.h:298
ThreadState * thread() const
Definition: allocation.h:33
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~NoBackgroundCompilerScope()

dart::NoBackgroundCompilerScope::~NoBackgroundCompilerScope ( )
inline

Definition at line 171 of file compiler.h.

171 {
172#if defined(DART_PRECOMPILED_RUNTIME)
173 UNREACHABLE();
174#else
175 isolate_group_->background_compiler()->Enable();
176#endif
177 }

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