aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/wasm.xml50
1 files changed, 25 insertions, 25 deletions
diff --git a/resources/wasm.xml b/resources/wasm.xml
index 5c436cf..5b1220c 100644
--- a/resources/wasm.xml
+++ b/resources/wasm.xml
@@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<wasm:Structure xmlns:wasm="http://www.w3.org/2001/XMLSchema">
<Read>
- <Magic_Number size="4"></Magic_Number>
- <Version size="4"></Version>
- <Type_Section count="1" type="" isaggregate="true">
+ <Magic_Number name="magic_number" encoding="leb128u" type="uint32" size="4"></Magic_Number>
+ <Version name="version" type="uint32" encoding="leb128u" size="4"></Version>
+ <Type_Section name="W_Type_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
- <Type_Section_Entry count="self::Count"/>
+ <Type_Section_Entry count="self::Count" type="self::Type_Section_Entry" name="entries"/>
</Type_Section>
- <Import_Section count="1" type="" isaggregate="true">
+ <Import_Section name="W_Import_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Import_Section_Entry" count="self::Count"/>
</Import_Section>
- <Function_Section count="1" type="" isaggregate="true">
+ <Function_Section name="W_Function_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Types name="types" encoding="leb128u" type="uint32" count="self::Count"/>
</Function_Section>
- <Table_Section count="1" type="" isaggregate="true">
+ <Table_Section name="W_Table_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Table_Type" count="self::Count"/>
</Table_Section>
- <Memory_Section count="1" type="" isaggregate="true">
+ <Memory_Section name="W_Memory_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Memory_Type" count="self::Count"/>
</Memory_Section>
- <Global_Section count="1" type="" isaggregate="true">
+ <Global_Section name="W_Global_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Globals name="globals" type="this::Global_Entry" count="self::Count"/>
</Global_Section>
- <Export_Section count="1" type="" isaggregate="true">
+ <Export_Section name="W_Export_Section" count="1" type="" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Export_Entry" count="self::Count"/>
</Export_Section>
- <Start_Section count="1" type="" isaggregate="true">
+ <Start_Section name="W_Start_Section" count="1" isaggregate="true">
<Index name="index" encoding="leb128u" type="uint32" count="1"/>
</Start_Section>
- <Element_Section count="1" type="" isaggregate="true">
+ <Element_Section name="W_Element_Section" count="1" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Element_Segment" count="self::Count"/>
</Element_Section>
- <Code_Section count="1" type="" isaggregate="true">
+ <Code_Section name="W_Code_Section" count="1" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Bodies name="bodies" type="self::Function_Body" count="self::Count"/>
</Code_Section>
- <Data_Section count="1" type="" isaggregate="true">
+ <Data_Section name="W_Data_Section" count="1" isaggregate="true">
<Count name="count" encoding="leb128u" type="uint32" count="1"/>
<Entries name="entries" type="self::Data_Segment" count="self::Count"/>
</Data_Section>
- <Custom_Section count="1" type="" isaggregate="true"></Custom_Section>
+ <Custom_Section name="W_Custom_Section" count="1" isaggregate="true"></Custom_Section>
</Read>
<Definition>
<Init_Expr name="init_expr_t" isaggregate="true">
@@ -64,10 +64,10 @@
</Global_Type>
<Table_Type name="table_type_t" isaggregate="true">
<Element_Type name="element_type" encoding="leb128s" type="int8" count="1"></Element_Type>
- <Resizable_Limit count="1"></Resizable_Limit>
+ <Resizable_Limit name="resizable_limit" count="1" type="self::Resizable_Limit"></Resizable_Limit>
</Table_Type>
<Memory_Type name="memory_type_t" isaggregate="true">
- <Resizable_Limit count="1"></Resizable_Limit>
+ <Resizable_Limit count="1" type="self::Resizable_Limit" name="resizable_limit"></Resizable_Limit>
</Memory_Type>
<Type_Section_Entry name="W_Type_Section_Entry" isaggregate="true">
<Form name="form" encoding="leb128s" type="int8" count="1"/>
@@ -82,14 +82,14 @@
<Field_Len name="field_len" encoding="leb128u" type="uint32" couny="1"/>
<Field_Str name="field_str" type="string" count="1" size="self::Field_Len"/>
<Kind name="kind" encoding="leb128u" type="uint8" count="1"/>
- <Type name="type" conditional="true" condition="self::Kind">
- <condition0 encoding="leb128u" type="uint32">0</condition0>
- <condition1 type="Table_Type">1</condition1>
- <condition2 type="Memory_Type">2</condition2>
- <condition3 type="Global_Type">3</condition3>
+ <Type name="type" conditional="true" condition="self::Kind" type="FT::conditional">
+ <condition0 name="type" encoding="leb128u" type="uint32">0</condition0>
+ <condition1 name="type" type="self::Table_Type">1</condition1>
+ <condition2 name="type" type="self::Memory_Type">2</condition2>
+ <condition3 name="type" type="self::Global_Type">3</condition3>
</Type>
</Import_Section_Entry>
- <Global_Entry name="global_type_t" isaggregate="true">
+ <Global_Entry name="W_Global_Entry" isaggregate="true">
<Global_Type name="type" type="self::Global_Type" count="1"/>
<Init name="init" type="self::Init_Expr" count="1"/>
</Global_Entry>
@@ -112,10 +112,10 @@
<Function_Body name="W_Function_Body" isaggregate="true">
<Body_size name="body_size" encoding="leb128u" type="uint32" count="1"/>
<Local_Count name="local_count" encoding="leb128u" type="uint32" count="1"/>
- <Local_Entries name="locals" type="Local_Entry" count="self::Local_Count"/>
+ <Local_Entries name="locals" type="self::Local_Entry" count="self::Local_Count"/>
<Code name="code" type="uchar" count="self::Body_size"/>
</Function_Body>
- <Data_Segment>
+ <Data_Segment name="W_Data_Segment" isaggregate="true">
<Index name="index" encoding="leb128u" type="uint32" count="1"/>
<Offset name="offset" type="self::Init_Expr" count="1"/>
<Size name="size" encoding="leb128u" type="uint32" count="1"/>