v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
module-decoder-impl.h File Reference
Include dependency graph for module-decoder-impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::wasm::WasmSectionIterator
 
class  v8::internal::wasm::ModuleDecoderImpl
 
struct  v8::internal::wasm::ModuleDecoderImpl::DataSegmentHeader
 
struct  v8::internal::wasm::ModuleDecoderImpl::LimitsByte
 

Namespaces

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

Macros

#define TRACE(...)
 
#define BYTES(x)
 
#define TYPE_CHECK(found)
 

Functions

const char * v8::internal::wasm::ExternalKindName (ImportExportKindCode kind)
 
bool v8::internal::wasm::validate_utf8 (Decoder *decoder, WireBytesRef string)
 
WireBytesRef v8::internal::wasm::consume_string (Decoder *decoder, unibrow::Utf8Variant grammar, const char *name, ITracer *tracer)
 
WireBytesRef v8::internal::wasm::consume_string (Decoder *decoder, unibrow::Utf8Variant grammar, const char *name)
 
WireBytesRef v8::internal::wasm::consume_utf8_string (Decoder *decoder, const char *name, ITracer *tracer)
 
SectionCode v8::internal::wasm::IdentifyUnknownSectionInternal (Decoder *decoder, ITracer *tracer)
 
void v8::internal::wasm::DumpModule (const base::Vector< const uint8_t > module_bytes, bool ok)
 

Variables

constexpr char v8::internal::wasm::kNameString [] = "name"
 
constexpr char v8::internal::wasm::kSourceMappingURLString [] = "sourceMappingURL"
 
constexpr char v8::internal::wasm::kInstTraceString [] = "metadata.code.trace_inst"
 
constexpr char v8::internal::wasm::kCompilationHintsString [] = "compilationHints"
 
constexpr char v8::internal::wasm::kBranchHintsString [] = "metadata.code.branch_hint"
 
constexpr char v8::internal::wasm::kDebugInfoString [] = ".debug_info"
 
constexpr char v8::internal::wasm::kExternalDebugInfoString [] = "external_debug_info"
 
constexpr char v8::internal::wasm::kBuildIdString [] = "build_id"
 

Macro Definition Documentation

◆ BYTES

#define BYTES ( x)
Value:
(x & 0xFF), (x >> 8) & 0xFF, (x >> 16) & 0xFF, (x >> 24) & 0xFF
int x

◆ TRACE

#define TRACE ( ...)
Value:
do { \
if (v8_flags.trace_wasm_decoder) PrintF(__VA_ARGS__); \
} while (false)

Definition at line 27 of file module-decoder-impl.h.

◆ TYPE_CHECK

#define TYPE_CHECK ( found)
Value:
if (V8_UNLIKELY(!IsSubtypeOf(found, expected, module))) { \
errorf(pc() + 1, \
"type error in constant expression[0] (expected %s, got %s)", \
expected.name().c_str(), found.name().c_str()); \
return {}; \
}
#define V8_UNLIKELY(condition)
Definition v8config.h:660