Lines Matching refs:scope
152 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
157 // Open a frame scope to indicate that there is a frame on the stack. The
158 // MANUAL indicates that the scope shouldn't actually generate code to set up
167 int locals_count = info->scope()->num_stack_slots();
192 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
197 if (FLAG_harmony_scoping && info->scope()->is_global_scope()) {
198 __ Push(info->scope()->GetScopeInfo());
211 int num_parameters = info->scope()->num_parameters();
213 Variable* var = scope()->parameter(i);
230 Variable* arguments = scope()->arguments();
241 int num_parameters = info->scope()->num_parameters();
272 if (scope()->HasIllegalRedeclaration()) {
274 scope()->VisitIllegalRedeclaration(this);
281 if (scope()->is_function_scope() && scope()->function() != NULL) {
282 VariableDeclaration* function = scope()->function();
288 VisitDeclarations(scope()->declarations());
434 int32_t sp_delta = (info_->scope()->num_parameters() + 1) * kPointerSize;
706 offset += (info_->scope()->num_parameters() + 1) * kPointerSize;
717 int context_chain_length = scope()->ContextChainLength(var->scope());
780 ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
1326 scope()->is_function_scope() &&
1355 Scope* s = scope();
1369 // If no outer scope calls eval, we do not need to check more
1413 for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
1445 // perform a runtime call for all variables in the scope
1498 // var->scope() may be NULL when the proxy is located in eval code and
1503 ASSERT(var->scope() != NULL);
1508 // the same declaration scope (i.e. they are both in global code, in the
1522 if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) {
2466 // scope. However, unlike var initializers, const initializers are
2468 // 'with' context. We thus bypass the normal static scope lookup for
2610 { PreservePositionScope scope(masm()->positions_recorder());
2643 { PreservePositionScope scope(masm()->positions_recorder());
2666 { PreservePositionScope scope(masm()->positions_recorder());
2701 int receiver_offset = 2 + info_->scope()->num_parameters();
2707 // r1: the start position of the scope the calls resides in.
2708 __ mov(r1, Operand(Smi::FromInt(scope()->start_position())));
2776 { PreservePositionScope scope(masm()->positions_recorder());
2812 { PreservePositionScope scope(masm()->positions_recorder());
2824 { PreservePositionScope scope(masm()->positions_recorder());
3248 __ mov(r0, Operand(Smi::FromInt(info_->scope()->num_parameters())));
3259 __ mov(r0, Operand(Smi::FromInt(info_->scope()->num_parameters())));
4731 Scope* declaration_scope = scope()->DeclarationScope();