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 |
11 #include <math.h> | 11 #include <math.h> |
12 | 12 |
13 #include "src/wasm/asm-wasm-builder.h" | 13 #include "src/asmjs/asm-wasm-builder.h" |
14 #include "src/wasm/switch-logic.h" | 14 #include "src/wasm/switch-logic.h" |
15 #include "src/wasm/wasm-macro-gen.h" | 15 #include "src/wasm/wasm-macro-gen.h" |
16 #include "src/wasm/wasm-opcodes.h" | 16 #include "src/wasm/wasm-opcodes.h" |
17 | 17 |
18 #include "src/ast/ast.h" | 18 #include "src/ast/ast.h" |
19 #include "src/ast/scopes.h" | 19 #include "src/ast/scopes.h" |
20 #include "src/codegen.h" | 20 #include "src/codegen.h" |
21 #include "src/type-cache.h" | 21 #include "src/type-cache.h" |
22 | 22 |
23 namespace v8 { | 23 namespace v8 { |
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1776 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); | 1776 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); |
1777 impl.Build(); | 1777 impl.Build(); |
1778 *foreign_args = impl.GetForeignArgs(); | 1778 *foreign_args = impl.GetForeignArgs(); |
1779 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); | 1779 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); |
1780 impl.builder_->WriteTo(*buffer); | 1780 impl.builder_->WriteTo(*buffer); |
1781 return buffer; | 1781 return buffer; |
1782 } | 1782 } |
1783 } // namespace wasm | 1783 } // namespace wasm |
1784 } // namespace internal | 1784 } // namespace internal |
1785 } // namespace v8 | 1785 } // namespace v8 |
OLD | NEW |