Home | History | Annotate | Download | only in arm

Lines Matching refs:CONTEXT

121 //   o cp: our context
168 // Generators allocate locals, if any, in context slots.
191 // Possibly allocate a local context.
192 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
195 Comment cmnt(masm_, "[ Allocate context");
207 // Context is returned in both r0 and cp. It replaces the context
210 // Copy any necessary parameters into the context.
219 // Store it in the context.
235 // Load this again, if it's used by the local context below.
761 // context. Otherwise, we let the Visit function deal with the
763 if (!context()->IsTest() || !info_->IsOptimizable()) return;
779 // context.
782 // Check that we're not inside a with or catch context.
796 // local context.
819 case Variable::CONTEXT:
879 case Variable::CONTEXT: {
884 int offset = Context::SlotOffset(variable->index());
914 ASSERT(variable->location() == Variable::CONTEXT);
923 __ ldr(r1, ContextOperand(r1, Context::EXTENSION_INDEX));
929 Context::SlotOffset(variable->index()),
951 case Variable::CONTEXT: {
973 // The context is the first argument.
1228 { EffectContext context(this);
1338 context()->Plug(r0);
1360 __ ldr(temp, ContextOperand(current, Context::EXTENSION_INDEX));
1364 // Load next context in chain.
1365 __ ldr(next, ContextOperand(current, Context::PREVIOUS_INDEX));
1370 // context extensions.
1381 // Terminate at native context.
1387 __ ldr(temp, ContextOperand(next, Context::EXTENSION_INDEX));
1390 // Load next context in chain.
1391 __ ldr(next, ContextOperand(next, Context::PREVIOUS_INDEX));
1409 Register context = cp;
1417 __ ldr(temp, ContextOperand(context, Context::EXTENSION_INDEX));
1421 __ ldr(next, ContextOperand(context, Context::PREVIOUS_INDEX));
1423 context = next;
1427 __ ldr(temp, ContextOperand(context, Context::EXTENSION_INDEX));
1434 return ContextOperand(context, var->index());
1487 context()->Plug(r0);
1493 case Variable::CONTEXT: {
1495 ? "Context variable"
1550 context()->Plug(r0);
1554 context()->Plug(var);
1566 __ Push(cp, r1); // Context and name.
1569 context()->Plug(r0);
1621 context()->Plug(r0);
1762 context()->PlugTOS();
1764 context()->Plug(r0);
1864 context()->PlugTOS();
1866 context()->Plug(r0);
1921 { AccumulatorValueContext context(this);
1946 AccumulatorValueContext context(this);
1972 context()->Plug(r0);
2024 context()->Plug(result_register());
2118 context()->DropAndPlug(2, r0); // drop iter and g
2143 // Load suspended function and context.
2172 // cp = callee's context,
2221 context()->Plug(result_register());
2370 context()->Plug(r0);
2383 context()->Plug(r0);
2409 EffectContext context(this);
2438 context()->Plug(r0);
2467 // able to drill a hole to that function context, even from inside a
2468 // 'with' context. We thus bypass the normal static scope lookup for
2472 __ Push(cp, r0); // Context and name.
2482 __ Push(cp, r1, r0); // Context, name, strict mode.
2500 int offset = Context::SlotOffset(var->index());
2521 int offset = Context::SlotOffset(var->index());
2530 __ Push(cp, r1, r0); // Context, name, strict mode.
2555 context()->Plug(r0);
2572 context()->Plug(r0);
2584 context()->Plug(r0);
2590 context()->Plug(r0);
2623 // Restore context register.
2625 context()->Plug(r0);
2656 // Restore context register.
2658 context()->DropAndPlug(1, r0); // Drop the key still on the stack.
2686 // Restore context register.
2688 context()->DropAndPlug(1, r0);
2764 // Restore context register.
2766 context()->DropAndPlug(1, r0);
2878 context()->Plug(r0);
2892 context()->PrepareTest(&materialize_true, &materialize_false,
2899 context()->Plug(if_true, if_false);
2913 context()->PrepareTest(&materialize_true, &materialize_false,
2920 context()->Plug(if_true, if_false);
2934 context()->PrepareTest(&materialize_true, &materialize_false,
2953 context()->Plug(if_true, if_false);
2967 context()->PrepareTest(&materialize_true, &materialize_false,
2975 context()->Plug(if_true, if_false);
2989 context()->PrepareTest(&materialize_true, &materialize_false,
2999 context()->Plug(if_true, if_false);
3014 context()->PrepareTest(&materialize_true, &materialize_false,
3081 __ ldr(r3, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3083 __ ldr(r3, ContextOperand(r3, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX));
3088 context()->Plug(if_true, if_false);
3102 context()->PrepareTest(&materialize_true, &materialize_false,
3110 context()->Plug(if_true, if_false);
3124 context()->PrepareTest(&materialize_true, &materialize_false,
3136 context()->Plug(if_true, if_false);
3150 context()->PrepareTest(&materialize_true, &materialize_false,
3158 context()->Plug(if_true, if_false);
3172 context()->PrepareTest(&materialize_true, &materialize_false,
3180 context()->Plug(if_true, if_false);
3192 context()->PrepareTest(&materialize_true, &materialize_false,
3212 context()->Plug(if_true, if_false);
3228 context()->PrepareTest(&materialize_true, &materialize_false,
3236 context()->Plug(if_true, if_false);
3251 context()->Plug(r0);
3272 context()->Plug(r0);
3333 context()->Plug(r0);
3355 context()->Plug(r0);
3368 context()->Plug(r0);
3382 context()->Plug(r0);
3400 context()->Plug(r0);
3447 context()->Plug(r0);
3480 context()->Plug(string);
3514 context()->Plug(string);
3527 context()->Plug(r0);
3555 context()->Plug(r0);
3567 context()->Plug(r0);
3585 context()->Plug(r1);
3630 context()->Plug(result);
3677 context()->Plug(result);
3699 context()->Plug(r0);
3711 context()->Plug(r0);
3723 context()->Plug(r0);
3733 context()->Plug(r0);
3766 context()->Plug(r0);
3778 context()->Plug(r0);
3793 context()->Plug(r0);
3801 __ ldr(cache, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3803 Context::JSFUNCTION_RESULT_CACHES_INDEX));
3828 context()->Plug(r0);
3869 context()->Plug(r0);
3881 context()->PrepareTest(&materialize_true, &materialize_false,
3889 context()->Plug(if_true, if_false);
3903 context()->Plug(r0);
4138 context()->Plug(r0);
4173 // Restore context register.
4179 context()->Plug(r0);
4198 context()->Plug(r0);
4210 context()->Plug(r0);
4214 context()->Plug(var->is_this());
4217 // context where the variable was introduced.
4222 context()->Plug(r0);
4228 context()->Plug(true);
4236 context()->Plug(Heap::kUndefinedValueRootIndex);
4242 if (context()->IsEffect()) {
4246 } else if (context()->IsTest()) {
4247 const TestContext* test = TestContext::cast(context());
4253 context()->Plug(test->true_label(), test->false_label());
4256 // for control and plugging the control flow into the context,
4259 ASSERT(context()->IsAccumulatorValue() || context()->IsStackValue());
4268 if (context()->IsStackValue()) __ push(r0);
4273 if (context()->IsStackValue()) __ push(r0);
4281 { StackValueContext context(this);
4285 context()->Plug(r0);
4311 // In case of a property we use the uninitialized expression context
4321 AccumulatorValueContext context(this);
4325 if (expr->is_postfix() && !context()->IsEffect()) {
4362 if (!context()->IsEffect()) {
4392 if (!context()->IsEffect()) {
4429 { EffectContext context(this);
4433 context.Plug(r0);
4437 if (!context()->IsEffect()) {
4438 context()->PlugTOS();
4444 context()->Plug(r0);
4456 if (!context()->IsEffect()) {
4457 context()->PlugTOS();
4460 context()->Plug(r0);
4472 if (!context()->IsEffect()) {
4473 context()->PlugTOS();
4476 context()->Plug(r0);
4485 ASSERT(!context()->IsEffect());
4486 ASSERT(!context()->IsTest());
4497 context()->Plug(r0);
4512 context()->Plug(r0);
4527 context()->PrepareTest(&materialize_true, &materialize_false,
4530 { AccumulatorValueContext context(this);
4597 context()->Plug(if_true, if_false);
4610 // into the expression's context after the comparison is performed.
4615 context()->PrepareTest(&materialize_true, &materialize_false,
4669 // expression's context.
4670 context()->Plug(if_true, if_false);
4681 context()->PrepareTest(&materialize_true, &materialize_false,
4699 context()->Plug(if_true, if_false);
4705 context()->Plug(r0);
4734 // Contexts nested in the native context have a canonical empty function
4741 // context calling eval, not the anonymous closure containing the eval
4742 // code. Fetch it from the context.
4743 __ ldr(ip, ContextOperand(cp, Context::CLOSURE_INDEX));
4829 // Because the handler block contains the context of the finally
4835 // Restore the context to its dedicated register and the stack.