OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |