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