Holds memory/func defs, and validated elements as values in wasm.Module (#1224)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-03-12 22:52:01 -07:00
committed by GitHub
parent a814cddcb6
commit e42987a17a
14 changed files with 115 additions and 106 deletions

View File

@@ -2935,7 +2935,7 @@ func TestCompile_select_vectors(t *testing.T) {
wasm.OpcodeDrop,
wasm.OpcodeEnd,
}}},
FunctionDefinitionSection: []*wasm.FunctionDefinition{{}},
FunctionDefinitionSection: []wasm.FunctionDefinition{{}},
},
expected: []Operation{
OperationV128Const{Lo: 0x1, Hi: 0x2},
@@ -2961,7 +2961,7 @@ func TestCompile_select_vectors(t *testing.T) {
wasm.OpcodeDrop,
wasm.OpcodeEnd,
}}},
FunctionDefinitionSection: []*wasm.FunctionDefinition{{}},
FunctionDefinitionSection: []wasm.FunctionDefinition{{}},
},
expected: []Operation{
OperationV128Const{Lo: 0x1, Hi: 0x2},