Lines Matching refs:ast_context

3939     if (owner->ast_context()->IsTest()) {  in FunctionState()
3944 TestContext* outer_test_context = TestContext::cast(owner->ast_context()); in FunctionState()
3954 call_context_ = owner->ast_context(); in FunctionState()
3988 outer_(owner->ast_context()), in AstContext()
5241 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitFunctionLiteral()
5290 if (!ast_context()->IsTest()) { in VisitConditional()
5293 if (join != NULL && !ast_context()->IsEffect()) { in VisitConditional()
5294 return ast_context()->ReturnValue(Pop()); in VisitConditional()
5359 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitVariableProxy()
5377 return ast_context()->ReturnInstruction(constant, expr->id()); in VisitVariableProxy()
5381 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitVariableProxy()
5390 ast_context()->is_for_typeof()); in VisitVariableProxy()
5398 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitVariableProxy()
5410 return ast_context()->ReturnValue(value); in VisitVariableProxy()
5430 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitVariableProxy()
5444 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitLiteral()
5458 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitRegExpLiteral()
5655 return ast_context()->ReturnValue(result); in VisitObjectLiteral()
5657 return ast_context()->ReturnValue(Pop()); in VisitObjectLiteral()
5793 return ast_context()->ReturnValue(Pop()); in VisitArrayLiteral()
6359 if (!ast_context()->IsEffect()) Push(result); in HandlePolymorphicNamedFieldAccess()
6375 if (!ast_context()->IsEffect()) Push(access_type == LOAD ? instr : value); in HandlePolymorphicNamedFieldAccess()
6381 if (!ast_context()->IsEffect()) ast_context()->ReturnValue(Pop()); in HandlePolymorphicNamedFieldAccess()
6390 if (!ast_context()->IsEffect()) ast_context()->ReturnValue(Pop()); in HandlePolymorphicNamedFieldAccess()
6436 if (!ast_context()->IsEffect()) Push(value); in BuildStore()
6438 if (!ast_context()->IsEffect()) Drop(1); in BuildStore()
6441 return ast_context()->ReturnValue(value); in BuildStore()
6456 if (!ast_context()->IsEffect()) Push(value); in BuildStore()
6461 if (!ast_context()->IsEffect()) Drop(1); in BuildStore()
6462 return ast_context()->ReturnValue(value); in BuildStore()
6593 return ast_context()->ReturnValue(Pop()); in HandleCompoundAssignment()
6610 return ast_context()->ReturnValue(Pop()); in HandleCompoundAssignment()
6662 return ast_context()->ReturnValue(Pop()); in VisitAssignment()
6682 return ast_context()->ReturnValue(Pop()); in VisitAssignment()
6700 return ast_context()->ReturnValue(value); in VisitAssignment()
6730 return ast_context()->ReturnValue(Pop()); in VisitAssignment()
6750 return ast_context()->ReturnValue(Pop()); in VisitAssignment()
6772 if (!ast_context()->IsEffect()) { in VisitThrow()
7286 ast_context()->ReturnInstruction(result, expr->id()); in TryArgumentsAccess()
7357 if (instr->IsLinked()) return ast_context()->ReturnValue(instr); in BuildLoad()
7367 if (ast_context()->IsEffect()) { in BuildLoad()
7376 return ast_context()->ReturnValue(load); in BuildLoad()
7378 return ast_context()->ReturnInstruction(instr, ast_id); in BuildLoad()
7637 if (!ast_context()->IsEffect()) Push(call); in HandlePolymorphicCallNamed()
7672 if (!ast_context()->IsEffect()) Push(call); in HandlePolymorphicCallNamed()
7675 return ast_context()->ReturnInstruction(call, expr->id()); in HandlePolymorphicCallNamed()
7686 if (!ast_context()->IsEffect()) return ast_context()->ReturnValue(Pop()); in HandlePolymorphicCallNamed()
8003 DCHECK(ast_context() == inlined_test_context()); in TryInline()
8011 HBasicBlock* true_target = TestContext::cast(ast_context())->if_true(); in TryInline()
8017 HBasicBlock* false_target = TestContext::cast(ast_context())->if_false(); in TryInline()
8119 ast_context()->ReturnInstruction(op, expr->id()); in TryInlineBuiltinFunctionCall()
8129 ast_context()->ReturnInstruction(op, expr->id()); in TryInlineBuiltinFunctionCall()
8159 ast_context()->ReturnInstruction(char_code, expr->id()); in TryInlineBuiltinMethodCall()
8164 ast_context()->ReturnInstruction(result, expr->id()); in TryInlineBuiltinMethodCall()
8173 ast_context()->ReturnInstruction(result, expr->id()); in TryInlineBuiltinMethodCall()
8191 ast_context()->ReturnInstruction(op, expr->id()); in TryInlineBuiltinMethodCall()
8222 ast_context()->ReturnInstruction(result, expr->id()); in TryInlineBuiltinMethodCall()
8235 ast_context()->ReturnInstruction(result, expr->id()); in TryInlineBuiltinMethodCall()
8245 ast_context()->ReturnInstruction(result, expr->id()); in TryInlineBuiltinMethodCall()
8276 if (!ast_context()->IsEffect()) Push(graph()->GetConstantUndefined()); in TryInlineBuiltinMethodCall()
8302 if (!ast_context()->IsEffect()) Push(result); in TryInlineBuiltinMethodCall()
8306 result = ast_context()->IsEffect() ? graph()->GetConstant0() : Top(); in TryInlineBuiltinMethodCall()
8308 if (!ast_context()->IsEffect()) Drop(1); in TryInlineBuiltinMethodCall()
8310 ast_context()->ReturnValue(result); in TryInlineBuiltinMethodCall()
8358 if (!ast_context()->IsEffect()) Push(new_size); in TryInlineBuiltinMethodCall()
8360 if (!ast_context()->IsEffect()) Drop(1); in TryInlineBuiltinMethodCall()
8363 ast_context()->ReturnValue(new_size); in TryInlineBuiltinMethodCall()
8407 if (!ast_context()->IsEffect()) Push(graph()->GetConstantUndefined()); in TryInlineBuiltinMethodCall()
8425 if (!ast_context()->IsEffect()) { in TryInlineBuiltinMethodCall()
8467 if (!ast_context()->IsEffect()) Push(result); in TryInlineBuiltinMethodCall()
8473 result = ast_context()->IsEffect() ? graph()->GetConstant0() : Top(); in TryInlineBuiltinMethodCall()
8475 if (!ast_context()->IsEffect()) Drop(1); in TryInlineBuiltinMethodCall()
8476 ast_context()->ReturnValue(result); in TryInlineBuiltinMethodCall()
8510 if (!ast_context()->IsEffect()) Push(index); in TryInlineBuiltinMethodCall()
8512 if (!ast_context()->IsEffect()) Drop(1); in TryInlineBuiltinMethodCall()
8513 ast_context()->ReturnValue(index); in TryInlineBuiltinMethodCall()
8691 ast_context()->ReturnInstruction(call, ast_id); in TryInlineApiCall()
8735 ast_context()->ReturnInstruction(result, expr->id()); in TryCallApply()
8764 ast_context()->ReturnInstruction(call, expr->id()); in TryCallApply()
8800 ast_context()->ReturnInstruction(call, expression->id()); in BuildArrayCall()
9160 return ast_context()->ReturnInstruction(call, expr->id()); in VisitCall()
9207 ast_context()->ReturnValue(new_object); in BuildInlinedCallArray()
9371 return ast_context()->ReturnInstruction(call, expr->id()); in VisitCallNew()
9379 return ast_context()->ReturnInstruction(call, expr->id()); in VisitCallNew()
9714 return ast_context()->ReturnInstruction(max_smi, expr->id()); in GenerateMaxSmi()
9723 return ast_context()->ReturnInstruction(result, expr->id()); in GenerateTypedArrayMaxSizeInHeap()
9736 return ast_context()->ReturnInstruction(result, expr->id()); in GenerateArrayBufferGetByteLength()
9749 return ast_context()->ReturnInstruction(result, expr->id()); in GenerateArrayBufferViewGetByteLength()
9762 return ast_context()->ReturnInstruction(result, expr->id()); in GenerateArrayBufferViewGetByteOffset()
9775 return ast_context()->ReturnInstruction(result, expr->id()); in GenerateTypedArrayGetLength()
9812 return ast_context()->ReturnInstruction(call, expr->id()); in VisitCallRuntime()
9844 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitDelete()
9856 return ast_context()->ReturnValue(value); in VisitDelete()
9864 return ast_context()->ReturnValue(graph()->GetConstantTrue()); in VisitDelete()
9871 return ast_context()->ReturnValue(graph()->GetConstantUndefined()); in VisitVoid()
9879 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitTypeof()
9884 if (ast_context()->IsTest()) { in VisitNot()
9885 TestContext* context = TestContext::cast(ast_context()); in VisitNot()
9892 if (ast_context()->IsEffect()) { in VisitNot()
9897 DCHECK(ast_context()->IsValue()); in VisitNot()
9923 if (join != NULL) return ast_context()->ReturnValue(Pop()); in VisitNot()
9998 expr->is_postfix() && !ast_context()->IsEffect(); in VisitCountOperation()
10059 return ast_context()->ReturnValue(expr->is_postfix() ? input : after); in VisitCountOperation()
10086 return ast_context()->ReturnValue(Pop()); in VisitCountOperation()
10522 if (ast_context()->IsTest()) { in VisitLogicalExpression()
10523 TestContext* context = TestContext::cast(ast_context()); in VisitLogicalExpression()
10544 } else if (ast_context()->IsValue()) { in VisitLogicalExpression()
10559 return ast_context()->ReturnValue(Pop()); in VisitLogicalExpression()
10578 return ast_context()->ReturnValue(Pop()); in VisitLogicalExpression()
10581 DCHECK(ast_context()->IsEffect()); in VisitLogicalExpression()
10631 ast_context()->IsEffect() ? NO_PUSH_BEFORE_SIMULATE in VisitArithmeticExpression()
10639 return ast_context()->ReturnValue(result); in VisitArithmeticExpression()
10650 return ast_context()->ReturnControl(instr, expr->id()); in HandleLiteralCompareTypeof()
10696 return ast_context()->ReturnControl(instr, expr->id()); in VisitCompareOperation()
10715 return ast_context()->ReturnControl(result, expr->id()); in VisitCompareOperation()
10744 return ast_context()->ReturnInstruction(result, expr->id()); in VisitCompareOperation()
10749 return ast_context()->ReturnInstruction(result, expr->id()); in VisitCompareOperation()
10760 return ast_context()->ReturnInstruction(result, expr->id()); in VisitCompareOperation()
10764 ast_context()->IsEffect() ? NO_PUSH_BEFORE_SIMULATE in VisitCompareOperation()
10772 return ast_context()->ReturnControl(compare, expr->id()); in VisitCompareOperation()
10912 return ast_context()->ReturnControl(instr, expr->id()); in HandleLiteralCompareNil()
10919 return ast_context()->ReturnContinuation(&continuation, expr->id()); in HandleLiteralCompareNil()
11215 return ast_context()->ReturnInstruction(instr, expr->id()); in VisitThisFunction()
11369 return ast_context()->ReturnControl(result, call->id()); in GenerateIsSmi()
11381 return ast_context()->ReturnControl(result, call->id()); in GenerateIsSpecObject()
11391 return ast_context()->ReturnControl(result, call->id()); in GenerateIsFunction()
11400 return ast_context()->ReturnControl(result, call->id()); in GenerateIsMinusZero()
11410 return ast_context()->ReturnControl(result, call->id()); in GenerateHasCachedArrayIndex()
11420 return ast_context()->ReturnControl(result, call->id()); in GenerateIsArray()
11430 return ast_context()->ReturnControl(result, call->id()); in GenerateIsRegExp()
11439 return ast_context()->ReturnControl(result, call->id()); in GenerateIsObject()
11453 return ast_context()->ReturnControl(result, call->id()); in GenerateIsUndetectableObject()
11471 return ast_context()->ReturnValue(value); in GenerateIsConstructCall()
11473 return ast_context()->ReturnControl(New<HIsConstructCallAndBranch>(), in GenerateIsConstructCall()
11492 return ast_context()->ReturnInstruction(result, call->id()); in GenerateArgumentsLength()
11517 return ast_context()->ReturnInstruction(result, call->id()); in GenerateArguments()
11553 return ast_context()->ReturnValue(Pop()); in GenerateValueOf()
11564 return ast_context()->ReturnInstruction(result, call->id()); in GenerateDateField()
11580 return ast_context()->ReturnValue(graph()->GetConstantUndefined()); in GenerateOneByteSeqStringSetChar()
11596 return ast_context()->ReturnValue(graph()->GetConstantUndefined()); in GenerateTwoByteSeqStringSetChar()
11616 if (!ast_context()->IsEffect()) { in GenerateSetValueOf()
11624 if (!ast_context()->IsEffect()) { in GenerateSetValueOf()
11630 if (!ast_context()->IsEffect()) { in GenerateSetValueOf()
11633 return ast_context()->ReturnValue(value); in GenerateSetValueOf()
11645 return ast_context()->ReturnInstruction(result, call->id()); in GenerateStringCharCodeAt()
11655 return ast_context()->ReturnInstruction(result, call->id()); in GenerateStringCharFromCode()
11669 return ast_context()->ReturnInstruction(result, call->id()); in GenerateStringCharAt()
11682 return ast_context()->ReturnControl(result, call->id()); in GenerateObjectEquals()
11694 return ast_context()->ReturnInstruction(result, call->id()); in GenerateStringAdd()
11704 return ast_context()->ReturnInstruction(result, call->id()); in GenerateSubString()
11714 return ast_context()->ReturnInstruction(result, call->id()); in GenerateStringCompare()
11724 return ast_context()->ReturnInstruction(result, call->id()); in GenerateRegExpExec()
11733 return ast_context()->ReturnInstruction(result, call->id()); in GenerateDoubleLo()
11742 return ast_context()->ReturnInstruction(result, call->id()); in GenerateDoubleHi()
11753 return ast_context()->ReturnInstruction(result, call->id()); in GenerateConstructDouble()
11767 return ast_context()->ReturnValue(result); in GenerateRegExpConstructResult()
11783 return ast_context()->ReturnValue(result); in GenerateNumberToString()
11806 if (!ast_context()->IsEffect()) { in GenerateCallFunction()
11816 if (!ast_context()->IsEffect()) { in GenerateCallFunction()
11823 if (ast_context()->IsEffect()) { in GenerateCallFunction()
11826 return ast_context()->ReturnValue(graph()->GetConstantUndefined()); in GenerateCallFunction()
11828 return ast_context()->ReturnValue(Pop()); in GenerateCallFunction()
11841 return ast_context()->ReturnInstruction(result, call->id()); in GenerateMathPow()
11850 return ast_context()->ReturnInstruction(result, call->id()); in GenerateMathLogRT()
11859 return ast_context()->ReturnInstruction(result, call->id()); in GenerateMathSqrtRT()
11868 return ast_context()->ReturnInstruction(result, call->id()); in GenerateGetCachedArrayIndex()
11891 return ast_context()->ReturnValue(graph()->GetConstant0()); in GenerateDebugBreakInOptimizedCode()
11901 return ast_context()->ReturnValue(value); in GenerateDebugIsActive()