| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/ast.h" | 5 #include "src/ast.h" |
| 6 #include "src/messages.h" | 6 #include "src/messages.h" |
| 7 #include "src/parser.h" | 7 #include "src/parser.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 | 10 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 RelocInfo::kNoPosition); | 360 RelocInfo::kNoPosition); |
| 361 RecurseIntoSubpattern(node->target(), value); | 361 RecurseIntoSubpattern(node->target(), value); |
| 362 } | 362 } |
| 363 | 363 |
| 364 | 364 |
| 365 void Parser::PatternRewriter::VisitSpread(Spread* node) { | 365 void Parser::PatternRewriter::VisitSpread(Spread* node) { |
| 366 // TODO(dslomov): implement. | 366 // TODO(dslomov): implement. |
| 367 } | 367 } |
| 368 | 368 |
| 369 | 369 |
| 370 void Parser::PatternRewriter::VisitEmptyParentheses(EmptyParentheses* node) { |
| 371 UNREACHABLE(); |
| 372 } |
| 373 |
| 374 |
| 370 // =============== UNREACHABLE ============================= | 375 // =============== UNREACHABLE ============================= |
| 371 | 376 |
| 372 void Parser::PatternRewriter::Visit(AstNode* node) { UNREACHABLE(); } | 377 void Parser::PatternRewriter::Visit(AstNode* node) { UNREACHABLE(); } |
| 373 | 378 |
| 374 #define NOT_A_PATTERN(Node) \ | 379 #define NOT_A_PATTERN(Node) \ |
| 375 void Parser::PatternRewriter::Visit##Node(v8::internal::Node*) { \ | 380 void Parser::PatternRewriter::Visit##Node(v8::internal::Node*) { \ |
| 376 UNREACHABLE(); \ | 381 UNREACHABLE(); \ |
| 377 } | 382 } |
| 378 | 383 |
| 379 NOT_A_PATTERN(BinaryOperation) | 384 NOT_A_PATTERN(BinaryOperation) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 NOT_A_PATTERN(TryFinallyStatement) | 419 NOT_A_PATTERN(TryFinallyStatement) |
| 415 NOT_A_PATTERN(UnaryOperation) | 420 NOT_A_PATTERN(UnaryOperation) |
| 416 NOT_A_PATTERN(VariableDeclaration) | 421 NOT_A_PATTERN(VariableDeclaration) |
| 417 NOT_A_PATTERN(WhileStatement) | 422 NOT_A_PATTERN(WhileStatement) |
| 418 NOT_A_PATTERN(WithStatement) | 423 NOT_A_PATTERN(WithStatement) |
| 419 NOT_A_PATTERN(Yield) | 424 NOT_A_PATTERN(Yield) |
| 420 | 425 |
| 421 #undef NOT_A_PATTERN | 426 #undef NOT_A_PATTERN |
| 422 } // namespace internal | 427 } // namespace internal |
| 423 } // namespace v8 | 428 } // namespace v8 |
| OLD | NEW |