Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: src/parsing/preparser.h

Issue 1751613004: Get rid of the different kinds of yield in the AST & full-codegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do an inline call. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 return expression; 487 return expression;
488 } 488 }
489 PreParserExpression NewAssignment(Token::Value op, 489 PreParserExpression NewAssignment(Token::Value op,
490 PreParserExpression left, 490 PreParserExpression left,
491 PreParserExpression right, 491 PreParserExpression right,
492 int pos) { 492 int pos) {
493 return PreParserExpression::Assignment(); 493 return PreParserExpression::Assignment();
494 } 494 }
495 PreParserExpression NewYield(PreParserExpression generator_object, 495 PreParserExpression NewYield(PreParserExpression generator_object,
496 PreParserExpression expression, 496 PreParserExpression expression,
497 Yield::Kind yield_kind,
498 int pos) { 497 int pos) {
499 return PreParserExpression::Default(); 498 return PreParserExpression::Default();
500 } 499 }
501 PreParserExpression NewConditional(PreParserExpression condition, 500 PreParserExpression NewConditional(PreParserExpression condition,
502 PreParserExpression then_expression, 501 PreParserExpression then_expression,
503 PreParserExpression else_expression, 502 PreParserExpression else_expression,
504 int pos) { 503 int pos) {
505 return PreParserExpression::Default(); 504 return PreParserExpression::Default();
506 } 505 }
507 PreParserExpression NewCountOperation(Token::Value op, 506 PreParserExpression NewCountOperation(Token::Value op,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 PreParserFactory* factory) { 700 PreParserFactory* factory) {
702 return false; 701 return false;
703 } 702 }
704 703
705 PreParserExpression BuildUnaryExpression(PreParserExpression expression, 704 PreParserExpression BuildUnaryExpression(PreParserExpression expression,
706 Token::Value op, int pos, 705 Token::Value op, int pos,
707 PreParserFactory* factory) { 706 PreParserFactory* factory) {
708 return PreParserExpression::Default(); 707 return PreParserExpression::Default();
709 } 708 }
710 709
710 PreParserExpression BuildIteratorResult(PreParserExpression value,
711 bool done) {
712 return PreParserExpression::Default();
713 }
711 PreParserExpression NewThrowReferenceError(MessageTemplate::Template message, 714 PreParserExpression NewThrowReferenceError(MessageTemplate::Template message,
712 int pos) { 715 int pos) {
713 return PreParserExpression::Default(); 716 return PreParserExpression::Default();
714 } 717 }
715 PreParserExpression NewThrowSyntaxError(MessageTemplate::Template message, 718 PreParserExpression NewThrowSyntaxError(MessageTemplate::Template message,
716 Handle<Object> arg, int pos) { 719 Handle<Object> arg, int pos) {
717 return PreParserExpression::Default(); 720 return PreParserExpression::Default();
718 } 721 }
719 PreParserExpression NewThrowTypeError(MessageTemplate::Template message, 722 PreParserExpression NewThrowTypeError(MessageTemplate::Template message,
720 Handle<Object> arg, int pos) { 723 Handle<Object> arg, int pos) {
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 } 1134 }
1132 1135
1133 1136
1134 ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const { 1137 ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const {
1135 return pre_parser_->function_state_->non_patterns_to_rewrite(); 1138 return pre_parser_->function_state_->non_patterns_to_rewrite();
1136 } 1139 }
1137 1140
1138 1141
1139 PreParserExpression PreParserTraits::RewriteYieldStar( 1142 PreParserExpression PreParserTraits::RewriteYieldStar(
1140 PreParserExpression generator, PreParserExpression expression, int pos) { 1143 PreParserExpression generator, PreParserExpression expression, int pos) {
1141 return pre_parser_->factory()->NewYield( 1144 return PreParserExpression::Default();
1142 generator, expression, Yield::kDelegating, pos);
1143 } 1145 }
1144 1146
1145 PreParserExpression PreParserTraits::RewriteInstanceof(PreParserExpression lhs, 1147 PreParserExpression PreParserTraits::RewriteInstanceof(PreParserExpression lhs,
1146 PreParserExpression rhs, 1148 PreParserExpression rhs,
1147 int pos) { 1149 int pos) {
1148 return PreParserExpression::Default(); 1150 return PreParserExpression::Default();
1149 } 1151 }
1150 1152
1151 PreParserStatementList PreParser::ParseEagerFunctionBody( 1153 PreParserStatementList PreParser::ParseEagerFunctionBody(
1152 PreParserIdentifier function_name, int pos, 1154 PreParserIdentifier function_name, int pos,
(...skipping 14 matching lines...) Expand all
1167 const PreParserFormalParameters& parameters, FunctionKind kind, 1169 const PreParserFormalParameters& parameters, FunctionKind kind,
1168 FunctionLiteral::FunctionType function_type, bool* ok) { 1170 FunctionLiteral::FunctionType function_type, bool* ok) {
1169 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1171 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1170 kind, function_type, ok); 1172 kind, function_type, ok);
1171 } 1173 }
1172 1174
1173 } // namespace internal 1175 } // namespace internal
1174 } // namespace v8 1176 } // namespace v8
1175 1177
1176 #endif // V8_PARSING_PREPARSER_H 1178 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698