#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#ifndef V8_WASM_MODULE_DECODER_IMPL_H_
#define V8_WASM_MODULE_DECODER_IMPL_H_
#include "src/base/platform/wrappers.h"
#include "src/logging/counters.h"
#include "src/strings/unicode.h"
#include "src/utils/ostreams.h"
#include "src/wasm/canonical-types.h"
#include "src/wasm/constant-expression-interface.h"
#include "src/wasm/function-body-decoder-impl.h"
#include "src/wasm/module-decoder.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-subtyping.h"
#include "src/wasm/well-known-imports.h"
namespace v8::internal::wasm {
#define TRACE …
constexpr char kNameString[] = …;
constexpr char kSourceMappingURLString[] = …;
constexpr char kInstTraceString[] = …;
constexpr char kCompilationHintsString[] = …;
constexpr char kBranchHintsString[] = …;
constexpr char kDebugInfoString[] = …;
constexpr char kExternalDebugInfoString[] = …;
inline const char* ExternalKindName(ImportExportKindCode kind) { … }
inline bool validate_utf8(Decoder* decoder, WireBytesRef string) { … }
inline WireBytesRef consume_string(Decoder* decoder,
unibrow::Utf8Variant grammar,
const char* name, ITracer* tracer) { … }
inline WireBytesRef consume_string(Decoder* decoder,
unibrow::Utf8Variant grammar,
const char* name) { … }
inline WireBytesRef consume_utf8_string(Decoder* decoder, const char* name,
ITracer* tracer) { … }
inline SectionCode IdentifyUnknownSectionInternal(Decoder* decoder,
ITracer* tracer) { … }
class WasmSectionIterator { … };
inline void DumpModule(const base::Vector<const uint8_t> module_bytes,
bool ok) { … }
class ModuleDecoderImpl : public Decoder { … };
}
#undef TRACE
#endif