V8 Project
v8::Isolate::Scope Class Reference

Stack-allocated class which sets the isolate for all operations executed within a local scope. More...

#include <v8.h>

+ Collaboration diagram for v8::Isolate::Scope:

Public Member Functions

 Scope (Isolate *isolate)
 
 ~Scope ()
 

Private Member Functions

 Scope (const Scope &)
 
Scopeoperator= (const Scope &)
 

Private Attributes

Isolate *const isolate_
 

Detailed Description

Stack-allocated class which sets the isolate for all operations executed within a local scope.

Definition at line 4398 of file v8.h.

Constructor & Destructor Documentation

◆ Scope() [1/2]

v8::Isolate::Scope::Scope ( Isolate isolate)
inlineexplicit

Definition at line 4400 of file v8.h.

4400  : isolate_(isolate) {
4401  isolate->Enter();
4402  }
Isolate *const isolate_
Definition: v8.h:4407
void Enter()
Methods below this point require holding a lock (using Locker) in a multi-threaded environment.
Definition: api.cc:6620

References v8::Isolate::Enter().

+ Here is the call graph for this function:

◆ ~Scope()

v8::Isolate::Scope::~Scope ( )
inline

Definition at line 4404 of file v8.h.

4404 { isolate_->Exit(); }
void Exit()
Exits this isolate by restoring the previously entered one in the current thread.
Definition: api.cc:6626

◆ Scope() [2/2]

v8::Isolate::Scope::Scope ( const Scope )
private

Member Function Documentation

◆ operator=()

Scope& v8::Isolate::Scope::operator= ( const Scope )
private

Member Data Documentation

◆ isolate_

Isolate* const v8::Isolate::Scope::isolate_
private

Definition at line 4407 of file v8.h.


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