Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef V8_WASM_ASM_WASM_BUILDER_H_ |
| 6 | #define V8_WASM_ASM_WASM_BUILDER_H_ |
| 7 | |
| 8 | #include "src/allocation.h" |
Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame] | 9 | #include "src/objects.h" |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 10 | #include "src/typing-asm.h" |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 11 | #include "src/wasm/encoder.h" |
| 12 | #include "src/zone.h" |
| 13 | |
| 14 | namespace v8 { |
| 15 | namespace internal { |
| 16 | |
| 17 | class FunctionLiteral; |
| 18 | |
| 19 | namespace wasm { |
| 20 | |
| 21 | class AsmWasmBuilder { |
| 22 | public: |
Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame] | 23 | explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root, |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 24 | AsmTyper* typer); |
| 25 | ZoneBuffer* Run(Handle<FixedArray>* foreign_args); |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 26 | |
| 27 | private: |
| 28 | Isolate* isolate_; |
| 29 | Zone* zone_; |
| 30 | FunctionLiteral* literal_; |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 31 | AsmTyper* typer_; |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 32 | }; |
| 33 | } // namespace wasm |
| 34 | } // namespace internal |
| 35 | } // namespace v8 |
| 36 | |
| 37 | #endif // V8_WASM_ASM_WASM_BUILDER_H_ |