Home | History | Annotate | Download | only in src

Lines Matching refs:CONTEXT

2190       // The AstContext constructor pushed on the context stack.  This newed
2212 // Implementation of utility classes to represent an expression's context in
2214 AstContext::AstContext(HGraphBuilder* owner, Expression::Context kind)
2257 owner()->Bailout("bad value context for arguments value");
2290 return owner()->Bailout("bad value context for arguments object value");
2301 return owner()->Bailout("bad value context for arguments object value");
2353 builder->Bailout("arguments object value in a test context");
2492 HValue* context = environment()->LookupContext();
2494 new(zone()) HStackCheck(context, HStackCheck::kFunctionEntry));
2654 HInstruction* context = AddInstruction(new(zone()) HContext);
2655 environment()->BindContext(context);
2668 return Bailout("context-allocated arguments");
2845 AstContext* context = call_context();
2846 if (context == NULL) {
2852 // Return from an inlined construct call. In a test context the return
2853 // value will always evaluate to true, in a value context the return value
2855 if (context->IsTest()) {
2856 TestContext* test = TestContext::cast(context);
2859 } else if (context->IsEffect()) {
2863 ASSERT(context->IsValue());
2885 // expression context of the call.
2886 if (context->IsTest()) {
2887 TestContext* test = TestContext::cast(context);
2891 } else if (context->IsEffect()) {
2895 ASSERT(context->IsValue());
2928 HValue* context = environment()->LookupContext();
3011 compare = new(zone()) HStringCompareAndBranch(context, tag_value,
3147 HContext* context = new(zone()) HContext;
3148 AddInstruction(context);
3149 environment()->BindContext(context);
3162 HValue* context = environment()->LookupContext();
3164 new(zone()) HStackCheck(context, HStackCheck::kBackwardsBranch);
3487 HValue* context = environment()->LookupContext();
3489 new(zone()) HFunctionLiteral(context, shared_info, expr->pretenure());
3511 // Visit the true and false subexpressions in the same AST context as the
3561 HValue* context = environment()->LookupContext();
3564 HInstruction* context_instruction = new(zone()) HOuterContext(context);
3566 context = context_instruction;
3568 return context;
3608 HValue* context = environment()->LookupContext();
3609 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
3612 new(zone()) HLoadGlobalGeneric(context,
3633 case Variable::CONTEXT: {
3634 HValue* context = BuildContextChainWalk(variable);
3635 HLoadContextSlot* instr = new(zone()) HLoadContextSlot(context, variable);
3659 HValue* context = environment()->LookupContext();
3661 HRegExpLiteral* instr = new(zone()) HRegExpLiteral(context,
3735 HValue* context = environment()->LookupContext();
3748 literal = new(zone()) HFastLiteral(context,
3754 literal = new(zone()) HObjectLiteral(context,
3823 HValue* context = environment()->LookupContext();
3853 literal = new(zone()) HFastLiteral(context,
3859 literal = new(zone()) HArrayLiteral(context,
3980 HValue* context = environment()->LookupContext();
3982 context,
4182 HValue* context = environment()->LookupContext();
4183 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
4186 new(zone()) HStoreGlobalGeneric(context,
4233 case Variable::CONTEXT: {
4238 // Parameters will be allocated to context slots. We have no
4266 HValue* context = BuildContextChainWalk(var);
4268 new(zone()) HStoreContextSlot(context, var->index(), mode, Top());
4418 // We do not allow the arguments object to occur in a context where it
4427 case Variable::CONTEXT: {
4432 // Parameters will rewrite to context slots. We have no direct way
4468 HValue* context = BuildContextChainWalk(var);
4470 context, var->index(), mode, Top());
4493 // currently only occur in an effect context.
4497 HValue* context = environment()->LookupContext();
4499 HThrow* instr = new(zone()) HThrow(context, value);
4541 HValue* context = environment()->LookupContext();
4542 return new(zone()) HLoadNamedGeneric(context, obj, name);
4572 HValue* context = environment()->LookupContext();
4573 return new(zone()) HLoadKeyedGeneric(context, object, key);
4927 HValue* context = environment()->LookupContext();
4929 context,
5002 HValue* context = environment()->LookupContext();
5004 BuildStringCharCodeAt(context, string, index);
5006 instr = new(zone()) HStringCharFromCode(context, char_code);
5022 HValue* context = environment()->LookupContext();
5023 instr = new(zone()) HLoadNamedFieldPolymorphic(context, obj, types, name);
5130 HValue* context = environment()->LookupContext();
5131 HCallNamed* call = new(zone()) HCallNamed(context, name, argument_count);
5216 // Target must be able to use caller's context.
5218 if (target->context() != outer_info->closure()->context() ||
5221 TraceInline(target, caller, "target requires context change");
5272 TraceInline(target, caller, "target has context-allocated variables");
5345 // Save the pending call context and type feedback oracle. Set up new ones
5350 Handle<Context>(target->context()->global_context()),
5366 // IA32 only, overwrite the caller's context in the deoptimization
5371 HConstant* context = new HConstant(Handle<Context>(target->context()),
5373 AddInstruction(context);
5374 inner_env->BindContext(context);
5410 // body. In a test context, undefined is false and any JSObject is true.
5437 // Pop the return test context from the expression context stack.
5442 // Forward to the real test context.
5508 HValue* context = environment()->LookupContext();
5511 new(zone()) HUnaryMathOperation(context, argument, id);
5541 HValue* context = environment()->LookupContext();
5547 BuildStringCharCodeAt(context, string, index);
5554 new(zone()) HStringCharFromCode(context, char_code);
5570 HValue* context = environment()->LookupContext();
5573 new(zone()) HUnaryMathOperation(context, argument, id);
5585 HValue* context = environment()->LookupContext();
5592 new(zone()) HUnaryMathOperation(context, left, kMathPowHalf);
5599 new(zone()) HUnaryMathOperation(context, left, kMathPowHalf);
5604 result = new(zone()) HDiv(context, double_one, square_root);
5606 result = new(zone()) HMul(context, left, left);
5611 result = new(zone()) HMul(context, left, left);
5625 HValue* context = environment()->LookupContext();
5626 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
5776 HValue* context = environment()->LookupContext();
5790 context,
5824 HValue* context = environment()->LookupContext();
5825 call = new(zone()) HCallKeyed(context, key, argument_count);
5866 HValue* context = environment()->LookupContext();
5868 new(zone()) HCallNamed(context, name, argument_count));
5883 HValue* context = environment()->LookupContext();
5885 new(zone()) HCallNamed(context, name, argument_count));
5913 HValue* context = environment()->LookupContext();
5914 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
5944 HValue* context = environment()->LookupContext();
5945 HGlobalObject* receiver = new(zone()) HGlobalObject(context);
5950 call = new(zone()) HCallGlobal(context, var->name(), argument_count);
5959 HValue* context = environment()->LookupContext();
5960 HGlobalObject* global = new(zone()) HGlobalObject(context);
5979 call = PreProcessCall(new(zone()) HInvokeFunction(context,
5988 HValue* context = environment()->LookupContext();
5989 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
5996 call = new(zone()) HCallFunction(context, function, argument_count);
6019 context = environment()->LookupContext();
6040 HInstruction* receiver = new(zone()) HAllocateObject(context, constructor);
6057 new(zone()) HCallNew(context, function, argument_count));
6067 new(zone()) HCallNew(context, constructor, argument_count);
6117 HValue* context = environment()->LookupContext();
6121 new(zone()) HCallRuntime(context, name, function, argument_count);
6153 HValue* context = environment()->LookupContext();
6154 HDeleteProperty* instr = new(zone()) HDeleteProperty(context, obj, key);
6189 HValue* context = environment()->LookupContext();
6190 HInstruction* instr = new(zone()) HTypeof(context, value);
6198 HValue* context = environment()->LookupContext();
6200 new(zone()) HMul(context, value, graph_->GetConstant1());
6208 HValue* context = environment()->LookupContext();
6210 new(zone()) HMul(context, value, graph_->GetConstantMinus1());
6239 TestContext* context = TestContext::cast(ast_context());
6241 context->if_false(),
6242 context->if_true());
6306 HValue* context = environment()->LookupContext();
6307 HInstruction* instr = new(zone()) HAdd(context, Top(), delta);
6327 // element for postfix operations in a non-effect context. The return
6360 case Variable::CONTEXT: {
6365 // Parameters will rewrite to context slots. We have no direct
6376 HValue* context = BuildContextChainWalk(var);
6381 new(zone()) HStoreContextSlot(context, var->index(), mode, after);
6471 HStringCharCodeAt* HGraphBuilder::BuildStringCharCodeAt(HValue* context,
6480 return new(zone()) HStringCharCodeAt(context, string, checked_index);
6487 HValue* context = environment()->LookupContext();
6502 instr = new(zone()) HStringAdd(context, left, right);
6504 instr = HAdd::NewHAdd(zone(), context, left, right);
6508 instr = HSub::NewHSub(zone(), context, left, right);
6511 instr = HMul::NewHMul(zone(), context, left, right);
6514 instr = HMod::NewHMod(zone(), context, left, right);
6517 instr = HDiv::NewHDiv(zone(), context, left, right);
6522 instr = HBitwise::NewHBitwise(zone(), expr->op(), context, left, right);
6525 instr = HSar::NewHSar(zone(), context, left, right);
6528 instr = HShr::NewHShr(zone(), context, left, right);
6531 instr = HShl::NewHShl(zone(), context, left, right);
6588 // Visit the right subexpression in the same AST context as the entire
6597 TestContext* context = TestContext::cast(ast_context());
6603 context->if_false()));
6606 context->if_true(),
6611 // context as the entire expression.
6643 // In an effect context, we don't need the value of the left subexpression,
6825 HValue* context = environment()->LookupContext();
6879 HInstanceOf* result = new(zone()) HInstanceOf(context, left, right);
6885 new(zone()) HInstanceOfKnownGlobal(context, left, target);
6890 HIn* result = new(zone()) HIn(context, left, right);
6938 new(zone()) HCompareGeneric(context, left, right, op);
7043 case Variable::CONTEXT:
7053 HValue* context = environment()->LookupContext();
7055 context, var->index(), HStoreContextSlot::kNoCheck, value);
7330 HValue* context = environment()->LookupContext();
7331 HStringCharCodeAt* result = BuildStringCharCodeAt(context, string, index);
7341 HValue* context = environment()->LookupContext();
7343 new(zone()) HStringCharFromCode(context, char_code);
7355 HValue* context = environment()->LookupContext();
7356 HStringCharCodeAt* char_code = BuildStringCharCodeAt(context, string, index);
7359 new(zone()) HStringCharFromCode(context, char_code);
7385 HValue* context = environment()->LookupContext();
7386 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
7397 HValue* context = environment()->LookupContext();
7398 HCallStub* result = new(zone()) HCallStub(context, CodeStub::StringAdd, 2);
7408 HValue* context = environment()->LookupContext();
7409 HCallStub* result = new(zone()) HCallStub(context, CodeStub::SubString, 3);
7419 HValue* context = environment()->LookupContext();
7421 new(zone()) HCallStub(context, CodeStub::StringCompare, 2);
7431 HValue* context = environment()->LookupContext();
7432 HCallStub* result = new(zone()) HCallStub(context, CodeStub::RegExpExec, 4);
7442 HValue* context = environment()->LookupContext();
7444 new(zone()) HCallStub(context, CodeStub::RegExpConstructResult, 3);
7460 HValue* context = environment()->LookupContext();
7462 new(zone()) HCallStub(context, CodeStub::NumberToString, 1);
7480 HValue* context = environment()->LookupContext();
7494 new(zone()) HInvokeFunction(context, function, arg_count));
7501 new(zone()) HCallFunction(context, function, arg_count));
7527 HValue* context = environment()->LookupContext();
7529 new(zone()) HCallStub(context, CodeStub::TranscendentalCache, 1);
7539 HValue* context = environment()->LookupContext();
7541 new(zone()) HCallStub(context, CodeStub::TranscendentalCache, 1);
7551 HValue* context = environment()->LookupContext();
7553 new(zone()) HCallStub(context, CodeStub::TranscendentalCache, 1);
7563 HValue* context = environment()->LookupContext();
7565 new(zone()) HCallStub(context, CodeStub::TranscendentalCache, 1);