Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 09f405704b1525093c4b36d3f756bc5443d8181a..f564602fc1eac7e60c2e68f2acff4ff764d0122b 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -5785,7 +5785,7 @@ Expression* ParserTraits::RewriteYieldStar( |
Statement* initialize_mode; |
{ |
Expression* mode_proxy = factory->NewVariableProxy(var_mode); |
- Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::NEXT, nopos); |
+ Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::kNext, nopos); |
Expression* assignment = |
factory->NewAssignment(Token::ASSIGN, mode_proxy, knext, nopos); |
initialize_mode = factory->NewExpressionStatement(assignment, nopos); |
@@ -5983,7 +5983,7 @@ Expression* ParserTraits::RewriteYieldStar( |
{ |
Expression* mode_proxy = factory->NewVariableProxy(var_mode); |
Expression* kreturn = |
- factory->NewSmiLiteral(JSGeneratorObject::RETURN, nopos); |
+ factory->NewSmiLiteral(JSGeneratorObject::kReturn, nopos); |
Expression* assignment = |
factory->NewAssignment(Token::ASSIGN, mode_proxy, kreturn, nopos); |
set_mode_return = factory->NewExpressionStatement(assignment, nopos); |
@@ -6002,7 +6002,7 @@ Expression* ParserTraits::RewriteYieldStar( |
Statement* set_mode_next; |
{ |
Expression* mode_proxy = factory->NewVariableProxy(var_mode); |
- Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::NEXT, nopos); |
+ Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::kNext, nopos); |
Expression* assignment = |
factory->NewAssignment(Token::ASSIGN, mode_proxy, knext, nopos); |
set_mode_next = factory->NewExpressionStatement(assignment, nopos); |
@@ -6014,7 +6014,7 @@ Expression* ParserTraits::RewriteYieldStar( |
{ |
Expression* mode_proxy = factory->NewVariableProxy(var_mode); |
Expression* kthrow = |
- factory->NewSmiLiteral(JSGeneratorObject::THROW, nopos); |
+ factory->NewSmiLiteral(JSGeneratorObject::kThrow, nopos); |
Expression* assignment = |
factory->NewAssignment(Token::ASSIGN, mode_proxy, kthrow, nopos); |
set_mode_throw = factory->NewExpressionStatement(assignment, nopos); |
@@ -6102,11 +6102,11 @@ Expression* ParserTraits::RewriteYieldStar( |
case_throw->Add(factory->NewBreakStatement(switch_mode, nopos), zone); |
auto cases = new (zone) ZoneList<CaseClause*>(3, zone); |
- Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::NEXT, nopos); |
+ Expression* knext = factory->NewSmiLiteral(JSGeneratorObject::kNext, nopos); |
Expression* kreturn = |
- factory->NewSmiLiteral(JSGeneratorObject::RETURN, nopos); |
+ factory->NewSmiLiteral(JSGeneratorObject::kReturn, nopos); |
Expression* kthrow = |
- factory->NewSmiLiteral(JSGeneratorObject::THROW, nopos); |
+ factory->NewSmiLiteral(JSGeneratorObject::kThrow, nopos); |
cases->Add(factory->NewCaseClause(knext, case_next, nopos), zone); |
cases->Add(factory->NewCaseClause(kreturn, case_return, nopos), zone); |
cases->Add(factory->NewCaseClause(kthrow, case_throw, nopos), zone); |