Lines Matching refs:context_
34 context_ = Handle<Context>::cast(frame_inspector->GetContext()); in ScopeIterator()
47 if (!context_->IsNativeContext()) { in GetFunctionDebugName()
49 ScopeInfo* closure_info = context_->closure_context()->scope_info(); in GetFunctionDebugName()
58 context_(function->context(), isolate), in ScopeIterator()
61 context_ = Handle<Context>(); in ScopeIterator()
72 context_(generator->context(), isolate), in ScopeIterator()
75 context_ = Handle<Context>(); in ScopeIterator()
84 context_ = Handle<Context>::cast(frame_inspector_->GetContext()); in Restart()
96 context_ = handle(function_->context(), isolate_); in TryParseAndRetrieveScopes()
129 if (!context_->IsNativeContext()) { in TryParseAndRetrieveScopes()
130 info_->set_outer_scope_info(handle(context_->scope_info(), isolate_)); in TryParseAndRetrieveScopes()
158 context_ = handle(context_->closure_context(), isolate_); in TryParseAndRetrieveScopes()
174 context_ = Handle<Context>(); in TryParseAndRetrieveScopes()
179 if (!context_->IsDebugEvaluateContext()) return; in UnwrapEvaluationContext()
180 Context* current = *context_; in UnwrapEvaluationContext()
190 context_ = handle(current, isolate_); in UnwrapEvaluationContext()
217 return InInnerScope() || !context_->IsNativeContext(); in HasPositionInfo()
222 if (context_->IsNativeContext()) return 0; in start_position()
223 return context_->closure_context()->scope_info()->StartPosition(); in start_position()
228 if (context_->IsNativeContext()) return 0; in end_position()
229 return context_->closure_context()->scope_info()->EndPosition(); in end_position()
258 DCHECK(context_->IsNativeContext()); in Next()
259 context_ = Handle<Context>(); in Next()
270 if (context_->IsScriptContext()) { in Next()
271 context_ = handle(context_->previous(), isolate_); in Next()
274 DCHECK(!context_->IsNativeContext()); in Next()
275 context_ = handle(context_->previous(), isolate_); in Next()
280 DCHECK_NOT_NULL(context_->previous()); in Next()
281 context_ = handle(context_->previous(), isolate_); in Next()
300 context_->IsFunctionContext()); in Type()
304 context_->IsModuleContext()); in Type()
309 context_->IsScriptContext() || context_->IsNativeContext()); in Type()
314 context_->IsWithContext() || context_->IsDebugEvaluateContext()); in Type()
317 DCHECK(context_->IsCatchContext()); in Type()
321 context_->IsBlockContext()); in Type()
325 context_->IsEvalContext()); in Type()
330 if (context_->IsNativeContext()) { in Type()
331 DCHECK(context_->global_object()->IsJSGlobalObject()); in Type()
336 if (context_->IsFunctionContext() || context_->IsEvalContext()) { in Type()
339 if (context_->IsCatchContext()) { in Type()
342 if (context_->IsBlockContext()) { in Type()
345 if (context_->IsModuleContext()) { in Type()
348 if (context_->IsScriptContext()) { in Type()
351 DCHECK(context_->IsWithContext() || context_->IsDebugEvaluateContext()); in Type()
361 return handle(context_->global_proxy(), isolate_); in ScopeObject()
452 context_->Print(os); in DebugPrint()
458 context_->Print(os); in DebugPrint()
459 if (context_->has_extension()) { in DebugPrint()
460 Handle<HeapObject> extension(context_->extension(), isolate_); in DebugPrint()
470 context_->extension()->Print(os); in DebugPrint()
475 context_->extension()->Print(os); in DebugPrint()
476 context_->get(Context::THROWN_OBJECT_INDEX)->Print(os); in DebugPrint()
481 context_->Print(os); in DebugPrint()
482 if (context_->has_extension()) { in DebugPrint()
483 Handle<HeapObject> extension(context_->extension(), isolate_); in DebugPrint()
491 context_->global_object() in DebugPrint()
542 Handle<JSGlobalObject> global(context_->global_object(), isolate_); in VisitScriptScope()
557 DCHECK(context_->IsModuleContext()); in VisitModuleScope()
559 Handle<ScopeInfo> scope_info(context_->scope_info(), isolate_); in VisitModuleScope()
560 if (VisitContextLocals(visitor, scope_info, context_)) return; in VisitModuleScope()
565 Handle<Module> module(context_->module(), isolate_); in VisitModuleScope()
681 value = handle(context_->get(index), isolate_); in VisitLocals()
689 Handle<Module> module(context_->module(), isolate_); in VisitLocals()
705 DCHECK(context_->IsWithContext()); in WithContextExtension()
706 if (context_->extension_receiver()->IsJSProxy()) { in WithContextExtension()
709 return handle(JSObject::cast(context_->extension_receiver()), isolate_); in WithContextExtension()
744 Handle<ScopeInfo> scope_info(context_->scope_info(), isolate_); in VisitLocalScope()
745 if (VisitContextLocals(visitor, scope_info, context_)) return; in VisitLocalScope()
749 DCHECK(!context_->IsScriptContext()); in VisitLocalScope()
750 DCHECK(!context_->IsNativeContext()); in VisitLocalScope()
751 DCHECK(!context_->IsWithContext()); in VisitLocalScope()
752 if (!context_->scope_info()->CallsSloppyEval()) return; in VisitLocalScope()
753 if (context_->extension_object() == nullptr) return; in VisitLocalScope()
754 Handle<JSObject> extension(context_->extension_object(), isolate_); in VisitLocalScope()
825 context_->set(index, *new_value); in SetLocalVariableValue()
830 Handle<Module> module(context_->module(), isolate_); in SetLocalVariableValue()
843 if (!context_->has_extension()) return false; in SetContextExtensionValue()
845 DCHECK(context_->extension_object()->IsJSContextExtensionObject()); in SetContextExtensionValue()
846 Handle<JSObject> ext(context_->extension_object(), isolate_); in SetContextExtensionValue()
858 Handle<ScopeInfo> scope_info(context_->scope_info(), isolate_); in SetContextVariableValue()
867 context_->set(slot_index, *new_value); in SetContextVariableValue()
877 cell_index = context_->scope_info()->ModuleIndex( in SetModuleVariableValue()
886 Handle<Module> module(context_->module(), isolate_); in SetModuleVariableValue()
894 context_->global_object()->native_context()->script_context_table(), in SetScriptVariableValue()