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