Lines Matching refs:scope
145 int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize;
155 // Open a frame scope to indicate that there is a frame on the stack. The
156 // MANUAL indicates that the scope shouldn't actually generate code to set up
168 int locals_count = info->scope()->num_stack_slots();
184 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
189 if (FLAG_harmony_scoping && info->scope()->is_global_scope()) {
190 __ Push(info->scope()->GetScopeInfo());
204 int num_parameters = info->scope()->num_parameters();
206 Variable* var = scope()->parameter(i);
225 Variable* arguments = scope()->arguments();
235 int num_parameters = info->scope()->num_parameters();
265 if (scope()->HasIllegalRedeclaration()) {
267 scope()->VisitIllegalRedeclaration(this);
274 if (scope()->is_function_scope() && scope()->function() != NULL) {
275 VariableDeclaration* function = scope()->function();
281 VisitDeclarations(scope()->declarations());
418 int arguments_bytes = (info_->scope()->num_parameters() + 1) * kPointerSize;
674 offset += (info_->scope()->num_parameters() + 1) * kPointerSize;
685 int context_chain_length = scope()->ContextChainLength(var->scope());
743 ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
1268 scope()->is_function_scope() &&
1297 Scope* s = scope();
1311 // If no outer scope calls eval, we do not need to check more
1312 // context extensions. If we have reached an eval scope, we check
1357 for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
1388 // perform a runtime call for all variables in the scope
1440 // var->scope() may be NULL when the proxy is located in eval code and
1445 ASSERT(var->scope() != NULL);
1450 // the same declaration scope (i.e. they are both in global code, in the
1464 if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) {
2426 // scope. However, unlike var initializers, const initializers are
2428 // 'with' context. We thus bypass the normal static scope lookup for
2573 { PreservePositionScope scope(masm()->positions_recorder());
2605 { PreservePositionScope scope(masm()->positions_recorder());
2627 { PreservePositionScope scope(masm()->positions_recorder());
2663 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize));
2667 // Push the start position of the scope the calls resides in.
2668 __ push(Immediate(Smi::FromInt(scope()->start_position())));
2730 { PreservePositionScope scope(masm()->positions_recorder());
2764 { PreservePositionScope scope(masm()->positions_recorder());
2777 { PreservePositionScope scope(masm()->positions_recorder());
3174 __ Set(eax, Immediate(Smi::FromInt(info_->scope()->num_parameters())));
3186 __ Set(eax, Immediate(Smi::FromInt(info_->scope()->num_parameters())));
4787 Scope* declaration_scope = scope()->DeclarationScope();