V8 Project
v8::Isolate::AllowJavascriptExecutionScope Class Reference

Introduce exception to DisallowJavascriptExecutionScope. More...

#include <v8.h>

+ Collaboration diagram for v8::Isolate::AllowJavascriptExecutionScope:

Public Member Functions

 AllowJavascriptExecutionScope (Isolate *isolate)
 
 ~AllowJavascriptExecutionScope ()
 

Private Member Functions

 AllowJavascriptExecutionScope (const AllowJavascriptExecutionScope &)
 
AllowJavascriptExecutionScopeoperator= (const AllowJavascriptExecutionScope &)
 

Private Attributes

void * internal_throws_
 
void * internal_assert_
 

Detailed Description

Introduce exception to DisallowJavascriptExecutionScope.

Definition at line 4439 of file v8.h.

Constructor & Destructor Documentation

◆ AllowJavascriptExecutionScope() [1/2]

v8::Isolate::AllowJavascriptExecutionScope::AllowJavascriptExecutionScope ( Isolate isolate)
explicit

Definition at line 6657 of file api.cc.

6658  {
6659  i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
6660  internal_assert_ = reinterpret_cast<void*>(
6661  new i::AllowJavascriptExecution(i_isolate));
6662  internal_throws_ = reinterpret_cast<void*>(
6663  new i::NoThrowOnJavascriptExecution(i_isolate));
6664 }
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_ASSERT, true > AllowJavascriptExecution
Definition: assert-scope.h:149
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_THROWS, true > NoThrowOnJavascriptExecution
Definition: assert-scope.h:157

◆ ~AllowJavascriptExecutionScope()

v8::Isolate::AllowJavascriptExecutionScope::~AllowJavascriptExecutionScope ( )

Definition at line 6667 of file api.cc.

6667  {
6668  delete reinterpret_cast<i::AllowJavascriptExecution*>(internal_assert_);
6669  delete reinterpret_cast<i::NoThrowOnJavascriptExecution*>(internal_throws_);
6670 }

◆ AllowJavascriptExecutionScope() [2/2]

v8::Isolate::AllowJavascriptExecutionScope::AllowJavascriptExecutionScope ( const AllowJavascriptExecutionScope )
private

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ internal_assert_

void* v8::Isolate::AllowJavascriptExecutionScope::internal_assert_
private

Definition at line 4446 of file v8.h.

◆ internal_throws_

void* v8::Isolate::AllowJavascriptExecutionScope::internal_throws_
private

Definition at line 4445 of file v8.h.


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