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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 return kInt32; | 1715 return kInt32; |
1716 } | 1716 } |
1717 | 1717 |
1718 #undef CASE | 1718 #undef CASE |
1719 #undef NON_SIGNED_INT | 1719 #undef NON_SIGNED_INT |
1720 #undef SIGNED | 1720 #undef SIGNED |
1721 #undef NON_SIGNED | 1721 #undef NON_SIGNED |
1722 | 1722 |
1723 void VisitThisFunction(ThisFunction* expr) { UNREACHABLE(); } | 1723 void VisitThisFunction(ThisFunction* expr) { UNREACHABLE(); } |
1724 | 1724 |
1725 void VisitDeclarations(ZoneList<Declaration*>* decls) { | 1725 void VisitDeclarations(Declaration::List* decls) { |
1726 for (int i = 0; i < decls->length(); ++i) { | 1726 for (Declaration* decl : *decls) { |
1727 Declaration* decl = decls->at(i); | |
1728 RECURSE(Visit(decl)); | 1727 RECURSE(Visit(decl)); |
1729 } | 1728 } |
1730 } | 1729 } |
1731 | 1730 |
1732 void VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); } | 1731 void VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); } |
1733 | 1732 |
1734 void VisitSpread(Spread* expr) { UNREACHABLE(); } | 1733 void VisitSpread(Spread* expr) { UNREACHABLE(); } |
1735 | 1734 |
1736 void VisitSuperPropertyReference(SuperPropertyReference* expr) { | 1735 void VisitSuperPropertyReference(SuperPropertyReference* expr) { |
1737 UNREACHABLE(); | 1736 UNREACHABLE(); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer); | 1884 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer); |
1886 return {module_buffer, asm_offsets_buffer}; | 1885 return {module_buffer, asm_offsets_buffer}; |
1887 } | 1886 } |
1888 | 1887 |
1889 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__"; | 1888 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__"; |
1890 const char* AsmWasmBuilder::single_function_name = "__single_function__"; | 1889 const char* AsmWasmBuilder::single_function_name = "__single_function__"; |
1891 | 1890 |
1892 } // namespace wasm | 1891 } // namespace wasm |
1893 } // namespace internal | 1892 } // namespace internal |
1894 } // namespace v8 | 1893 } // namespace v8 |
OLD | NEW |