v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
assert-scope.cc File Reference
Include dependency graph for assert-scope.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define PER_ISOLATE_ASSERT_SCOPE_DEFINITION(ScopeType, field, enable)
 
#define PER_ISOLATE_ASSERT_ENABLE_SCOPE_DEFINITION(EnableType, _, field, enable)
 
#define PER_ISOLATE_ASSERT_DISABLE_SCOPE_DEFINITION(_, DisableType, field, enable)
 

Macro Definition Documentation

◆ PER_ISOLATE_ASSERT_DISABLE_SCOPE_DEFINITION

#define PER_ISOLATE_ASSERT_DISABLE_SCOPE_DEFINITION ( _,
DisableType,
field,
enable )
Value:
PER_ISOLATE_ASSERT_SCOPE_DEFINITION(DisableType, field, enable)
#define PER_ISOLATE_ASSERT_SCOPE_DEFINITION(ScopeType, field, enable)

Definition at line 92 of file assert-scope.cc.

◆ PER_ISOLATE_ASSERT_ENABLE_SCOPE_DEFINITION

#define PER_ISOLATE_ASSERT_ENABLE_SCOPE_DEFINITION ( EnableType,
_,
field,
enable )
Value:
PER_ISOLATE_ASSERT_SCOPE_DEFINITION(EnableType, field, enable)

Definition at line 88 of file assert-scope.cc.

◆ PER_ISOLATE_ASSERT_SCOPE_DEFINITION

#define PER_ISOLATE_ASSERT_SCOPE_DEFINITION ( ScopeType,
field,
enable )
Value:
ScopeType::ScopeType(Isolate* isolate) \
: isolate_(isolate), old_data_(isolate->field()) { \
DCHECK_NOT_NULL(isolate); \
isolate_->set_##field(enable); \
} \
\
ScopeType::~ScopeType() { isolate_->set_##field(old_data_); } \
\
/* static */ \
bool ScopeType::IsAllowed(Isolate* isolate) { return isolate->field(); } \
\
/* static */ \
void ScopeType::Open(Isolate* isolate, bool* was_execution_allowed) { \
DCHECK_NOT_NULL(isolate); \
DCHECK_NOT_NULL(was_execution_allowed); \
*was_execution_allowed = isolate->field(); \
isolate->set_##field(enable); \
} \
/* static */ \
void ScopeType::Close(Isolate* isolate, bool was_execution_allowed) { \
DCHECK_NOT_NULL(isolate); \
isolate->set_##field(was_execution_allowed); \
}
Isolate * isolate_

Definition at line 63 of file assert-scope.cc.