Home | History | Annotate | Download | only in src

Lines Matching refs:CONTEXT

69   // not true for context-allocated locals: Some of them
74 // Thus, we first collect the context-allocated locals, and then
75 // sort them by context slot index before adding them to the
98 case Slot::CONTEXT:
115 ASSERT(heap_locals[i]->slot()->index() - Context::MIN_CONTEXT_SLOTS ==
117 ASSERT(heap_locals[i]->slot()->index() - Context::MIN_CONTEXT_SLOTS ==
127 // Add the function context slot, if present.
134 var->slot()->type() == Slot::CONTEXT) {
136 // Note that we must not find the function name in the context slot
139 // get the correct number of context slots.
140 ASSERT(var->slot()->index() - Context::MIN_CONTEXT_SLOTS ==
142 ASSERT(var->slot()->index() - Context::MIN_CONTEXT_SLOTS ==
155 // - number of variables in the context object (smi) (= function context
157 // - list of pairs (name, Var mode) of context-allocated variables (starting
158 // with context slot 0)
174 // context locals), followed by a list of non-Object* values containing
185 // through the local variables (parameters and context info is already
358 int n; // number of context slots;
402 int n; // number of context slots;
404 return n + Context::MIN_CONTEXT_SLOTS;
437 // Loop below depends on the NULL sentinel after the context slot names.
438 ASSERT(NumberOfContextSlots(code) >= Context::MIN_CONTEXT_SLOTS ||
452 result = static_cast<int>((p - p0) >> 1) + Context::MIN_CONTEXT_SLOTS;
498 int n; // number of context slots
501 // The function context slot is the last entry.
502 return n + Context::MIN_CONTEXT_SLOTS - 1;
511 // A local variable can be allocated either on the stack or in the context.
512 // For variables allocated in the context they are always preceded by the
513 // number Context::MIN_CONTEXT_SLOTS number of fixed allocated slots in the
514 // context.
519 Context::MIN_CONTEXT_SLOTS);
528 ASSERT(number_of_context_slots() >= Context::MIN_CONTEXT_SLOTS);
529 number_of_locals += number_of_context_slots() - Context::MIN_CONTEXT_SLOTS;
636 PrintList<Allocator>("context slots", Context::MIN_CONTEXT_SLOTS,