| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 // Required to get M_E etc. in MSVC. | 7 // Required to get M_E etc. in MSVC. |
| 8 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 #define _USE_MATH_DEFINES | 9 #define _USE_MATH_DEFINES |
| 10 #endif | 10 #endif |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 | 1628 |
| 1629 void VisitThisFunction(ThisFunction* expr) override { UNREACHABLE(); } | 1629 void VisitThisFunction(ThisFunction* expr) override { UNREACHABLE(); } |
| 1630 | 1630 |
| 1631 void VisitDeclarations(ZoneList<Declaration*>* decls) override { | 1631 void VisitDeclarations(ZoneList<Declaration*>* decls) override { |
| 1632 for (int i = 0; i < decls->length(); ++i) { | 1632 for (int i = 0; i < decls->length(); ++i) { |
| 1633 Declaration* decl = decls->at(i); | 1633 Declaration* decl = decls->at(i); |
| 1634 RECURSE(Visit(decl)); | 1634 RECURSE(Visit(decl)); |
| 1635 } | 1635 } |
| 1636 } | 1636 } |
| 1637 | 1637 |
| 1638 void VisitClassLiteral(ClassLiteral* expr) override { UNREACHABLE(); } | |
| 1639 | |
| 1640 void VisitSpread(Spread* expr) override { UNREACHABLE(); } | 1638 void VisitSpread(Spread* expr) override { UNREACHABLE(); } |
| 1641 | 1639 |
| 1642 void VisitSuperPropertyReference(SuperPropertyReference* expr) override { | 1640 void VisitSuperPropertyReference(SuperPropertyReference* expr) override { |
| 1643 UNREACHABLE(); | 1641 UNREACHABLE(); |
| 1644 } | 1642 } |
| 1645 | 1643 |
| 1646 void VisitSuperCallReference(SuperCallReference* expr) override { | 1644 void VisitSuperCallReference(SuperCallReference* expr) override { |
| 1647 UNREACHABLE(); | 1645 UNREACHABLE(); |
| 1648 } | 1646 } |
| 1649 | 1647 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); | 1774 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); |
| 1777 impl.Build(); | 1775 impl.Build(); |
| 1778 *foreign_args = impl.GetForeignArgs(); | 1776 *foreign_args = impl.GetForeignArgs(); |
| 1779 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); | 1777 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); |
| 1780 impl.builder_->WriteTo(*buffer); | 1778 impl.builder_->WriteTo(*buffer); |
| 1781 return buffer; | 1779 return buffer; |
| 1782 } | 1780 } |
| 1783 } // namespace wasm | 1781 } // namespace wasm |
| 1784 } // namespace internal | 1782 } // namespace internal |
| 1785 } // namespace v8 | 1783 } // namespace v8 |
| OLD | NEW |