Lines Matching full:scope_info
36 Handle<ScopeInfo> scope_info(shared_info->scope_info());
72 if (scope_info->HasContext()) {
79 if (scope_info->scope_type() == FUNCTION_SCOPE) {
80 nested_scope_chain_.Add(scope_info);
89 if (scope_info->scope_type() != FUNCTION_SCOPE) {
93 if (scope_info->scope_type() == SCRIPT_SCOPE) {
96 DCHECK(scope_info->scope_type() == EVAL_SCOPE);
185 Handle<ScopeInfo> scope_info = nested_scope_chain_.last();
186 switch (scope_info->scope_type()) {
188 DCHECK(context_->IsFunctionContext() || !scope_info->HasContext());
203 DCHECK(!scope_info->HasContext() || context_->IsBlockContext());
307 return Handle<ScopeInfo>(context_->scope_info());
309 return Handle<ScopeInfo>(context_->closure()->shared()->scope_info());
361 GetFunction()->shared()->scope_info()->Print();
451 Handle<ScopeInfo> scope_info(context->scope_info());
452 CopyContextLocalsToScopeObject(scope_info, context, script_scope);
469 Handle<ScopeInfo> scope_info(shared->scope_info());
471 if (!scope_info->HasContext()) return local_scope;
475 CopyContextLocalsToScopeObject(scope_info, function_context, local_scope);
499 Handle<ScopeInfo> scope_info(shared->scope_info());
507 CopyContextLocalsToScopeObject(scope_info, context, closure_scope);
548 Handle<ScopeInfo> scope_info = nested_scope_chain_.last();
549 frame_inspector_->MaterializeStackLocals(block_scope, scope_info);
550 if (scope_info->HasContext()) context = CurrentContext();
557 CopyContextLocalsToScopeObject(handle(context->scope_info()),
577 Handle<ScopeInfo> scope_info(context->scope_info());
585 CopyContextLocalsToScopeObject(scope_info, context, module_scope);
592 bool ScopeIterator::SetContextLocalValue(Handle<ScopeInfo> scope_info,
596 for (int i = 0; i < scope_info->ContextLocalCount(); i++) {
597 Handle<String> next_name(scope_info->ContextLocalName(i));
603 scope_info, next_name, &mode, &init_flag, &maybe_assigned_flag);
621 Handle<ScopeInfo> scope_info(shared->scope_info());
626 for (int i = 0; i < scope_info->ParameterCount(); ++i) {
628 if (String::Equals(handle(scope_info->ParameterName(i)), variable_name)) {
636 for (int i = 0; i < scope_info->StackLocalCount(); ++i) {
638 if (String::Equals(handle(scope_info->StackLocalName(i)), variable_name)) {
639 frame->SetExpression(scope_info->StackLocalIndex(i), *new_value);
644 if (scope_info->HasContext()) {
648 if (SetContextLocalValue(scope_info, function_context, variable_name,
679 Handle<ScopeInfo> scope_info = CurrentScopeInfo();
682 for (int i = 0; i < scope_info->StackLocalCount(); ++i) {
684 if (String::Equals(handle(scope_info->StackLocalName(i)), variable_name)) {
685 frame->SetExpression(scope_info->StackLocalIndex(i), *new_value);
692 if (SetContextLocalValue(scope_info, context, variable_name, new_value)) {
722 Handle<ScopeInfo> scope_info(shared->scope_info());
723 if (SetContextLocalValue(scope_info, context, variable_name, new_value)) {
778 Handle<ScopeInfo> scope_info, Handle<Context> context,
780 Isolate* isolate = scope_info->GetIsolate();
781 int local_count = scope_info->ContextLocalCount();
784 int first_context_var = scope_info->StackLocalCount();
785 int start = scope_info->ContextLocalNameEntriesIndex();
787 if (scope_info->LocalIsSynthetic(first_context_var + i)) continue;
795 scope_object, handle(String::cast(scope_info->get(i + start))), value,