Wire Sysio Wire Sysion 1.0.0
|
Classes | |
struct | LocalSet |
struct | OperatorSerializerStream |
struct | scoped_skip_checks |
Enumerations | |
enum | { magicNumber =0x6d736100 , currentVersion =1 } |
enum class | SectionType : U8 { unknown = 0 , user = 0 , type = 1 , import = 2 , functionDeclarations = 3 , table = 4 , memory = 5 , global = 6 , export_ = 7 , start = 8 , elem = 9 , functionDefinitions = 10 , data = 11 } |
Functions | |
WEBASSEMBLY_API void | serialize (Serialization::InputStream &stream, IR::Module &module) |
WEBASSEMBLY_API void | serialize (Serialization::OutputStream &stream, const IR::Module &module) |
FORCEINLINE void | serialize (InputStream &stream, Opcode &opcode) |
FORCEINLINE void | serialize (OutputStream &stream, Opcode opcode) |
template<typename Stream > | |
void | serialize (Stream &stream, NoImm &, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, ControlStructureImm &imm, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, BranchImm &imm, const FunctionDef &) |
void | serialize (InputStream &stream, BranchTableImm &imm, FunctionDef &functionDef) |
void | serialize (OutputStream &stream, BranchTableImm &imm, FunctionDef &functionDef) |
template<typename Stream > | |
void | serialize (Stream &stream, LiteralImm< I32 > &imm, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, LiteralImm< I64 > &imm, const FunctionDef &) |
template<typename Stream , bool isGlobal> | |
void | serialize (Stream &stream, GetOrSetVariableImm< isGlobal > &imm, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, CallImm &imm, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, CallIndirectImm &imm, const FunctionDef &) |
template<typename Stream , Uptr naturalAlignmentLog2> | |
void | serialize (Stream &stream, LoadOrStoreImm< naturalAlignmentLog2 > &imm, const FunctionDef &) |
template<typename Stream > | |
void | serialize (Stream &stream, MemoryImm &imm, const FunctionDef &) |
template<typename Stream , typename Value > | |
void | serialize (Stream &stream, LiteralImm< Value > &imm, const FunctionDef &) |
template<typename SerializeSection > | |
void | serializeSection (OutputStream &stream, SectionType type, SerializeSection serializeSectionBody) |
template<typename SerializeSection > | |
void | serializeSection (InputStream &stream, SectionType expectedType, SerializeSection serializeSectionBody) |
void | serialize (OutputStream &stream, UserSection &userSection) |
void | serialize (InputStream &stream, UserSection &userSection) |
template<typename Stream > | |
void | serialize (Stream &stream, LocalSet &localSet) |
void | serializeFunctionBody (OutputStream §ionStream, Module &module, FunctionDef &functionDef) |
void | serializeFunctionBody (InputStream §ionStream, Module &module, FunctionDef &functionDef) |
template<typename Stream > | |
void | serializeTypeSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeImportSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeFunctionSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeTableSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeMemorySection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeGlobalSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeExportSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeStartSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeElementSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeCodeSection (Stream &moduleStream, Module &module) |
template<typename Stream > | |
void | serializeDataSection (Stream &moduleStream, Module &module) |
void | serializeModule (OutputStream &moduleStream, Module &module) |
void | serializeModule (InputStream &moduleStream, Module &module) |
Variables | |
bool | check_limits = true |
anonymous enum |
Enumerator | |
---|---|
magicNumber | |
currentVersion |
Definition at line 185 of file WASMSerialization.cpp.
|
strong |
Enumerator | |
---|---|
unknown | |
user | |
type | |
import | |
functionDeclarations | |
table | |
memory | |
global | |
export_ | |
start | |
elem | |
functionDefinitions | |
data |
Definition at line 191 of file WASMSerialization.cpp.
void WASM::serialize | ( | InputStream & | stream, |
BranchTableImm & | imm, | ||
FunctionDef & | functionDef ) |
Definition at line 245 of file WASMSerialization.cpp.
FORCEINLINE void WASM::serialize | ( | InputStream & | stream, |
Opcode & | opcode ) |
Definition at line 208 of file WASMSerialization.cpp.
void WASM::serialize | ( | InputStream & | stream, |
UserSection & | userSection ) |
Definition at line 393 of file WASMSerialization.cpp.
void WASM::serialize | ( | OutputStream & | stream, |
BranchTableImm & | imm, | ||
FunctionDef & | functionDef ) |
Definition at line 253 of file WASMSerialization.cpp.
FORCEINLINE void WASM::serialize | ( | OutputStream & | stream, |
Opcode | opcode ) |
Definition at line 218 of file WASMSerialization.cpp.
void WASM::serialize | ( | OutputStream & | stream, |
UserSection & | userSection ) |
Definition at line 381 of file WASMSerialization.cpp.
void WASM::serialize | ( | Serialization::InputStream & | stream, |
IR::Module & | module ) |
Definition at line 841 of file WASMSerialization.cpp.
void WASM::serialize | ( | Serialization::OutputStream & | stream, |
const IR::Module & | module ) |
Definition at line 846 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
BranchImm & | imm, | ||
const FunctionDef & | ) |
Definition at line 240 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
CallImm & | imm, | ||
const FunctionDef & | ) |
Definition at line 274 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
CallIndirectImm & | imm, | ||
const FunctionDef & | ) |
Definition at line 280 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
ControlStructureImm & | imm, | ||
const FunctionDef & | ) |
Definition at line 232 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
GetOrSetVariableImm< isGlobal > & | imm, | ||
const FunctionDef & | ) |
void WASM::serialize | ( | Stream & | stream, |
LiteralImm< I32 > & | imm, | ||
const FunctionDef & | ) |
Definition at line 262 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
LiteralImm< I64 > & | imm, | ||
const FunctionDef & | ) |
Definition at line 266 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
LiteralImm< Value > & | imm, | ||
const FunctionDef & | ) |
void WASM::serialize | ( | Stream & | stream, |
LoadOrStoreImm< naturalAlignmentLog2 > & | imm, | ||
const FunctionDef & | ) |
Definition at line 287 of file WASMSerialization.cpp.
Definition at line 414 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
MemoryImm & | imm, | ||
const FunctionDef & | ) |
Definition at line 293 of file WASMSerialization.cpp.
void WASM::serialize | ( | Stream & | stream, |
NoImm & | , | ||
const FunctionDef & | ) |
Definition at line 229 of file WASMSerialization.cpp.
void WASM::serializeCodeSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 760 of file WASMSerialization.cpp.
void WASM::serializeDataSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 773 of file WASMSerialization.cpp.
void WASM::serializeElementSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 751 of file WASMSerialization.cpp.
void WASM::serializeExportSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 733 of file WASMSerialization.cpp.
void WASM::serializeFunctionBody | ( | InputStream & | sectionStream, |
Module & | module, | ||
FunctionDef & | functionDef ) |
Definition at line 483 of file WASMSerialization.cpp.
void WASM::serializeFunctionBody | ( | OutputStream & | sectionStream, |
Module & | module, | ||
FunctionDef & | functionDef ) |
Definition at line 446 of file WASMSerialization.cpp.
void WASM::serializeFunctionSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 672 of file WASMSerialization.cpp.
void WASM::serializeGlobalSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 724 of file WASMSerialization.cpp.
void WASM::serializeImportSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 565 of file WASMSerialization.cpp.
void WASM::serializeMemorySection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 715 of file WASMSerialization.cpp.
void WASM::serializeModule | ( | InputStream & | moduleStream, |
Module & | module ) |
Definition at line 803 of file WASMSerialization.cpp.
void WASM::serializeModule | ( | OutputStream & | moduleStream, |
Module & | module ) |
Definition at line 781 of file WASMSerialization.cpp.
void WASM::serializeSection | ( | InputStream & | stream, |
SectionType | expectedType, | ||
SerializeSection | serializeSectionBody ) |
Definition at line 370 of file WASMSerialization.cpp.
void WASM::serializeSection | ( | OutputStream & | stream, |
SectionType | type, | ||
SerializeSection | serializeSectionBody ) |
Definition at line 359 of file WASMSerialization.cpp.
void WASM::serializeStartSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 742 of file WASMSerialization.cpp.
void WASM::serializeTableSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 706 of file WASMSerialization.cpp.
void WASM::serializeTypeSection | ( | Stream & | moduleStream, |
Module & | module ) |
Definition at line 541 of file WASMSerialization.cpp.