1 // Copyright 2018 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_GRAPH_BUILDER_INTERFACE_H_ 6 #define V8_WASM_GRAPH_BUILDER_INTERFACE_H_ 7 8 #include "src/wasm/decoder.h" 9 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-result.h" 11 12 namespace v8 { 13 namespace internal { 14 15 namespace compiler { // external declarations from compiler. 16 class NodeOriginTable; 17 class WasmGraphBuilder; 18 } // namespace compiler 19 20 namespace wasm { 21 22 struct FunctionBody; 23 class WasmFeatures; 24 struct WasmModule; 25 26 V8_EXPORT_PRIVATE DecodeResult 27 BuildTFGraph(AccountingAllocator* allocator, const WasmFeatures& enabled, 28 const WasmModule* module, compiler::WasmGraphBuilder* builder, 29 WasmFeatures* detected, const FunctionBody& body, 30 compiler::NodeOriginTable* node_origins); 31 32 } // namespace wasm 33 } // namespace internal 34 } // namespace v8 35 36 #endif // V8_WASM_GRAPH_BUILDER_INTERFACE_H_ 37