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

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

Issue 1962853002: [es8] Prepare explicit tail calls (STC) for staging with implicit tail calls (PTC). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@src-stage
Patch Set: Addressing comments Created 4 years, 7 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include <cmath> 5 #include <cmath>
6 6
7 #include "src/allocation.h" 7 #include "src/allocation.h"
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/conversions-inl.h" 9 #include "src/conversions-inl.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 ParseBlock(CHECK_OK); 1008 ParseBlock(CHECK_OK);
1009 } 1009 }
1010 } 1010 }
1011 catch_block_exists = true; 1011 catch_block_exists = true;
1012 tok = peek(); 1012 tok = peek();
1013 } 1013 }
1014 if (tok == Token::FINALLY) { 1014 if (tok == Token::FINALLY) {
1015 Consume(Token::FINALLY); 1015 Consume(Token::FINALLY);
1016 ParseBlock(CHECK_OK); 1016 ParseBlock(CHECK_OK);
1017 if (FLAG_harmony_explicit_tailcalls && catch_block_exists && 1017 if (FLAG_harmony_explicit_tailcalls && catch_block_exists &&
1018 !tail_call_expressions_in_catch_block.is_empty()) { 1018 tail_call_expressions_in_catch_block.has_explicit_tail_calls()) {
1019 // TODO(ishell): update chapter number. 1019 // TODO(ishell): update chapter number.
1020 // ES8 XX.YY.ZZ 1020 // ES8 XX.YY.ZZ
1021 ReportMessageAt(tail_call_expressions_in_catch_block.location(), 1021 ReportMessageAt(tail_call_expressions_in_catch_block.location(),
1022 MessageTemplate::kUnexpectedTailCallInCatchBlock); 1022 MessageTemplate::kUnexpectedTailCallInCatchBlock);
1023 *ok = false; 1023 *ok = false;
1024 return Statement::Default(); 1024 return Statement::Default();
1025 } 1025 }
1026 } 1026 }
1027 return Statement::Default(); 1027 return Statement::Default();
1028 } 1028 }
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 } 1224 }
1225 Expect(Token::RBRACE, CHECK_OK); 1225 Expect(Token::RBRACE, CHECK_OK);
1226 return PreParserExpression::Default(); 1226 return PreParserExpression::Default();
1227 } 1227 }
1228 1228
1229 #undef CHECK_OK 1229 #undef CHECK_OK
1230 1230
1231 1231
1232 } // namespace internal 1232 } // namespace internal
1233 } // namespace v8 1233 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698