Home | History | Annotate | Download | only in debug

Lines Matching refs:Handle

31   context_ = Handle<Context>(Context::cast(frame_inspector->GetContext()));
34 Handle<JSFunction> function = GetFunction();
35 Handle<SharedFunctionInfo> shared_info(function->shared());
36 Handle<ScopeInfo> scope_info(shared_info->scope_info());
39 context_ = Handle<Context>(context_->previous(), isolate_);
59 Handle<DebugInfo> debug_info(shared_info->GetDebugInfo());
73 context_ = Handle<Context>(context_->declaration_context(), isolate_);
76 context_ = Handle<Context>(context_->previous(), isolate_);
91 Handle<Script> script(Script::cast(shared_info->script()));
98 info.set_context(Handle<Context>(function->context()));
117 ScopeIterator::ScopeIterator(Isolate* isolate, Handle<JSFunction> function)
124 if (!function->shared()->IsSubjectToDebugging()) context_ = Handle<Context>();
130 Handle<FixedArray> details =
134 Handle<JSObject> scope_object;
138 Handle<String> closure_name = JSFunction::GetDebugName(
139 Handle<JSFunction>(CurrentContext()->closure()));
153 context_ = Handle<Context>();
159 context_ = Handle<Context>(context_->previous(), isolate_);
170 context_ = Handle<Context>(context_->previous(), isolate_);
174 context_ = Handle<Context>(context_->previous(), isolate_);
185 Handle<ScopeInfo> scope_info = nested_scope_chain_.last();
239 return Handle<JSObject>(CurrentContext()->global_proxy());
249 return handle(JSObject::cast(CurrentContext()->extension_receiver()));
261 return Handle<JSObject>();
276 bool ScopeIterator::SetVariableValue(Handle<String> variable_name,
277 Handle<Object> new_value) {
302 Handle<ScopeInfo> ScopeIterator::CurrentScopeInfo() {
307 return Handle<ScopeInfo>(context_->scope_info());
309 return Handle<ScopeInfo>(context_->closure()->shared()->scope_info());
311 return Handle<ScopeInfo>::null();
315 Handle<Context> ScopeIterator::CurrentContext() {
323 return Handle<Context>();
328 void ScopeIterator::GetNonLocals(List<Handle<String> >* list_out) {
329 Handle<String> this_string = isolate_->factory()->this_string();
332 Handle<String> name(reinterpret_cast<String**>(entry->key));
335 list_out->Add(Handle<String>(reinterpret_cast<String**>(entry->key)));
341 Handle<String> this_string = isolate_->factory()->this_string();
365 Handle<HeapObject> extension(CurrentContext()->extension(), isolate_);
389 Handle<HeapObject> extension(CurrentContext()->extension(), isolate_);
440 Handle<JSGlobalObject> global(CurrentContext()->global_object());
441 Handle<ScriptContextTable> script_contexts(
444 Handle<JSObject> script_scope =
449 Handle<Context> context =
451 Handle<ScopeInfo> scope_info(context->scope_info());
459 Handle<JSFunction> function = GetFunction();
461 Handle<JSObject> local_scope =
465 Handle<Context> frame_context(Context::cast(frame_inspector_->GetContext()));
468 Handle<SharedFunctionInfo> shared(function->shared());
469 Handle<ScopeInfo> scope_info(shared->scope_info());
474 Handle<Context> function_context(frame_context->declaration_context());
483 handle(function_context->extension_object(), isolate_),
494 Handle<JSObject> ScopeIterator::MaterializeClosure() {
495 Handle<Context> context = CurrentContext();
498 Handle<SharedFunctionInfo> shared(context->closure()->shared());
499 Handle<ScopeInfo> scope_info(shared->scope_info());
503 Handle<JSObject> closure_scope =
513 handle(context->extension_object(), isolate_), closure_scope,
525 Handle<JSObject> ScopeIterator::MaterializeCatchScope() {
526 Handle<Context> context = CurrentContext();
528 Handle<String> name(context->catch_name());
529 Handle<Object> thrown_object(context->get(Context::THROWN_OBJECT_INDEX),
531 Handle<JSObject> catch_scope =
542 Handle<JSObject> ScopeIterator::MaterializeBlockScope() {
543 Handle<JSObject> block_scope =
546 Handle<Context> context = Handle<Context>::null();
548 Handle<ScopeInfo> scope_info = nested_scope_chain_.last();
557 CopyContextLocalsToScopeObject(handle(context->scope_info()),
562 handle(context->extension_object()), block_scope,
575 Handle<Context> context = CurrentContext();
577 Handle<ScopeInfo> scope_info(context->scope_info());
581 Handle<JSObject> module_scope =
592 bool ScopeIterator::SetContextLocalValue(Handle<ScopeInfo> scope_info,
593 Handle<Context> context,
594 Handle<String> variable_name,
595 Handle<Object> new_value) {
597 Handle<String> next_name(scope_info->ContextLocalName(i));
613 bool ScopeIterator::SetLocalVariableValue(Handle<String> variable_name,
614 Handle<Object> new_value) {
619 Handle<JSFunction> function(frame->function());
620 Handle<SharedFunctionInfo> shared(function->shared());
621 Handle<ScopeInfo> scope_info(shared->scope_info());
628 if (String::Equals(handle(scope_info->ParameterName(i)), variable_name)) {
638 if (String::Equals(handle(scope_info->StackLocalName(i)), variable_name)) {
646 Handle<Context> frame_context(Context::cast(frame->context()));
647 Handle<Context> function_context(frame_context->declaration_context());
657 Handle<JSObject> ext(function_context->extension_object());
677 bool ScopeIterator::SetBlockVariableValue(Handle<String> variable_name,
678 Handle<Object> new_value) {
679 Handle<ScopeInfo> scope_info = CurrentScopeInfo();
684 if (String::Equals(handle(scope_info->StackLocalName(i)), variable_name)) {
691 Handle<Context> context = CurrentContext();
696 Handle<JSObject> ext(context->extension_object(), isolate_);
715 bool ScopeIterator::SetClosureVariableValue(Handle<String> variable_name,
716 Handle<Object> new_value) {
717 Handle<Context> context = CurrentContext();
721 Handle<SharedFunctionInfo> shared(context->closure()->shared());
722 Handle<ScopeInfo> scope_info(shared->scope_info());
730 Handle<JSObject> ext(JSObject::cast(context->extension_object()));
746 bool ScopeIterator::SetScriptVariableValue(Handle<String> variable_name,
747 Handle<Object> new_value) {
748 Handle<Context> context = CurrentContext();
749 Handle<ScriptContextTable> script_contexts(
754 Handle<Context> script_context = ScriptContextTable::GetContext(
764 bool ScopeIterator::SetCatchVariableValue(Handle<String> variable_name,
765 Handle<Object> new_value) {
766 Handle<Context> context = CurrentContext();
768 Handle<String> name(context->catch_name());
778 Handle<ScopeInfo> scope_info, Handle<Context> context,
779 Handle<JSObject> scope_object) {
789 Handle<Object> value = Handle<Object>(context->get(context_index), isolate);
795 scope_object, handle(String::cast(scope_info->get(i + start))), value,
803 Handle<JSObject> extension, Handle<JSObject> scope_object,
805 Handle<FixedArray> keys;
813 Handle<String> key(String::cast(keys->get(i)));
814 Handle<Object> value;