#include <fstream>
#include <iomanip>
#include <iostream>
#include <optional>
#include <vector>
#include "include/libplatform/libplatform.h"
#include "include/v8-initialization.h"
#include "src/wasm/module-decoder-impl.h"
#include "src/wasm/names-provider.h"
#include "src/wasm/string-builder-multiline.h"
#include "src/wasm/wasm-disassembler-impl.h"
#include "src/wasm/wasm-opcodes-inl.h"
#include "tools/wasm/mjsunit-module-disassembler-impl.h"
#if V8_OS_POSIX
#include <unistd.h>
#endif
int PrintHelp(char** argv) { … }
namespace v8 {
namespace internal {
namespace wasm {
enum class OutputMode { … };
char* PrintHexBytesCore(char* ptr, uint32_t num_bytes, const uint8_t* start) { … }
class InstructionStatistics { … };
class ExtendedFunctionDis : public FunctionBodyDisassembler { … };
class HexDumpModuleDis;
class DumpingModuleDecoder : public ModuleDecoderImpl { … };
class HexDumpModuleDis : public ITracer { … };
class FunctionStatistics { … };
class FormatConverter { … };
DumpingModuleDecoder::DumpingModuleDecoder(ModuleWireBytes wire_bytes,
HexDumpModuleDis* module_dis)
: … { … }
}
}
}
FormatConverter;
OutputMode;
MultiLineStringBuilder;
enum class Action { … };
struct Options { … };
bool ParseInt(char* s, int* out) { … }
int ParseOptions(int argc, char** argv, Options* options) { … }
int main(int argc, char** argv) { … }