| 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/asmjs/typing-asm.h" | 5 #include "src/asmjs/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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 for (int i = 0; i < decls->length(); ++i) { | 1380 for (int i = 0; i < decls->length(); ++i) { |
| 1381 Declaration* decl = decls->at(i); | 1381 Declaration* decl = decls->at(i); |
| 1382 RECURSE(Visit(decl)); | 1382 RECURSE(Visit(decl)); |
| 1383 } | 1383 } |
| 1384 } | 1384 } |
| 1385 | 1385 |
| 1386 void AsmTyper::VisitImportDeclaration(ImportDeclaration* decl) { | 1386 void AsmTyper::VisitImportDeclaration(ImportDeclaration* decl) { |
| 1387 FAIL(decl, "import declaration encountered"); | 1387 FAIL(decl, "import declaration encountered"); |
| 1388 } | 1388 } |
| 1389 | 1389 |
| 1390 void AsmTyper::VisitClassLiteral(ClassLiteral* expr) { | |
| 1391 FAIL(expr, "class literal not allowed"); | |
| 1392 } | |
| 1393 | |
| 1394 void AsmTyper::VisitSpread(Spread* expr) { FAIL(expr, "spread not allowed"); } | 1390 void AsmTyper::VisitSpread(Spread* expr) { FAIL(expr, "spread not allowed"); } |
| 1395 | 1391 |
| 1396 void AsmTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) { | 1392 void AsmTyper::VisitSuperPropertyReference(SuperPropertyReference* expr) { |
| 1397 FAIL(expr, "super property reference not allowed"); | 1393 FAIL(expr, "super property reference not allowed"); |
| 1398 } | 1394 } |
| 1399 | 1395 |
| 1400 void AsmTyper::VisitSuperCallReference(SuperCallReference* expr) { | 1396 void AsmTyper::VisitSuperCallReference(SuperCallReference* expr) { |
| 1401 FAIL(expr, "call reference not allowed"); | 1397 FAIL(expr, "call reference not allowed"); |
| 1402 } | 1398 } |
| 1403 | 1399 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 } | 1593 } |
| 1598 expected_type_ = save; | 1594 expected_type_ = save; |
| 1599 } | 1595 } |
| 1600 | 1596 |
| 1601 void AsmTyper::VisitRewritableExpression(RewritableExpression* expr) { | 1597 void AsmTyper::VisitRewritableExpression(RewritableExpression* expr) { |
| 1602 RECURSE(Visit(expr->expression())); | 1598 RECURSE(Visit(expr->expression())); |
| 1603 } | 1599 } |
| 1604 | 1600 |
| 1605 } // namespace internal | 1601 } // namespace internal |
| 1606 } // namespace v8 | 1602 } // namespace v8 |
| OLD | NEW |