Lines Matching refs:PreParserExpression
100 friend class PreParserExpression; variable
104 class PreParserExpression {
106 static PreParserExpression Default() { in Default()
107 return PreParserExpression(TypeField::encode(kExpression)); in Default()
110 static PreParserExpression Spread(PreParserExpression expression) { in Spread()
111 return PreParserExpression(TypeField::encode(kSpreadExpression)); in Spread()
114 static PreParserExpression FromIdentifier(PreParserIdentifier id) { in FromIdentifier()
115 return PreParserExpression(TypeField::encode(kIdentifierExpression) | in FromIdentifier()
119 static PreParserExpression BinaryOperation(PreParserExpression left, in BinaryOperation()
121 PreParserExpression right) { in BinaryOperation()
122 return PreParserExpression(TypeField::encode(kBinaryOperationExpression)); in BinaryOperation()
125 static PreParserExpression Assignment() { in Assignment()
126 return PreParserExpression(TypeField::encode(kExpression) | in Assignment()
130 static PreParserExpression ObjectLiteral() { in ObjectLiteral()
131 return PreParserExpression(TypeField::encode(kObjectLiteralExpression)); in ObjectLiteral()
134 static PreParserExpression ArrayLiteral() { in ArrayLiteral()
135 return PreParserExpression(TypeField::encode(kArrayLiteralExpression)); in ArrayLiteral()
138 static PreParserExpression StringLiteral() { in StringLiteral()
139 return PreParserExpression(TypeField::encode(kStringLiteralExpression)); in StringLiteral()
142 static PreParserExpression UseStrictStringLiteral() { in UseStrictStringLiteral()
143 return PreParserExpression(TypeField::encode(kStringLiteralExpression) | in UseStrictStringLiteral()
147 static PreParserExpression UseStrongStringLiteral() { in UseStrongStringLiteral()
148 return PreParserExpression(TypeField::encode(kStringLiteralExpression) | in UseStrongStringLiteral()
152 static PreParserExpression This() { in This()
153 return PreParserExpression(TypeField::encode(kExpression) | in This()
157 static PreParserExpression ThisProperty() { in ThisProperty()
158 return PreParserExpression( in ThisProperty()
163 static PreParserExpression Property() { in Property()
164 return PreParserExpression( in Property()
169 static PreParserExpression Call() { in Call()
170 return PreParserExpression(TypeField::encode(kExpression) | in Call()
174 static PreParserExpression SuperCallReference() { in SuperCallReference()
175 return PreParserExpression( in SuperCallReference()
180 static PreParserExpression NoTemplateTag() { in NoTemplateTag()
181 return PreParserExpression( in NoTemplateTag()
265 PreParserExpression AsFunctionLiteral() { return *this; } in AsFunctionLiteral()
273 PreParserExpression* operator->() { return this; }
309 explicit PreParserExpression(uint32_t expression_code) in PreParserExpression() function
350 typedef PreParserList<PreParserExpression> PreParserExpressionList;
371 PreParserExpression expression) { in ExpressionStatement()
423 PreParserExpression NewStringLiteral(PreParserIdentifier identifier, in NewStringLiteral()
425 return PreParserExpression::Default(); in NewStringLiteral()
427 PreParserExpression NewNumberLiteral(double number, in NewNumberLiteral()
429 return PreParserExpression::Default(); in NewNumberLiteral()
431 PreParserExpression NewRegExpLiteral(PreParserIdentifier js_pattern, in NewRegExpLiteral()
434 return PreParserExpression::Default(); in NewRegExpLiteral()
436 PreParserExpression NewArrayLiteral(PreParserExpressionList values, in NewArrayLiteral()
440 return PreParserExpression::ArrayLiteral(); in NewArrayLiteral()
442 PreParserExpression NewArrayLiteral(PreParserExpressionList values, in NewArrayLiteral()
445 return PreParserExpression::ArrayLiteral(); in NewArrayLiteral()
447 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, in NewObjectLiteralProperty()
448 PreParserExpression value, in NewObjectLiteralProperty()
452 return PreParserExpression::Default(); in NewObjectLiteralProperty()
454 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, in NewObjectLiteralProperty()
455 PreParserExpression value, in NewObjectLiteralProperty()
458 return PreParserExpression::Default(); in NewObjectLiteralProperty()
460 PreParserExpression NewObjectLiteral(PreParserExpressionList properties, in NewObjectLiteral()
466 return PreParserExpression::ObjectLiteral(); in NewObjectLiteral()
468 PreParserExpression NewVariableProxy(void* variable) { in NewVariableProxy()
469 return PreParserExpression::Default(); in NewVariableProxy()
471 PreParserExpression NewProperty(PreParserExpression obj, in NewProperty()
472 PreParserExpression key, in NewProperty()
475 return PreParserExpression::ThisProperty(); in NewProperty()
477 return PreParserExpression::Property(); in NewProperty()
479 PreParserExpression NewUnaryOperation(Token::Value op, in NewUnaryOperation()
480 PreParserExpression expression, in NewUnaryOperation()
482 return PreParserExpression::Default(); in NewUnaryOperation()
484 PreParserExpression NewBinaryOperation(Token::Value op, in NewBinaryOperation()
485 PreParserExpression left, in NewBinaryOperation()
486 PreParserExpression right, int pos) { in NewBinaryOperation()
487 return PreParserExpression::BinaryOperation(left, op, right); in NewBinaryOperation()
489 PreParserExpression NewCompareOperation(Token::Value op, in NewCompareOperation()
490 PreParserExpression left, in NewCompareOperation()
491 PreParserExpression right, int pos) { in NewCompareOperation()
492 return PreParserExpression::Default(); in NewCompareOperation()
494 PreParserExpression NewRewritableAssignmentExpression( in NewRewritableAssignmentExpression()
495 PreParserExpression expression) { in NewRewritableAssignmentExpression()
498 PreParserExpression NewAssignment(Token::Value op, in NewAssignment()
499 PreParserExpression left, in NewAssignment()
500 PreParserExpression right, in NewAssignment()
502 return PreParserExpression::Assignment(); in NewAssignment()
504 PreParserExpression NewYield(PreParserExpression generator_object, in NewYield()
505 PreParserExpression expression, in NewYield()
508 return PreParserExpression::Default(); in NewYield()
510 PreParserExpression NewConditional(PreParserExpression condition, in NewConditional()
511 PreParserExpression then_expression, in NewConditional()
512 PreParserExpression else_expression, in NewConditional()
514 return PreParserExpression::Default(); in NewConditional()
516 PreParserExpression NewCountOperation(Token::Value op, in NewCountOperation()
518 PreParserExpression expression, in NewCountOperation()
520 return PreParserExpression::Default(); in NewCountOperation()
522 PreParserExpression NewCall(PreParserExpression expression, in NewCall()
525 return PreParserExpression::Call(); in NewCall()
527 PreParserExpression NewCallNew(PreParserExpression expression, in NewCallNew()
530 return PreParserExpression::Default(); in NewCallNew()
532 PreParserExpression NewCallRuntime(const AstRawString* name, in NewCallRuntime()
536 return PreParserExpression::Default(); in NewCallRuntime()
538 PreParserStatement NewReturnStatement(PreParserExpression expression, in NewReturnStatement()
542 PreParserExpression NewFunctionLiteral( in NewFunctionLiteral()
550 return PreParserExpression::Default(); in NewFunctionLiteral()
553 PreParserExpression NewSpread(PreParserExpression expression, int pos) { in NewSpread()
554 return PreParserExpression::Spread(expression); in NewSpread()
557 PreParserExpression NewEmptyParentheses(int pos) { in NewEmptyParentheses()
558 return PreParserExpression::Default(); in NewEmptyParentheses()
597 typedef PreParserExpression Expression;
598 typedef PreParserExpression YieldExpression;
599 typedef PreParserExpression FunctionLiteral;
600 typedef PreParserExpression ClassLiteral;
601 typedef PreParserExpression ObjectLiteralProperty;
602 typedef PreParserExpression Literal;
641 static bool IsThisProperty(PreParserExpression expression) { in IsThisProperty()
645 static bool IsIdentifier(PreParserExpression expression) { in IsIdentifier()
649 static PreParserIdentifier AsIdentifier(PreParserExpression expression) { in AsIdentifier()
657 static bool IsBoilerplateProperty(PreParserExpression property) { in IsBoilerplateProperty()
666 static PreParserExpression GetPropertyValue(PreParserExpression property) { in GetPropertyValue()
667 return PreParserExpression::Default(); in GetPropertyValue()
678 PreParserExpression expression) { in PushPropertyName()
684 PreParserExpression expression) { in InferFunctionName()
690 Scope* scope, PreParserExpression property, bool* has_function) {} in CheckFunctionLiteralInsideTopLevelObjectLiteral()
693 PreParserExpression left, PreParserExpression right) {} in CheckAssigningFunctionLiteralToProperty()
695 static PreParserExpression MarkExpressionAsAssigned( in MarkExpressionAsAssigned()
696 PreParserExpression expression) { in MarkExpressionAsAssigned()
702 bool ShortcutNumericLiteralBinaryExpression(PreParserExpression* x, in ShortcutNumericLiteralBinaryExpression()
703 PreParserExpression y, in ShortcutNumericLiteralBinaryExpression()
710 PreParserExpression BuildUnaryExpression(PreParserExpression expression, in BuildUnaryExpression()
713 return PreParserExpression::Default(); in BuildUnaryExpression()
716 PreParserExpression NewThrowReferenceError(MessageTemplate::Template message, in NewThrowReferenceError()
718 return PreParserExpression::Default(); in NewThrowReferenceError()
720 PreParserExpression NewThrowSyntaxError(MessageTemplate::Template message, in NewThrowSyntaxError()
722 return PreParserExpression::Default(); in NewThrowSyntaxError()
724 PreParserExpression NewThrowTypeError(MessageTemplate::Template message, in NewThrowTypeError()
726 return PreParserExpression::Default(); in NewThrowTypeError()
746 static PreParserExpression EmptyExpression() { in EmptyExpression()
747 return PreParserExpression::Default(); in EmptyExpression()
749 static PreParserExpression EmptyLiteral() { in EmptyLiteral()
750 return PreParserExpression::Default(); in EmptyLiteral()
752 static PreParserExpression EmptyObjectLiteralProperty() { in EmptyObjectLiteralProperty()
753 return PreParserExpression::Default(); in EmptyObjectLiteralProperty()
755 static PreParserExpression EmptyFunctionLiteral() { in EmptyFunctionLiteral()
756 return PreParserExpression::Default(); in EmptyFunctionLiteral()
763 static PreParserExpression GetLiteralTheHole(int position, in GetLiteralTheHole()
765 return PreParserExpression::Default(); in GetLiteralTheHole()
776 static PreParserExpression ThisExpression(Scope* scope, in ThisExpression()
779 return PreParserExpression::This(); in ThisExpression()
782 static PreParserExpression SuperPropertyReference(Scope* scope, in SuperPropertyReference()
785 return PreParserExpression::Default(); in SuperPropertyReference()
788 static PreParserExpression SuperCallReference(Scope* scope, in SuperCallReference()
791 return PreParserExpression::SuperCallReference(); in SuperCallReference()
794 static PreParserExpression NewTargetExpression(Scope* scope, in NewTargetExpression()
797 return PreParserExpression::Default(); in NewTargetExpression()
800 static PreParserExpression DefaultConstructor(bool call_super, Scope* scope, in DefaultConstructor()
802 return PreParserExpression::Default(); in DefaultConstructor()
805 static PreParserExpression ExpressionFromLiteral( in ExpressionFromLiteral()
808 return PreParserExpression::Default(); in ExpressionFromLiteral()
811 static PreParserExpression ExpressionFromIdentifier( in ExpressionFromIdentifier()
814 return PreParserExpression::FromIdentifier(name); in ExpressionFromIdentifier()
817 PreParserExpression ExpressionFromString(int pos,
821 PreParserExpression GetIterator(PreParserExpression iterable, in GetIterator()
823 return PreParserExpression::Default(); in GetIterator()
854 PreParserExpression expression, const Scanner::Location& params_loc,
865 void AddTemplateExpression(TemplateLiteralState*, PreParserExpression) {} in AddTemplateExpression() argument
866 PreParserExpression CloseTemplateLiteral(TemplateLiteralState*, int, in CloseTemplateLiteral()
867 PreParserExpression tag) { in CloseTemplateLiteral()
876 PreParserExpression NoTemplateTag() { in NoTemplateTag()
877 return PreParserExpression::NoTemplateTag(); in NoTemplateTag()
879 static bool IsTaggedTemplate(const PreParserExpression tag) { in IsTaggedTemplate()
884 PreParserExpression pattern, in AddFormalParameter()
885 PreParserExpression initializer, in AddFormalParameter()
899 PreParserExpression ParseV8Intrinsic(bool* ok);
900 V8_INLINE PreParserExpression ParseDoExpression(bool* ok);
901 PreParserExpression ParseFunctionLiteral(
908 PreParserExpression ParseClassLiteral(PreParserIdentifier name,
919 inline PreParserExpression SpreadCall(PreParserExpression function,
922 inline PreParserExpression SpreadCallNew(PreParserExpression function,
928 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} in QueueDestructuringAssignmentForRewriting() argument
930 void SetFunctionNameFromPropertyName(PreParserExpression, in SetFunctionNameFromPropertyName() argument
932 void SetFunctionNameFromIdentifierRef(PreParserExpression, in SetFunctionNameFromIdentifierRef() argument
933 PreParserExpression) {} in SetFunctionNameFromIdentifierRef()
935 inline PreParserExpression RewriteNonPattern(
936 PreParserExpression expr, const ExpressionClassifier* classifier,
938 inline PreParserExpression RewriteNonPatternArguments(
939 PreParserExpression args, const ExpressionClassifier* classifier,
941 inline PreParserExpression RewriteNonPatternObjectLiteralProperty(
942 PreParserExpression property, const ExpressionClassifier* classifier,
965 typedef PreParserExpression Expression;
1079 PreParserExpression ParseClassLiteral(PreParserIdentifier name,
1099 PreParserExpression PreParserTraits::SpreadCall(PreParserExpression function, in SpreadCall()
1105 PreParserExpression PreParserTraits::SpreadCallNew(PreParserExpression function, in SpreadCallNew()
1114 PreParserExpression params, const Scanner::Location& params_loc, in ParseArrowFunctionFormalParameterList()
1121 PreParserExpression PreParserTraits::ParseDoExpression(bool* ok) { in ParseDoExpression()
1126 PreParserExpression PreParserTraits::RewriteNonPattern( in RewriteNonPattern()
1127 PreParserExpression expr, const ExpressionClassifier* classifier, in RewriteNonPattern()
1134 PreParserExpression PreParserTraits::RewriteNonPatternArguments( in RewriteNonPatternArguments()
1135 PreParserExpression args, const ExpressionClassifier* classifier, in RewriteNonPatternArguments()
1142 PreParserExpression PreParserTraits::RewriteNonPatternObjectLiteralProperty( in RewriteNonPatternObjectLiteralProperty()
1143 PreParserExpression property, const ExpressionClassifier* classifier, in RewriteNonPatternObjectLiteralProperty()