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/typing-asm.h" | 5 #include "src/typing-asm.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 RECURSE(Visit(decl)); | 1400 RECURSE(Visit(decl)); |
1401 } | 1401 } |
1402 } | 1402 } |
1403 | 1403 |
1404 | 1404 |
1405 void AsmTyper::VisitImportDeclaration(ImportDeclaration* decl) { | 1405 void AsmTyper::VisitImportDeclaration(ImportDeclaration* decl) { |
1406 FAIL(decl, "import declaration encountered"); | 1406 FAIL(decl, "import declaration encountered"); |
1407 } | 1407 } |
1408 | 1408 |
1409 | 1409 |
1410 void AsmTyper::VisitExportDeclaration(ExportDeclaration* decl) { | |
1411 FAIL(decl, "export declaration encountered"); | |
1412 } | |
1413 | |
1414 | |
1415 void AsmTyper::VisitClassLiteral(ClassLiteral* expr) { | 1410 void AsmTyper::VisitClassLiteral(ClassLiteral* expr) { |
1416 FAIL(expr, "class literal not allowed"); | 1411 FAIL(expr, "class literal not allowed"); |
1417 } | 1412 } |
1418 | 1413 |
1419 | 1414 |
1420 void AsmTyper::VisitSpread(Spread* expr) { FAIL(expr, "spread not allowed"); } | 1415 void AsmTyper::VisitSpread(Spread* expr) { FAIL(expr, "spread not allowed"); } |
1421 | 1416 |
1422 | 1417 |
1423 void AsmTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) { | 1418 void AsmTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) { |
1424 FAIL(expr, "super property reference not allowed"); | 1419 FAIL(expr, "super property reference not allowed"); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 } | 1632 } |
1638 | 1633 |
1639 | 1634 |
1640 void AsmTyper::VisitRewritableExpression(RewritableExpression* expr) { | 1635 void AsmTyper::VisitRewritableExpression(RewritableExpression* expr) { |
1641 RECURSE(Visit(expr->expression())); | 1636 RECURSE(Visit(expr->expression())); |
1642 } | 1637 } |
1643 | 1638 |
1644 | 1639 |
1645 } // namespace internal | 1640 } // namespace internal |
1646 } // namespace v8 | 1641 } // namespace v8 |
OLD | NEW |