Home | History | Annotate | Download | only in src

Lines Matching refs:CONTEXT

336 void Scope::AllocateVariables(Handle<Context> context) {
351 ResolveVariablesRecursively(global_scope, context);
364 // A function scope has a trivial context if it always is the global
365 // context. We iteratively scan out the context chain to see if
380 // Note that the outer context may be trivial in general, but the current
381 // scope may be inside a 'with' statement in which case the outer context
477 Indent(n1, "// scope has trivial outer context\n");
613 Handle<Context> context,
666 // is executed with a call to eval. The context contains
670 if (context->GlobalIfNotShadowedByEval(proxy->name())) {
692 Handle<Context> context) {
697 ResolveVariable(global_scope, context, unresolved_[i]);
702 inner_scopes_[i]->ResolveVariablesRecursively(global_scope, context);
752 // context. Exception: temporary variables are not allocated in the
753 // context.
777 var->rewrite_ = new Slot(var, Slot::CONTEXT, num_heap_slots_++);
824 // variable may be allocated in the heap-allocated context (temporaries
825 // are never allocated in the context).
857 // If it does, and if it is not copied into the context object, it must
866 (var->slot() != NULL && var->slot()->type() == Slot::CONTEXT));
917 // allocated in the context, it must be the last slot in the context,
929 num_heap_slots_ = Context::MIN_CONTEXT_SLOTS;
941 // Allocate context if necessary.
944 // The context
946 // context even if we didn't statically allocate any locals in it,
947 // and the compiler will access the context variable. If we are
952 // If we didn't allocate any locals in the local context, then we only
953 // need the minimal number of slots if we must have a local context.
954 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS &&
960 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS);