Home | History | Annotate | Download | only in parsing

Lines Matching refs:FunctionLiteral

82 FunctionLiteral* Parser::DefaultConstructor(const AstRawString* name,
125 FunctionLiteral* function_literal = factory()->NewFunctionLiteral(
127 parameter_count, FunctionLiteral::kNoDuplicateParameters,
128 FunctionLiteral::kAnonymousExpression, default_eager_compile_hint(), pos,
442 ? FunctionLiteral::kShouldLazyCompile
443 : FunctionLiteral::kShouldEagerCompile);
481 void MaybeResetCharacterStream(ParseInfo* info, FunctionLiteral* literal) {
492 FunctionLiteral* Parser::ParseProgram(Isolate* isolate, ParseInfo* info) {
512 FunctionLiteral* result = DoParseProgram(isolate, info);
534 FunctionLiteral* Parser::DoParseProgram(Isolate* isolate, ParseInfo* info) {
545 DCHECK(info->function_literal_id() == FunctionLiteral::kIdTypeTopLevel ||
546 info->function_literal_id() == FunctionLiteral::kIdTypeInvalid);
548 FunctionLiteral* result = nullptr;
678 FunctionLiteral* function_literal = ParseFunctionLiteral(
680 kNoSourcePosition, FunctionLiteral::kWrapped, LanguageMode::kSloppy,
688 FunctionLiteral* Parser::ParseFunction(Isolate* isolate, ParseInfo* info,
707 FunctionLiteral* result =
730 static FunctionLiteral::FunctionType ComputeFunctionType(ParseInfo* info) {
732 return FunctionLiteral::kWrapped;
734 return FunctionLiteral::kDeclaration;
736 return FunctionLiteral::kNamedExpression;
739 return FunctionLiteral::kAccessorOrMethod;
741 return FunctionLiteral::kAnonymousExpression;
744 FunctionLiteral* Parser::DoParseFunction(Isolate* isolate, ParseInfo* info,
762 FunctionLiteral* result = nullptr;
773 FunctionLiteral::FunctionType function_type = ComputeFunctionType(info);
855 // must produce a FunctionLiteral.
1415 FunctionLiteral* function, VariableMode mode,
1775 FunctionLiteral::FunctionType function_type,
1777 if (function_type == FunctionLiteral::kNamedExpression &&
2462 FunctionLiteral* Parser::ParseFunctionLiteral(
2465 int function_token_pos, FunctionLiteral::FunctionType function_type,
2477 bool is_wrapped = function_type == FunctionLiteral::kWrapped;
2495 FunctionLiteral::EagerCompileHint eager_compile_hint =
2497 ? FunctionLiteral::kShouldEagerCompile
2537 eager_compile_hint == FunctionLiteral::kShouldLazyCompile;
2542 function_type == FunctionLiteral::kAnonymousExpression ||
2543 function_type == FunctionLiteral::kNamedExpression;
2636 eager_compile_hint = FunctionLiteral::kShouldEagerCompile;
2698 FunctionLiteral::ParameterFlag duplicate_parameters =
2699 has_duplicate_parameters ? FunctionLiteral::kHasDuplicateParameters
2700 : FunctionLiteral::kNoDuplicateParameters;
2702 // Note that the FunctionLiteral needs to be created in the main Zone again.
2703 FunctionLiteral* function_literal = factory()->NewFunctionLiteral(
2719 FunctionLiteral::FunctionType function_type,
2850 void VisitFunctionLiteral(FunctionLiteral* expr) {}
3059 FunctionLiteral::FunctionType function_type,
3068 bool is_wrapped = function_type == FunctionLiteral::kWrapped;
3240 FunctionLiteral* Parser::CreateInitializerFunction(
3251 FunctionLiteral::kNoDuplicateParameters,
3252 FunctionLiteral::kAnonymousExpression,
3253 FunctionLiteral::kShouldEagerCompile, scope->start_position(), true,
3285 FunctionLiteral* static_fields_initializer = nullptr;
3291 FunctionLiteral* instance_fields_initializer_function = nullptr;
3449 FunctionLiteral* result = nullptr;