• Home
  • Raw
  • Download

Lines Matching refs:factory

257       return isolate()->factory()->LookupAsciiSymbol(  in LookupSymbol()
260 return isolate()->factory()->LookupTwoByteSymbol( in LookupSymbol()
278 result = isolate()->factory()->LookupAsciiSymbol( in LookupCachedSymbol()
281 result = isolate()->factory()->LookupTwoByteSymbol( in LookupCachedSymbol()
491 this_property_assignments_(isolate->factory()->empty_fixed_array()), in FunctionState()
602 Handle<String> no_name = isolate()->factory()->empty_symbol(); in DoParseProgram()
633 result = factory()->NewFunctionLiteral( in DoParseProgram()
646 result->set_ast_properties(factory()->visitor()->ast_properties()); in DoParseProgram()
776 Factory* factory = isolate()->factory(); in ReportMessageAt() local
777 Handle<FixedArray> elements = factory->NewFixedArray(args.length()); in ReportMessageAt()
779 Handle<String> arg_string = factory->NewStringFromUtf8(CStrVector(args[i])); in ReportMessageAt()
782 Handle<JSArray> array = factory->NewJSArrayWithElements(elements); in ReportMessageAt()
783 Handle<Object> result = factory->NewSyntaxError(type, array); in ReportMessageAt()
794 Factory* factory = isolate()->factory(); in ReportMessageAt() local
795 Handle<FixedArray> elements = factory->NewFixedArray(args.length()); in ReportMessageAt()
799 Handle<JSArray> array = factory->NewJSArrayWithElements(elements); in ReportMessageAt()
800 Handle<Object> result = factory->NewSyntaxError(type, array); in ReportMessageAt()
979 return isolate_->factory()->empty_fixed_array(); in GetThisPropertyAssignments()
984 isolate_->factory()->NewFixedArray(names_.length() * 3); in GetThisPropertyAssignments()
1055 assigned_constants_[i] = isolate_->factory()->undefined_value(); in AssignmentFromParameter()
1061 assigned_constants_.Add(isolate_->factory()->undefined_value()); in AssignmentFromParameter()
1245 Block* block = factory()->NewBlock(NULL, 1, true); in ParseModuleDeclaration()
1256 factory()->NewModuleDeclaration(proxy, module, top_scope_); in ParseModuleDeclaration()
1308 Block* body = factory()->NewBlock(NULL, 16, false); in ParseModuleLiteral()
1340 return factory()->NewModuleLiteral(body, scope->interface()); in ParseModuleLiteral()
1356 Module* member = factory()->NewModulePath(result, name); in ParseModulePath()
1388 factory(), name, scanner().location().beg_pos, Interface::NewModule()); in ParseModuleVariable()
1390 return factory()->NewModuleVariable(proxy); in ParseModuleVariable()
1406 return factory()->NewModuleUrl(symbol); in ParseModuleUrl()
1446 Block* block = factory()->NewBlock(NULL, 1, true); in ParseImportDeclaration()
1467 factory()->NewImportDeclaration(proxy, module, top_scope_); in ParseImportDeclaration()
1501 result = factory()->NewEmptyStatement(); in ParseExportDeclaration()
1611 return factory()->NewEmptyStatement(); in ParseStatement()
1659 Block* result = factory()->NewBlock(labels, 1, false); in ParseStatement()
1708 factory(), name, scanner().location().beg_pos, interface); in NewUnresolved()
1771 isolate()->factory()->NewStringFromUtf8(CStrVector(type), TENURED); in Declare()
1773 NewThrowTypeError(isolate()->factory()->redeclaration_symbol(), in Declare()
1912 isolate()->factory()->NewSharedFunctionInfo(name, literals, code, in ParseNativeDeclaration()
1926 factory()->NewVariableDeclaration(proxy, VAR, top_scope_); in ParseNativeDeclaration()
1929 factory()->NewSharedFunctionInfoLiteral(shared); in ParseNativeDeclaration()
1930 return factory()->NewExpressionStatement( in ParseNativeDeclaration()
1931 factory()->NewAssignment( in ParseNativeDeclaration()
1955 factory()->NewFunctionDeclaration(proxy, mode, fun, top_scope_); in ParseFunctionDeclaration()
1958 return factory()->NewEmptyStatement(); in ParseFunctionDeclaration()
1972 Block* result = factory()->NewBlock(labels, 16, false); in ParseBlock()
1995 Block* body = factory()->NewBlock(labels, 16, false); in ParseScopedBlock()
2038 return string.is_identical_to(isolate()->factory()->eval_symbol()) || in IsEvalOrArguments()
2039 string.is_identical_to(isolate()->factory()->arguments_symbol()); in IsEvalOrArguments()
2152 Block* block = factory()->NewBlock(NULL, 1, true); in ParseVariableDeclarations()
2187 factory()->NewVariableDeclaration(proxy, mode, top_scope_); in ParseVariableDeclarations()
2277 arguments->Add(factory()->NewLiteral(name)); in ParseVariableDeclarations()
2288 initialize = factory()->NewCallRuntime( in ParseVariableDeclarations()
2289 isolate()->factory()->InitializeConstGlobal_symbol(), in ParseVariableDeclarations()
2296 arguments->Add(factory()->NewNumberLiteral(language_mode)); in ParseVariableDeclarations()
2311 initialize = factory()->NewCallRuntime( in ParseVariableDeclarations()
2312 isolate()->factory()->InitializeVarGlobal_symbol(), in ParseVariableDeclarations()
2317 block->AddStatement(factory()->NewExpressionStatement(initialize)); in ParseVariableDeclarations()
2330 factory()->NewAssignment(init_op, proxy, value, position); in ParseVariableDeclarations()
2331 block->AddStatement(factory()->NewExpressionStatement(assignment)); in ParseVariableDeclarations()
2343 initialization_scope->NewUnresolved(factory(), name); in ParseVariableDeclarations()
2345 factory()->NewAssignment(init_op, proxy, value, position); in ParseVariableDeclarations()
2346 block->AddStatement(factory()->NewExpressionStatement(assignment)); in ParseVariableDeclarations()
2435 return factory()->NewExpressionStatement(expr); in ParseExpressionOrLabelledStatement()
2453 else_statement = factory()->NewEmptyStatement(); in ParseIfStatement()
2455 return factory()->NewIfStatement(condition, then_statement, else_statement); in ParseIfStatement()
2485 return factory()->NewContinueStatement(target); in ParseContinueStatement()
2504 return factory()->NewEmptyStatement(); in ParseBreakStatement()
2521 return factory()->NewBreakStatement(target); in ParseBreakStatement()
2541 result = factory()->NewReturnStatement(GetLiteralUndefined()); in ParseReturnStatement()
2545 result = factory()->NewReturnStatement(expr); in ParseReturnStatement()
2556 Handle<String> type = isolate()->factory()->illegal_return_symbol(); in ParseReturnStatement()
2558 return factory()->NewExpressionStatement(throw_error); in ParseReturnStatement()
2588 return factory()->NewWithStatement(expr, stmt); in ParseWithStatement()
2630 SwitchStatement* statement = factory()->NewSwitchStatement(labels); in ParseSwitchStatement()
2666 return factory()->NewExpressionStatement(factory()->NewThrow(exception, pos)); in ParseThrowStatement()
2753 TryCatchStatement* statement = factory()->NewTryCatchStatement( in ParseTryStatement()
2756 try_block = factory()->NewBlock(NULL, 1, false); in ParseTryStatement()
2766 result = factory()->NewTryCatchStatement( in ParseTryStatement()
2771 result = factory()->NewTryFinallyStatement(index, try_block, finally_block); in ParseTryStatement()
2786 DoWhileStatement* loop = factory()->NewDoWhileStatement(labels); in ParseDoWhileStatement()
2817 WhileStatement* loop = factory()->NewWhileStatement(labels); in ParseWhileStatement()
2852 VariableProxy* each = top_scope_->NewUnresolved(factory(), name); in ParseForStatement()
2853 ForInStatement* loop = factory()->NewForInStatement(labels); in ParseForStatement()
2862 Block* result = factory()->NewBlock(NULL, 2, false); in ParseForStatement()
2898 VariableProxy* temp_proxy = factory()->NewVariableProxy(temp); in ParseForStatement()
2899 VariableProxy* each = top_scope_->NewUnresolved(factory(), name); in ParseForStatement()
2900 ForInStatement* loop = factory()->NewForInStatement(labels); in ParseForStatement()
2908 Block* body_block = factory()->NewBlock(NULL, 3, false); in ParseForStatement()
2909 Assignment* assignment = factory()->NewAssignment( in ParseForStatement()
2912 factory()->NewExpressionStatement(assignment); in ParseForStatement()
2936 isolate()->factory()->invalid_lhs_in_for_in_symbol(); in ParseForStatement()
2939 ForInStatement* loop = factory()->NewForInStatement(labels); in ParseForStatement()
2956 init = factory()->NewExpressionStatement(expression); in ParseForStatement()
2962 ForStatement* loop = factory()->NewForStatement(labels); in ParseForStatement()
2977 next = factory()->NewExpressionStatement(exp); in ParseForStatement()
2997 Block* result = factory()->NewBlock(NULL, 2, false); in ParseForStatement()
3022 factory()->NewBinaryOperation(Token::COMMA, result, right, position); in ParseExpression()
3049 isolate()->factory()->invalid_lhs_in_assignment_symbol(); in ParseAssignmentExpression()
3097 return factory()->NewAssignment(op, expression, right, pos); in ParseAssignmentExpression()
3119 return factory()->NewConditional( in ParseConditionalExpression()
3151 x = factory()->NewNumberLiteral(x_val + y_val); in ParseBinaryExpression()
3154 x = factory()->NewNumberLiteral(x_val - y_val); in ParseBinaryExpression()
3157 x = factory()->NewNumberLiteral(x_val * y_val); in ParseBinaryExpression()
3160 x = factory()->NewNumberLiteral(x_val / y_val); in ParseBinaryExpression()
3164 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3169 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3174 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3179 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3185 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3191 x = factory()->NewNumberLiteral(value); in ParseBinaryExpression()
3210 x = factory()->NewCompareOperation(cmp, x, y, position); in ParseBinaryExpression()
3213 x = factory()->NewUnaryOperation(Token::NOT, x, position); in ParseBinaryExpression()
3218 x = factory()->NewBinaryOperation(op, x, y, position); in ParseBinaryExpression()
3251 return factory()->NewLiteral(result); in ParseUnaryExpression()
3259 return factory()->NewNumberLiteral(-value); in ParseUnaryExpression()
3261 return factory()->NewNumberLiteral(~DoubleToInt32(value)); in ParseUnaryExpression()
3278 return factory()->NewUnaryOperation(op, expression, position); in ParseUnaryExpression()
3289 isolate()->factory()->invalid_lhs_in_prefix_op_symbol(); in ParseUnaryExpression()
3300 return factory()->NewCountOperation(op, in ParseUnaryExpression()
3324 isolate()->factory()->invalid_lhs_in_postfix_op_symbol(); in ParsePostfixExpression()
3337 factory()->NewCountOperation(next, in ParsePostfixExpression()
3363 result = factory()->NewProperty(result, index, pos); in ParseLeftHandSideExpression()
3393 callee->IsVariable(isolate()->factory()->eval_symbol())) { in ParseLeftHandSideExpression()
3396 result = factory()->NewCall(result, args, pos); in ParseLeftHandSideExpression()
3405 factory()->NewProperty(result, factory()->NewLiteral(name), pos); in ParseLeftHandSideExpression()
3441 result = factory()->NewCallNew( in ParseNewPrefix()
3494 result = factory()->NewProperty(result, index, pos); in ParseMemberWithNewPrefixesExpression()
3500 isolate()->factory()->anonymous_function_symbol()); in ParseMemberWithNewPrefixesExpression()
3511 factory()->NewProperty(result, factory()->NewLiteral(name), pos); in ParseMemberWithNewPrefixesExpression()
3520 result = factory()->NewCallNew(result, args, last); in ParseMemberWithNewPrefixesExpression()
3539 return factory()->NewDebuggerStatement(); in ParseDebuggerStatement()
3604 result = factory()->NewVariableProxy(top_scope_->receiver()); in ParsePrimaryExpression()
3610 result = factory()->NewLiteral(isolate()->factory()->null_value()); in ParsePrimaryExpression()
3615 result = factory()->NewLiteral(isolate()->factory()->true_value()); in ParsePrimaryExpression()
3620 result = factory()->NewLiteral(isolate()->factory()->false_value()); in ParsePrimaryExpression()
3634 factory(), name, scanner().location().beg_pos, interface); in ParsePrimaryExpression()
3644 result = factory()->NewNumberLiteral(value); in ParsePrimaryExpression()
3651 result = factory()->NewLiteral(symbol); in ParsePrimaryExpression()
3753 isolate()->factory()->NewFixedArray(values->length(), TENURED); in ParseArrayLiteral()
3789 double_literals = isolate()->factory()->NewFixedDoubleArray( in ParseArrayLiteral()
3840 isolate()->factory()->NewFixedArray(2, TENURED); in ParseArrayLiteral()
3845 return factory()->NewArrayLiteral( in ParseArrayLiteral()
3915 return isolate()->factory()->undefined_value(); in GetBoilerplateValue()
4069 name = isolate_->factory()->LookupAsciiSymbol(Token::String(next)); in ParseObjectLiteralGetSet()
4081 return factory()->NewObjectLiteralProperty(is_getter, value); in ParseObjectLiteralGetSet()
4146 key = factory()->NewLiteral(id); in ParseObjectLiteral()
4155 key = factory()->NewNumberLiteral(index); in ParseObjectLiteral()
4158 key = factory()->NewLiteral(string); in ParseObjectLiteral()
4167 key = factory()->NewNumberLiteral(value); in ParseObjectLiteral()
4174 key = factory()->NewLiteral(string); in ParseObjectLiteral()
4218 Handle<FixedArray> constant_properties = isolate()->factory()->NewFixedArray( in ParseObjectLiteral()
4229 return factory()->NewObjectLiteral(constant_properties, in ParseObjectLiteral()
4254 return factory()->NewRegExpLiteral(js_pattern, js_flags, literal_index); in ParseRegExpLiteral()
4389 function_name = isolate()->factory()->empty_symbol(); in ParseFunctionLiteral()
4471 top_scope_->DeclareFunctionVar(function_name, fvar_mode, factory()); in ParseFunctionLiteral()
4515 this_property_assignments = isolate()->factory()->empty_fixed_array(); in ParseFunctionLiteral()
4551 this_property_assignments = isolate()->factory()->empty_fixed_array(); in ParseFunctionLiteral()
4559 top_scope_->NewUnresolved(factory(), function_name); in ParseFunctionLiteral()
4561 body->Add(factory()->NewExpressionStatement( in ParseFunctionLiteral()
4562 factory()->NewAssignment(fvar_init_op, in ParseFunctionLiteral()
4564 factory()->NewThisFunction(), in ParseFunctionLiteral()
4626 ast_properties = *factory()->visitor()->ast_properties(); in ParseFunctionLiteral()
4634 factory()->NewFunctionLiteral(function_name, in ParseFunctionLiteral()
4718 return factory()->NewCallRuntime(name, function, args); in ParseV8Intrinsic()
4786 return factory()->NewLiteral(isolate()->factory()->undefined_value()); in GetLiteralUndefined()
4791 return factory()->NewLiteral(isolate()->factory()->the_hole_value()); in GetLiteralTheHole()
4970 return NewThrowError(isolate()->factory()->MakeReferenceError_symbol(), in NewThrowReferenceError()
4980 isolate()->factory()->MakeSyntaxError_symbol(), type, arguments); in NewThrowSyntaxError()
4992 isolate()->factory()->MakeTypeError_symbol(), type, arguments); in NewThrowTypeError()
5000 Handle<FixedArray> elements = isolate()->factory()->NewFixedArray(argc, in NewThrowError()
5008 Handle<JSArray> array = isolate()->factory()->NewJSArrayWithElements( in NewThrowError()
5012 args->Add(factory()->NewLiteral(type)); in NewThrowError()
5013 args->Add(factory()->NewLiteral(array)); in NewThrowError()
5015 factory()->NewCallRuntime(constructor, NULL, args); in NewThrowError()
5016 return factory()->NewThrow(call_constructor, scanner().location().beg_pos); in NewThrowError()
5088 *error_ = isolate()->factory()->NewStringFromAscii(message, NOT_TENURED); in ReportError()