Lines Matching defs:scope_info
78 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length);
86 scope_info->SetFlags(flags);
87 scope_info->SetParameterCount(parameter_count);
88 scope_info->SetStackLocalCount(stack_local_count);
89 scope_info->SetContextLocalCount(context_local_count);
93 ASSERT(index == scope_info->ParameterEntriesIndex());
95 scope_info->set(index++, *scope->parameter(i)->name());
101 ASSERT(index == scope_info->StackLocalEntriesIndex());
104 scope_info->set(index++, *stack_locals[i]->name());
116 ASSERT(index == scope_info->ContextLocalNameEntriesIndex());
118 scope_info->set(index++, *context_locals[i]->name());
122 ASSERT(index == scope_info->ContextLocalInfoEntriesIndex());
127 scope_info->set(index++, Smi::FromInt(value));
131 ASSERT(index == scope_info->FunctionNameEntryIndex());
134 scope_info->set(index++, *scope->function()->proxy()->name());
135 scope_info->set(index++, Smi::FromInt(var_index));
137 (var_index == scope_info->StackLocalCount() &&
138 var_index == scope_info->StackSlotCount() - 1));
140 var_index == scope_info->ContextLength() - 1);
143 ASSERT(index == scope_info->length());
144 ASSERT(scope->num_parameters() == scope_info->ParameterCount());
145 ASSERT(scope->num_stack_slots() == scope_info->StackSlotCount());
146 ASSERT(scope->num_heap_slots() == scope_info->ContextLength() ||
148 scope_info->ContextLength() == 0));
149 return scope_info;
492 ScopeInfo* scope_info) {
500 scope_info->get(start))->ShortPrint();