5#ifndef V8_WASM_WASM_DISASSEMBLER_H_
6#define V8_WASM_WASM_DISASSEMBLER_H_
8#if !V8_ENABLE_WEBASSEMBLY
9#error This header should only be included if WebAssembly is enabled.
17class DisassemblyCollector;
28 std::vector<int>* function_body_offsets);
30void Disassemble(base::Vector<const uint8_t> wire_bytes,
32 std::vector<int>* function_body_offsets);
36 base::Vector<const uint8_t> wire_bytes,
37 NamesProvider* names, std::ostream& os);
42 base::Vector<const uint8_t> function_body,
43 base::Vector<const uint8_t> maybe_wire_bytes,
44 uint32_t function_body_offset, std::ostream& os,
45 std::vector<uint32_t>* offsets =
nullptr);
void DisassembleFunction(const WasmModule *module, int func_index, base::Vector< const uint8_t > wire_bytes, NamesProvider *names, std::ostream &os)
void Disassemble(const WasmModule *module, ModuleWireBytes wire_bytes, NamesProvider *names, v8::debug::DisassemblyCollector *collector, std::vector< int > *function_body_offsets)
wasm::WasmModule WasmModule