Lines Matching refs:scope
162 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
168 // Open a frame scope to indicate that there is a frame on the stack. The
169 // MANUAL indicates that the scope shouldn't actually generate code to set up
183 int locals_count = info->scope()->num_stack_slots();
197 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
202 if (FLAG_harmony_scoping && info->scope()->is_global_scope()) {
203 __ Push(info->scope()->GetScopeInfo());
216 int num_parameters = info->scope()->num_parameters();
218 Variable* var = scope()->parameter(i);
235 Variable* arguments = scope()->arguments();
246 int num_parameters = info->scope()->num_parameters();
277 if (scope()->HasIllegalRedeclaration()) {
279 scope()->VisitIllegalRedeclaration(this);
286 if (scope()->is_function_scope() && scope()->function() != NULL) {
287 VariableDeclaration* function = scope()->function();
293 VisitDeclarations(scope()->declarations());
439 int32_t sp_delta = (info_->scope()->num_parameters() + 1) * kPointerSize;
712 offset += (info_->scope()->num_parameters() + 1) * kPointerSize;
723 int context_chain_length = scope()->ContextChainLength(var->scope());
784 ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
1333 scope()->is_function_scope() &&
1363 Scope* s = scope();
1376 // If no outer scope calls eval, we do not need to check more
1418 for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
1448 // perform a runtime call for all variables in the scope
1503 // var->scope() may be NULL when the proxy is located in eval code and
1508 ASSERT(var->scope() != NULL);
1513 // the same declaration scope (i.e. they are both in global code, in the
1527 if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) {
2483 // scope. However, unlike var initializers, const initializers are
2485 // 'with' context. We thus bypass the normal static scope lookup for
2634 { PreservePositionScope scope(masm()->positions_recorder());
2667 { PreservePositionScope scope(masm()->positions_recorder());
2690 { PreservePositionScope scope(masm()->positions_recorder());
2726 int receiver_offset = 2 + info_->scope()->num_parameters();
2733 // Push the start position of the scope the calls resides in.
2734 __ li(a1, Operand(Smi::FromInt(scope()->start_position())));
2801 { PreservePositionScope scope(masm()->positions_recorder());
2837 { PreservePositionScope scope(masm()->positions_recorder());
2849 { PreservePositionScope scope(masm()->positions_recorder());
3244 __ li(a0, Operand(Smi::FromInt(info_->scope()->num_parameters())));
3255 __ li(v0, Operand(Smi::FromInt(info_->scope()->num_parameters())));
4808 Scope* declaration_scope = scope()->DeclarationScope();