Lines Matching refs:factory
213 factory(), ast_value_factory()->this_function_string(), in DefaultConstructor()
218 Expression* super_constructor = factory()->NewCallRuntime( in DefaultConstructor()
222 factory(), ast_value_factory()->arguments_string(), Variable::NORMAL, in DefaultConstructor()
226 factory(), ast_value_factory()->new_target_string(), Variable::NORMAL, in DefaultConstructor()
229 CallRuntime* call = factory()->NewCallRuntime( in DefaultConstructor()
231 body->Add(factory()->NewReturnStatement(call, pos), zone()); in DefaultConstructor()
238 FunctionLiteral* function_literal = factory()->NewFunctionLiteral( in DefaultConstructor()
388 AstNodeFactory* factory) { in ShortcutNumericLiteralBinaryExpression() argument
398 *x = factory->NewNumberLiteral(x_val + y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
401 *x = factory->NewNumberLiteral(x_val - y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
404 *x = factory->NewNumberLiteral(x_val * y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
407 *x = factory->NewNumberLiteral(x_val / y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
411 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
416 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
421 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
426 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
432 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
438 *x = factory->NewNumberLiteral(value, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
451 AstNodeFactory* factory) { in BuildUnaryExpression() argument
458 return factory->NewBooleanLiteral(!condition, pos); in BuildUnaryExpression()
467 return factory->NewNumberLiteral(-value, pos, has_dot); in BuildUnaryExpression()
469 return factory->NewNumberLiteral(~DoubleToInt32(value), pos, has_dot); in BuildUnaryExpression()
477 return factory->NewBinaryOperation( in BuildUnaryExpression()
478 Token::MUL, expression, factory->NewNumberLiteral(1, pos, true), pos); in BuildUnaryExpression()
482 return factory->NewBinaryOperation( in BuildUnaryExpression()
483 Token::MUL, expression, factory->NewNumberLiteral(-1, pos), pos); in BuildUnaryExpression()
487 return factory->NewBinaryOperation( in BuildUnaryExpression()
488 Token::BIT_XOR, expression, factory->NewNumberLiteral(~0, pos), pos); in BuildUnaryExpression()
490 return factory->NewUnaryOperation(op, expression, pos); in BuildUnaryExpression()
519 args->Add(parser_->factory()->NewSmiLiteral(message, pos), zone); in NewThrowError()
520 args->Add(parser_->factory()->NewStringLiteral(arg, pos), zone); in NewThrowError()
522 parser_->factory()->NewCallRuntime(id, args, pos); in NewThrowError()
523 return parser_->factory()->NewThrow(call_constructor, pos); in NewThrowError()
595 Expression* ParserTraits::ThisExpression(Scope* scope, AstNodeFactory* factory, in ThisExpression() argument
597 return scope->NewUnresolved(factory, in ThisExpression()
604 AstNodeFactory* factory, in SuperPropertyReference() argument
608 factory, parser_->ast_value_factory()->this_function_string(), in SuperPropertyReference()
611 factory->NewSymbolLiteral("home_object_symbol", RelocInfo::kNoPosition); in SuperPropertyReference()
612 Expression* home_object = factory->NewProperty( in SuperPropertyReference()
614 return factory->NewSuperPropertyReference( in SuperPropertyReference()
615 ThisExpression(scope, factory, pos)->AsVariableProxy(), home_object, pos); in SuperPropertyReference()
620 AstNodeFactory* factory, int pos) { in SuperCallReference() argument
622 factory, parser_->ast_value_factory()->new_target_string(), in SuperCallReference()
625 factory, parser_->ast_value_factory()->this_function_string(), in SuperCallReference()
627 return factory->NewSuperCallReference( in SuperCallReference()
628 ThisExpression(scope, factory, pos)->AsVariableProxy(), new_target_proxy, in SuperCallReference()
634 AstNodeFactory* factory, in NewTargetExpression() argument
638 factory, parser_->ast_value_factory()->new_target_string(), in NewTargetExpression()
654 AstNodeFactory* factory) { in ExpressionFromLiteral() argument
657 return factory->NewNullLiteral(pos); in ExpressionFromLiteral()
659 return factory->NewBooleanLiteral(true, pos); in ExpressionFromLiteral()
661 return factory->NewBooleanLiteral(false, pos); in ExpressionFromLiteral()
664 return factory->NewSmiLiteral(value, pos); in ExpressionFromLiteral()
669 return factory->NewNumberLiteral(value, pos, has_dot); in ExpressionFromLiteral()
682 AstNodeFactory* factory) { in ExpressionFromIdentifier() argument
684 return scope->NewUnresolved(factory, name, Variable::NORMAL, start_position, in ExpressionFromIdentifier()
690 AstNodeFactory* factory) { in ExpressionFromString() argument
693 return factory->NewStringLiteral(symbol, pos); in ExpressionFromString()
698 AstNodeFactory* factory, int pos) { in GetIterator() argument
700 factory->NewSymbolLiteral("iterator_symbol", RelocInfo::kNoPosition); in GetIterator()
702 factory->NewProperty(iterable, iterator_symbol_literal, pos); in GetIterator()
705 return factory->NewCall(prop, args, pos); in GetIterator()
710 AstNodeFactory* factory) { in GetLiteralTheHole() argument
711 return factory->NewTheHoleLiteral(RelocInfo::kNoPosition); in GetLiteralTheHole()
938 result = factory()->NewFunctionLiteral( in DoParseProgram()
1452 factory()->NewImportDeclaration(proxy, import_name, NULL, scope_, pos); in ParseNamedImports()
1490 return factory()->NewEmptyStatement(pos); in ParseImportDeclaration()
1499 import_default_declaration = factory()->NewImportDeclaration( in ParseImportDeclaration()
1548 return factory()->NewEmptyStatement(pos); in ParseImportDeclaration()
1581 result = factory()->NewExpressionStatement(expr, pos); in ParseExportDefault()
1629 return factory()->NewEmptyStatement(pos); in ParseExportDeclaration()
1681 return factory()->NewEmptyStatement(pos); in ParseExportDeclaration()
1728 return factory()->NewEmptyStatement(RelocInfo::kNoPosition); in ParseStatement()
1771 return factory()->NewEmptyStatement(RelocInfo::kNoPosition); in ParseSubStatement()
1796 factory()->NewBlock(labels, 1, false, RelocInfo::kNoPosition); in ParseSubStatement()
1885 return scope->NewUnresolved(factory(), name, Variable::NORMAL, in NewUnresolved()
2084 factory()->NewVariableDeclaration(proxy, VAR, scope_, pos); in ParseNativeDeclaration()
2086 NativeFunctionLiteral* lit = factory()->NewNativeFunctionLiteral( in ParseNativeDeclaration()
2088 return factory()->NewExpressionStatement( in ParseNativeDeclaration()
2089 factory()->NewAssignment(Token::INIT, proxy, lit, RelocInfo::kNoPosition), in ParseNativeDeclaration()
2133 factory()->NewFunctionDeclaration(proxy, mode, fun, scope_, pos); in ParseFunctionDeclaration()
2136 EmptyStatement* empty = factory()->NewEmptyStatement(RelocInfo::kNoPosition); in ParseFunctionDeclaration()
2140 factory()->NewSloppyBlockFunctionStatement(empty, scope_); in ParseFunctionDeclaration()
2181 Declaration* declaration = factory()->NewVariableDeclaration( in ParseClassDeclaration()
2205 factory()->NewAssignment(Token::INIT, proxy, value, pos); in ParseClassDeclaration()
2207 factory()->NewExpressionStatement(assignment, RelocInfo::kNoPosition); in ParseClassDeclaration()
2222 factory()->NewBlock(labels, 16, false, RelocInfo::kNoPosition); in ParseBlock()
2255 Block* result = descriptor.parser->factory()->NewBlock( in BuildInitializationBlock()
2538 return factory()->NewExpressionStatement(expr, pos); in ParseExpressionOrLabelledStatement()
2600 return factory()->NewExpressionStatement(expr, pos); in ParseExpressionOrLabelledStatement()
2620 else_statement = factory()->NewEmptyStatement(RelocInfo::kNoPosition); in ParseIfStatement()
2622 return factory()->NewIfStatement( in ParseIfStatement()
2652 return factory()->NewContinueStatement(target, pos); in ParseContinueStatement()
2674 return factory()->NewEmptyStatement(pos); in ParseBreakStatement()
2689 return factory()->NewBreakStatement(target, pos); in ParseBreakStatement()
2712 return_value = ThisExpression(scope_, factory(), loc.beg_pos); in ParseReturnStatement()
2741 Assignment* assign = factory()->NewAssignment( in ParseReturnStatement()
2742 Token::ASSIGN, factory()->NewVariableProxy(temp), return_value, pos); in ParseReturnStatement()
2751 is_spec_object_args->Add(factory()->NewVariableProxy(temp), zone()); in ParseReturnStatement()
2752 Expression* is_spec_object_call = factory()->NewCallRuntime( in ParseReturnStatement()
2756 Expression* is_object_conditional = factory()->NewConditional( in ParseReturnStatement()
2757 is_spec_object_call, factory()->NewVariableProxy(temp), in ParseReturnStatement()
2761 Expression* is_undefined = factory()->NewCompareOperation( in ParseReturnStatement()
2763 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), pos); in ParseReturnStatement()
2766 return_value = factory()->NewConditional( in ParseReturnStatement()
2767 is_undefined, ThisExpression(scope_, factory(), pos), in ParseReturnStatement()
2776 Expression* generator = factory()->NewVariableProxy( in ParseReturnStatement()
2778 Expression* yield = factory()->NewYield( in ParseReturnStatement()
2780 result = factory()->NewExpressionStatement(yield, loc.beg_pos); in ParseReturnStatement()
2782 result = factory()->NewReturnStatement(return_value, loc.beg_pos); in ParseReturnStatement()
2821 body = factory()->NewBlock(labels, 1, false, RelocInfo::kNoPosition); in ParseWithStatement()
2836 return factory()->NewWithStatement(with_scope, expr, body, pos); in ParseWithStatement()
2876 return factory()->NewCaseClause(label, statements, pos); in ParseCaseClause()
2895 factory()->NewBlock(NULL, 2, false, RelocInfo::kNoPosition); in ParseSwitchStatement()
2905 Assignment* tag_assign = factory()->NewAssignment( in ParseSwitchStatement()
2906 Token::ASSIGN, factory()->NewVariableProxy(tag_variable), tag, in ParseSwitchStatement()
2909 factory()->NewExpressionStatement(tag_assign, RelocInfo::kNoPosition); in ParseSwitchStatement()
2916 factory()->NewExpressionStatement( in ParseSwitchStatement()
2917 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), in ParseSwitchStatement()
2922 factory()->NewBlock(NULL, 1, false, RelocInfo::kNoPosition); in ParseSwitchStatement()
2927 factory()->NewSwitchStatement(labels, switch_pos); in ParseSwitchStatement()
2934 Expression* tag_read = factory()->NewVariableProxy(tag_variable); in ParseSwitchStatement()
2973 return factory()->NewExpressionStatement( in ParseThrowStatement()
2974 factory()->NewThrow(exception, pos), pos); in ParseThrowStatement()
3035 factory()->NewBlock(nullptr, 16, false, RelocInfo::kNoPosition); in ParseTryStatement()
3056 factory()->NewVariableProxy(catch_variable)); in ParseTryStatement()
3096 factory()->NewTryCatchStatement(try_block, catch_scope, catch_variable, in ParseTryStatement()
3098 try_block = factory()->NewBlock(NULL, 1, false, RelocInfo::kNoPosition); in ParseTryStatement()
3107 result = factory()->NewTryCatchStatement(try_block, catch_scope, in ParseTryStatement()
3111 result = factory()->NewTryFinallyStatement(try_block, finally_block, pos); in ParseTryStatement()
3124 factory()->NewDoWhileStatement(labels, peek_position()); in ParseDoWhileStatement()
3151 WhileStatement* loop = factory()->NewWhileStatement(labels, peek_position()); in ParseWhileStatement()
3169 Expression* next_literal = factory()->NewStringLiteral( in BuildIteratorNextResult()
3172 factory()->NewProperty(iterator, next_literal, RelocInfo::kNoPosition); in BuildIteratorNextResult()
3176 factory()->NewCall(next_property, next_arguments, pos); in BuildIteratorNextResult()
3177 Expression* result_proxy = factory()->NewVariableProxy(result); in BuildIteratorNextResult()
3179 factory()->NewAssignment(Token::ASSIGN, result_proxy, next_call, pos); in BuildIteratorNextResult()
3185 Expression* is_spec_object_call = factory()->NewCallRuntime( in BuildIteratorNextResult()
3189 Expression* result_proxy_again = factory()->NewVariableProxy(result); in BuildIteratorNextResult()
3193 Expression* throw_call = factory()->NewCallRuntime( in BuildIteratorNextResult()
3196 return factory()->NewBinaryOperation( in BuildIteratorNextResult()
3198 factory()->NewUnaryOperation(Token::NOT, is_spec_object_call, pos), in BuildIteratorNextResult()
3224 assign_iterator = factory()->NewAssignment( in InitializeForEachStatement()
3225 Token::ASSIGN, factory()->NewVariableProxy(iterator), in InitializeForEachStatement()
3226 GetIterator(subject, factory(), subject->position() - 2), in InitializeForEachStatement()
3233 Expression* iterator_proxy = factory()->NewVariableProxy(iterator); in InitializeForEachStatement()
3242 Expression* done_literal = factory()->NewStringLiteral( in InitializeForEachStatement()
3244 Expression* result_proxy = factory()->NewVariableProxy(result); in InitializeForEachStatement()
3245 result_done = factory()->NewProperty( in InitializeForEachStatement()
3251 Expression* value_literal = factory()->NewStringLiteral( in InitializeForEachStatement()
3253 Expression* result_proxy = factory()->NewVariableProxy(result); in InitializeForEachStatement()
3254 Expression* result_value = factory()->NewProperty( in InitializeForEachStatement()
3256 assign_each = factory()->NewAssignment(Token::ASSIGN, each, result_value, in InitializeForEachStatement()
3273 VariableProxy* temp_proxy = factory()->NewVariableProxy(temp); in InitializeForEachStatement()
3275 this, factory()->NewAssignment(Token::ASSIGN, each, temp_proxy, in InitializeForEachStatement()
3279 factory()->NewBlock(nullptr, 2, false, RelocInfo::kNoPosition); in InitializeForEachStatement()
3280 block->statements()->Add(factory()->NewExpressionStatement( in InitializeForEachStatement()
3285 each = factory()->NewVariableProxy(temp); in InitializeForEachStatement()
3337 Block* outer_block = factory()->NewBlock(NULL, names->length() + 4, false, in DesugarLexicalBindingsInForStatement()
3350 VariableProxy* temp_proxy = factory()->NewVariableProxy(temp); in DesugarLexicalBindingsInForStatement()
3351 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3353 Statement* assignment_statement = factory()->NewExpressionStatement( in DesugarLexicalBindingsInForStatement()
3363 VariableProxy* first_proxy = factory()->NewVariableProxy(first); in DesugarLexicalBindingsInForStatement()
3364 Expression* const1 = factory()->NewSmiLiteral(1, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3365 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3368 factory()->NewExpressionStatement(assignment, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3374 factory()->NewExpressionStatement( in DesugarLexicalBindingsInForStatement()
3375 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), in DesugarLexicalBindingsInForStatement()
3385 factory()->NewForStatement(NULL, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3392 factory()->NewBlock(NULL, 3, false, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3393 Block* ignore_completion_block = factory()->NewBlock( in DesugarLexicalBindingsInForStatement()
3401 Declaration* declaration = factory()->NewVariableDeclaration( in DesugarLexicalBindingsInForStatement()
3405 VariableProxy* temp_proxy = factory()->NewVariableProxy(temps.at(i)); in DesugarLexicalBindingsInForStatement()
3406 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3409 factory()->NewExpressionStatement(assignment, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3421 Expression* const1 = factory()->NewSmiLiteral(1, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3422 VariableProxy* first_proxy = factory()->NewVariableProxy(first); in DesugarLexicalBindingsInForStatement()
3423 compare = factory()->NewCompareOperation(Token::EQ, first_proxy, const1, in DesugarLexicalBindingsInForStatement()
3429 VariableProxy* first_proxy = factory()->NewVariableProxy(first); in DesugarLexicalBindingsInForStatement()
3430 Expression* const0 = factory()->NewSmiLiteral(0, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3431 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3434 factory()->NewExpressionStatement(assignment, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3436 Statement* clear_first_or_next = factory()->NewIfStatement( in DesugarLexicalBindingsInForStatement()
3444 VariableProxy* flag_proxy = factory()->NewVariableProxy(flag); in DesugarLexicalBindingsInForStatement()
3445 Expression* const1 = factory()->NewSmiLiteral(1, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3446 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3449 factory()->NewExpressionStatement(assignment, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3456 factory()->NewBreakStatement(outer_loop, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3457 Statement* noop = factory()->NewEmptyStatement(RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3459 factory()->NewIfStatement(cond, noop, stop, cond->position()), zone()); in DesugarLexicalBindingsInForStatement()
3466 Expression* const1 = factory()->NewSmiLiteral(1, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3467 VariableProxy* flag_proxy = factory()->NewVariableProxy(flag); in DesugarLexicalBindingsInForStatement()
3468 flag_cond = factory()->NewCompareOperation(Token::EQ, flag_proxy, const1, in DesugarLexicalBindingsInForStatement()
3478 VariableProxy* flag_proxy = factory()->NewVariableProxy(flag); in DesugarLexicalBindingsInForStatement()
3479 Expression* const0 = factory()->NewSmiLiteral(0, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3480 compound_next = factory()->NewAssignment(Token::ASSIGN, flag_proxy, in DesugarLexicalBindingsInForStatement()
3487 VariableProxy* temp_proxy = factory()->NewVariableProxy(temps.at(i)); in DesugarLexicalBindingsInForStatement()
3489 factory()->NewVariableProxy(inner_vars.at(i), inner_var_proxy_pos); in DesugarLexicalBindingsInForStatement()
3490 Assignment* assignment = factory()->NewAssignment( in DesugarLexicalBindingsInForStatement()
3492 compound_next = factory()->NewBinaryOperation( in DesugarLexicalBindingsInForStatement()
3496 compound_next_statement = factory()->NewExpressionStatement( in DesugarLexicalBindingsInForStatement()
3512 Expression* const1 = factory()->NewSmiLiteral(1, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3513 VariableProxy* flag_proxy = factory()->NewVariableProxy(flag); in DesugarLexicalBindingsInForStatement()
3514 compare = factory()->NewCompareOperation(Token::EQ, flag_proxy, const1, in DesugarLexicalBindingsInForStatement()
3518 factory()->NewBreakStatement(outer_loop, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3519 Statement* empty = factory()->NewEmptyStatement(RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3521 factory()->NewIfStatement(compare, stop, empty, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3523 factory()->NewBlock(NULL, 1, true, RelocInfo::kNoPosition); in DesugarLexicalBindingsInForStatement()
3605 factory(), name, Variable::NORMAL, each_beg_pos, each_end_pos); in ParseForStatement()
3606 init_block = factory()->NewBlock( in ParseForStatement()
3609 factory()->NewExpressionStatement( in ParseForStatement()
3610 factory()->NewAssignment(Token::ASSIGN, single_var, in ParseForStatement()
3636 factory()->NewForEachStatement(mode, labels, stmt_pos); in ParseForStatement()
3650 factory()->NewBlock(NULL, 3, false, RelocInfo::kNoPosition); in ParseForStatement()
3653 factory()->NewBlock(nullptr, 1, true, RelocInfo::kNoPosition); in ParseForStatement()
3658 decl.initializer = factory()->NewVariableProxy(temp); in ParseForStatement()
3670 factory()->NewVariableProxy(temp, each_beg_pos, each_end_pos); in ParseForStatement()
3685 factory()->NewBlock(nullptr, 1, false, RelocInfo::kNoPosition); in ParseForStatement()
3692 Declaration* tdz_decl = factory()->NewVariableDeclaration( in ParseForStatement()
3753 factory()->NewForEachStatement(mode, labels, stmt_pos); in ParseForStatement()
3768 factory()->NewBlock(NULL, 1, false, RelocInfo::kNoPosition); in ParseForStatement()
3786 init = factory()->NewExpressionStatement(expression, lhs_beg_pos); in ParseForStatement()
3792 ForStatement* loop = factory()->NewForStatement(labels, stmt_pos); in ParseForStatement()
3823 next = factory()->NewExpressionStatement(exp, exp->position()); in ParseForStatement()
3861 factory()->NewBlock(NULL, 2, false, RelocInfo::kNoPosition); in ParseForStatement()
3888 return factory()->NewDebuggerStatement(pos); in ParseDebuggerStatement()
3901 Factory* factory = isolate->factory(); in GetValue() local
3903 Handle<FixedArray> result = factory->NewFixedArray(2, TENURED); in GetValue()
4019 DoExpression* expr = factory()->NewDoExpression(block, result, pos); in ParseDoExpression()
4272 AstNodeFactory::BodyScope inner(factory(), &temp_zone, use_temp_zone); in ParseFunctionLiteral()
4332 FunctionLiteral* function_literal = factory()->NewFunctionLiteral( in ParseFunctionLiteral()
4433 Expression* condition = factory()->NewBinaryOperation( in BuildAssertIsCoercible()
4434 Token::OR, factory()->NewCompareOperation( in BuildAssertIsCoercible()
4435 Token::EQ_STRICT, factory()->NewVariableProxy(var), in BuildAssertIsCoercible()
4436 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), in BuildAssertIsCoercible()
4438 factory()->NewCompareOperation( in BuildAssertIsCoercible()
4439 Token::EQ_STRICT, factory()->NewVariableProxy(var), in BuildAssertIsCoercible()
4440 factory()->NewNullLiteral(RelocInfo::kNoPosition), in BuildAssertIsCoercible()
4446 IfStatement* if_statement = factory()->NewIfStatement( in BuildAssertIsCoercible()
4447 condition, factory()->NewExpressionStatement(throw_type_error, in BuildAssertIsCoercible()
4449 factory()->NewEmptyStatement(RelocInfo::kNoPosition), in BuildAssertIsCoercible()
4490 factory()->NewBlock(NULL, 1, true, RelocInfo::kNoPosition); in BuildParameterInitializationBlock()
4512 factory()->NewVariableProxy(parameters.scope->parameter(i)); in BuildParameterInitializationBlock()
4519 auto condition = factory()->NewCompareOperation( in BuildParameterInitializationBlock()
4521 factory()->NewVariableProxy(parameters.scope->parameter(i)), in BuildParameterInitializationBlock()
4522 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), in BuildParameterInitializationBlock()
4524 initial_value = factory()->NewConditional( in BuildParameterInitializationBlock()
4539 param_block = factory()->NewBlock(NULL, 8, true, RelocInfo::kNoPosition); in BuildParameterInitializationBlock()
4592 inner_block = factory()->NewBlock(NULL, 8, true, RelocInfo::kNoPosition); in ParseEagerFunctionBody()
4604 CallRuntime* allocation = factory()->NewCallRuntime( in ParseEagerFunctionBody()
4606 VariableProxy* init_proxy = factory()->NewVariableProxy( in ParseEagerFunctionBody()
4608 Assignment* assignment = factory()->NewAssignment( in ParseEagerFunctionBody()
4610 VariableProxy* get_proxy = factory()->NewVariableProxy( in ParseEagerFunctionBody()
4612 Yield* yield = factory()->NewYield( in ParseEagerFunctionBody()
4614 body->Add(factory()->NewExpressionStatement( in ParseEagerFunctionBody()
4621 VariableProxy* get_proxy = factory()->NewVariableProxy( in ParseEagerFunctionBody()
4624 factory()->NewUndefinedLiteral(RelocInfo::kNoPosition); in ParseEagerFunctionBody()
4625 Yield* yield = factory()->NewYield(get_proxy, undefined, Yield::kFinal, in ParseEagerFunctionBody()
4627 body->Add(factory()->NewExpressionStatement( in ParseEagerFunctionBody()
4633 factory()->NewReturnStatement( in ParseEagerFunctionBody()
4634 this->ThisExpression(scope_, factory(), RelocInfo::kNoPosition), in ParseEagerFunctionBody()
4671 VariableProxy* proxy = factory()->NewVariableProxy(fvar); in ParseEagerFunctionBody()
4672 VariableDeclaration* fvar_declaration = factory()->NewVariableDeclaration( in ParseEagerFunctionBody()
4676 VariableProxy* fproxy = factory()->NewVariableProxy(fvar); in ParseEagerFunctionBody()
4678 factory()->NewExpressionStatement( in ParseEagerFunctionBody()
4679 factory()->NewAssignment(Token::INIT, fproxy, in ParseEagerFunctionBody()
4680 factory()->NewThisFunction(pos), in ParseEagerFunctionBody()
4755 Declaration* declaration = factory()->NewVariableDeclaration( in ParseClassLiteral()
4826 return factory()->NewClassLiteral(name, block_scope, proxy, extends, in ParseClassLiteral()
4882 return factory()->NewCallRuntime(function, args, pos); in ParseV8Intrinsic()
4894 return factory()->NewCallRuntime(context_index, args, pos); in ParseV8Intrinsic()
4899 return factory()->NewUndefinedLiteral(position); in GetLiteralUndefined()
4933 VariableProxy* to = inner_scope->NewUnresolved(factory(), name); in InsertShadowingVarBindingInitializers()
4934 VariableProxy* from = factory()->NewVariableProxy(parameter); in InsertShadowingVarBindingInitializers()
4935 Expression* assignment = factory()->NewAssignment( in InsertShadowingVarBindingInitializers()
4937 Statement* statement = factory()->NewExpressionStatement( in InsertShadowingVarBindingInitializers()
4955 VariableProxy* proxy = scope->NewUnresolved(factory(), name); in InsertSloppyBlockFunctionVarBindings()
4956 Declaration* declaration = factory()->NewVariableDeclaration( in InsertSloppyBlockFunctionVarBindings()
4966 VariableProxy* to = scope->NewUnresolved(factory(), name); in InsertSloppyBlockFunctionVarBindings()
4967 VariableProxy* from = delegate->scope()->NewUnresolved(factory(), name); in InsertSloppyBlockFunctionVarBindings()
4968 Expression* assignment = factory()->NewAssignment( in InsertSloppyBlockFunctionVarBindings()
4970 Statement* statement = factory()->NewExpressionStatement( in InsertSloppyBlockFunctionVarBindings()
5152 Literal* cooked = factory()->NewStringLiteral(tv, pos); in AddTemplateSpan()
5153 Literal* raw = factory()->NewStringLiteral(trv, pos); in AddTemplateSpan()
5186 Expression* middle = factory()->NewCallRuntime(Runtime::kInlineToString, in CloseTemplateLiteral()
5189 expr = factory()->NewBinaryOperation( in CloseTemplateLiteral()
5190 Token::ADD, factory()->NewBinaryOperation( in CloseTemplateLiteral()
5203 args->Add(factory()->NewArrayLiteral( in CloseTemplateLiteral()
5208 factory()->NewArrayLiteral( in CloseTemplateLiteral()
5215 args->Add(factory()->NewSmiLiteral(hash_obj->value(), pos), zone()); in CloseTemplateLiteral()
5217 Expression* call_site = factory()->NewCallRuntime( in CloseTemplateLiteral()
5225 return factory()->NewCall(tag, call_args, pos); in CloseTemplateLiteral()
5274 args->Add(factory()->NewCallRuntime(Context::SPREAD_ITERABLE_INDEX, in PrepareSpreadArguments()
5298 args->Add(factory()->NewArrayLiteral(unspread, literal_index, in PrepareSpreadArguments()
5310 args->Add(factory()->NewCallRuntime(Context::SPREAD_ITERABLE_INDEX, in PrepareSpreadArguments()
5316 list->Add(factory()->NewCallRuntime(Context::SPREAD_ARGUMENTS_INDEX, args, in PrepareSpreadArguments()
5334 Expression* super_constructor = factory()->NewCallRuntime( in SpreadCall()
5338 return factory()->NewCallRuntime(Context::REFLECT_CONSTRUCT_INDEX, args, in SpreadCall()
5345 ThisExpression(scope_, factory(), RelocInfo::kNoPosition); in SpreadCall()
5351 VariableProxy* obj = factory()->NewVariableProxy(temp); in SpreadCall()
5352 Assignment* assign_obj = factory()->NewAssignment( in SpreadCall()
5355 function = factory()->NewProperty( in SpreadCall()
5358 obj = factory()->NewVariableProxy(temp); in SpreadCall()
5364 args->InsertAt(1, factory()->NewUndefinedLiteral(RelocInfo::kNoPosition), in SpreadCall()
5367 return factory()->NewCallRuntime(Context::REFLECT_APPLY_INDEX, args, pos); in SpreadCall()
5377 return factory()->NewCallRuntime(Context::REFLECT_CONSTRUCT_INDEX, args, pos); in SpreadCallNew()