v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-disassembler.cc File Reference
Include dependency graph for wasm-disassembler.cc:

Go to the source code of this file.

Classes

class  v8::internal::wasm::ImmediatesPrinter< ValidationTag >
 

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::wasm
 

Macros

#define CASE(Opcode, ...)
 
#define CASE(Opcode, ...)
 
#define CASE(Opcode, Type)
 

Functions

void v8::internal::wasm::Disassemble (const WasmModule *module, ModuleWireBytes wire_bytes, NamesProvider *names, v8::debug::DisassemblyCollector *collector, std::vector< int > *function_body_offsets)
 
void v8::internal::wasm::Disassemble (base::Vector< const uint8_t > wire_bytes, v8::debug::DisassemblyCollector *collector, std::vector< int > *function_body_offsets)
 
void v8::internal::wasm::DisassembleFunctionImpl (const WasmModule *module, int func_index, base::Vector< const uint8_t > function_body, ModuleWireBytes module_bytes, NamesProvider *names, std::ostream &os, std::vector< uint32_t > *offsets)
 
void v8::internal::wasm::DisassembleFunction (const WasmModule *module, int func_index, base::Vector< const uint8_t > wire_bytes, NamesProvider *names, std::ostream &os)
 
void v8::internal::wasm::DisassembleFunction (const WasmModule *module, int func_index, base::Vector< const uint8_t > function_body, base::Vector< const uint8_t > maybe_wire_bytes, uint32_t function_body_offset, std::ostream &os, std::vector< uint32_t > *offsets)
 
uint32_t v8::internal::wasm::GetDefaultAlignment (WasmOpcode opcode)
 
V8_EXPORT_PRIVATE void v8::internal::wasm::PrintSignatureOneLine (StringBuilder &out, const FunctionSig *sig, uint32_t func_index, NamesProvider *names, bool param_names, IndexAsComment indices_as_comments=NamesProvider::kDontPrintIndex)
 
void v8::internal::wasm::PrintStringRaw (StringBuilder &out, const uint8_t *start, const uint8_t *end)
 
V8_EXPORT_PRIVATE void v8::internal::wasm::PrintStringAsJSON (StringBuilder &out, const uint8_t *start, WireBytesRef ref)
 

Variables

static constexpr char v8::internal::wasm::kHexChars [] = "0123456789abcdef"
 
static constexpr char v8::internal::wasm::kUpperHexChars [] = "0123456789ABCDEF"
 

Macro Definition Documentation

◆ CASE [1/3]

#define CASE ( Opcode,
Type )
Value:
case kExpr##Opcode: \
return ElementSizeLog2Of(MachineType::Type().representation());

◆ CASE [2/3]

#define CASE ( Opcode,
... )
Value:
case kExpr##Opcode: \
return GetLoadType(kExpr##Opcode).size_log_2();

◆ CASE [3/3]

#define CASE ( Opcode,
... )
Value:
case kExpr##Opcode: \
return GetStoreType(kExpr##Opcode).size_log_2();