V8 Project
|
Public Types | |
enum | ScopeType { ScopeTypeGlobal = 0 , ScopeTypeLocal , ScopeTypeWith , ScopeTypeClosure , ScopeTypeCatch , ScopeTypeBlock , ScopeTypeModule } |
Public Member Functions | |
ScopeIterator (Isolate *isolate, JavaScriptFrame *frame, int inlined_jsframe_index, bool ignore_nested_scopes=false) | |
ScopeIterator (Isolate *isolate, Handle< JSFunction > function) | |
bool | Done () |
bool | Failed () |
void | Next () |
ScopeType | Type () |
MaybeHandle< JSObject > | ScopeObject () |
bool | SetVariableValue (Handle< String > variable_name, Handle< Object > new_value) |
Handle< ScopeInfo > | CurrentScopeInfo () |
Handle< Context > | CurrentContext () |
Private Member Functions | |
void | RetrieveScopeChain (Scope *scope, Handle< SharedFunctionInfo > shared_info) |
DISALLOW_IMPLICIT_CONSTRUCTORS (ScopeIterator) | |
Private Attributes | |
Isolate * | isolate_ |
JavaScriptFrame * | frame_ |
int | inlined_jsframe_index_ |
Handle< JSFunction > | function_ |
Handle< Context > | context_ |
List< Handle< ScopeInfo > > | nested_scope_chain_ |
bool | failed_ |
Definition at line 6482 of file runtime.cc.
Enumerator | |
---|---|
ScopeTypeGlobal | |
ScopeTypeLocal | |
ScopeTypeWith | |
ScopeTypeClosure | |
ScopeTypeCatch | |
ScopeTypeBlock | |
ScopeTypeModule |
Definition at line 6484 of file runtime.cc.
|
inline |
Definition at line 6494 of file runtime.cc.
References v8::internal::ALL_BREAK_LOCATIONS, v8::internal::Scope::Analyze(), context_, DCHECK, v8::internal::Isolate::debug(), v8::internal::Debug::EnsureDebugInfo(), v8::internal::EVAL_SCOPE, v8::internal::BreakLocationIterator::FindBreakLocationFromAddress(), v8::internal::CompilationInfo::function(), function_, v8::internal::FUNCTION_SCOPE, v8::internal::Debug::GetDebugInfo(), v8::internal::GLOBAL_SCOPE, v8::internal::Isolate::heap(), v8::internal::BreakLocationIterator::IsExit(), isolate_, v8::internal::CompilationInfo::MarkAsEval(), v8::internal::CompilationInfo::MarkAsGlobal(), nested_scope_chain_, NULL, v8::internal::Parser::Parse(), RetrieveScopeChain(), and v8::internal::CompilationInfo::SetContext().
|
inline |
Definition at line 6742 of file runtime.cc.
References context_, DCHECK, failed_, nested_scope_chain_, ScopeTypeGlobal, and Type().
Referenced by ScopeObject(), and SetVariableValue().
Definition at line 6728 of file runtime.cc.
References context_, DCHECK, failed_, nested_scope_chain_, and v8::internal::Handle< T >::null().
|
private |
|
inline |
Definition at line 6598 of file runtime.cc.
References context_, DCHECK, and failed_.
Referenced by v8::internal::RUNTIME_FUNCTION(), and v8::internal::SetScopeVariableValue().
|
inline |
|
inline |
Definition at line 6606 of file runtime.cc.
References context_, DCHECK, failed_, isolate_, nested_scope_chain_, NULL, ScopeTypeGlobal, and Type().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inlineprivate |
Definition at line 6817 of file runtime.cc.
References DCHECK, failed_, frame_, v8::internal::Scope::GetNestedScopeChain(), v8::internal::Isolate::has_pending_exception(), isolate_, nested_scope_chain_, and NULL.
Referenced by ScopeIterator().
|
inline |
Definition at line 6675 of file runtime.cc.
References CurrentContext(), DCHECK, failed_, frame_, inlined_jsframe_index_, isolate_, v8::internal::MaterializeBlockScope(), v8::internal::MaterializeCatchScope(), v8::internal::MaterializeClosure(), v8::internal::MaterializeLocalScope(), v8::internal::MaterializeModuleScope(), nested_scope_chain_, ScopeTypeBlock, ScopeTypeCatch, ScopeTypeClosure, ScopeTypeGlobal, ScopeTypeLocal, ScopeTypeModule, ScopeTypeWith, Type(), and UNREACHABLE.
Referenced by v8::internal::MaterializeScopeDetails().
|
inline |
Definition at line 6701 of file runtime.cc.
References CurrentContext(), DCHECK, failed_, frame_, inlined_jsframe_index_, isolate_, ScopeTypeBlock, ScopeTypeCatch, ScopeTypeClosure, ScopeTypeGlobal, ScopeTypeLocal, ScopeTypeModule, ScopeTypeWith, v8::internal::SetCatchVariableValue(), v8::internal::SetClosureVariableValue(), v8::internal::SetLocalVariableValue(), and Type().
Referenced by v8::internal::SetScopeVariableValue().
|
inline |
Definition at line 6627 of file runtime.cc.
References v8::internal::BLOCK_SCOPE, v8::internal::CATCH_SCOPE, context_, DCHECK, v8::internal::EVAL_SCOPE, failed_, v8::internal::FUNCTION_SCOPE, v8::internal::GLOBAL_SCOPE, v8::internal::MODULE_SCOPE, nested_scope_chain_, ScopeTypeBlock, ScopeTypeCatch, ScopeTypeClosure, ScopeTypeGlobal, ScopeTypeLocal, ScopeTypeModule, ScopeTypeWith, UNREACHABLE, and v8::internal::WITH_SCOPE.
Referenced by CurrentContext(), v8::internal::MaterializeScopeDetails(), Next(), ScopeObject(), and SetVariableValue().
Definition at line 6813 of file runtime.cc.
Referenced by CurrentContext(), CurrentScopeInfo(), Done(), Next(), ScopeIterator(), and Type().
|
private |
Definition at line 6815 of file runtime.cc.
Referenced by CurrentContext(), CurrentScopeInfo(), Done(), Failed(), Next(), RetrieveScopeChain(), ScopeObject(), SetVariableValue(), and Type().
|
private |
Definition at line 6810 of file runtime.cc.
Referenced by RetrieveScopeChain(), ScopeObject(), and SetVariableValue().
|
private |
Definition at line 6812 of file runtime.cc.
Referenced by ScopeIterator().
|
private |
Definition at line 6811 of file runtime.cc.
Referenced by ScopeObject(), and SetVariableValue().
|
private |
Definition at line 6809 of file runtime.cc.
Referenced by Next(), RetrieveScopeChain(), ScopeIterator(), ScopeObject(), and SetVariableValue().
Definition at line 6814 of file runtime.cc.
Referenced by CurrentContext(), CurrentScopeInfo(), Next(), RetrieveScopeChain(), ScopeIterator(), ScopeObject(), and Type().