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 #ifndef V8_WASM_ASM_WASM_BUILDER_H_ | 5 #ifndef V8_WASM_ASM_WASM_BUILDER_H_ |
6 #define V8_WASM_ASM_WASM_BUILDER_H_ | 6 #define V8_WASM_ASM_WASM_BUILDER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/objects.h" |
9 #include "src/wasm/encoder.h" | 10 #include "src/wasm/encoder.h" |
10 #include "src/zone.h" | 11 #include "src/zone.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 class FunctionLiteral; | 16 class FunctionLiteral; |
16 | 17 |
17 namespace wasm { | 18 namespace wasm { |
18 | 19 |
19 class AsmWasmBuilder { | 20 class AsmWasmBuilder { |
20 public: | 21 public: |
21 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root); | 22 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root, |
| 23 Handle<Object> foreign); |
22 WasmModuleIndex* Run(); | 24 WasmModuleIndex* Run(); |
23 | 25 |
24 private: | 26 private: |
25 Isolate* isolate_; | 27 Isolate* isolate_; |
26 Zone* zone_; | 28 Zone* zone_; |
27 FunctionLiteral* literal_; | 29 FunctionLiteral* literal_; |
| 30 Handle<Object> foreign_; |
28 }; | 31 }; |
29 } // namespace wasm | 32 } // namespace wasm |
30 } // namespace internal | 33 } // namespace internal |
31 } // namespace v8 | 34 } // namespace v8 |
32 | 35 |
33 #endif // V8_WASM_ASM_WASM_BUILDER_H_ | 36 #endif // V8_WASM_ASM_WASM_BUILDER_H_ |
OLD | NEW |