[Wasm] Wrap a recursion group by a "rec" block in wat
This commit is contained in:
committed by
Space Team
parent
8a9531ce3c
commit
151f5b90c7
@@ -228,14 +228,16 @@ class WasmIrToText : SExpressionBuilder() {
|
|||||||
with(module) {
|
with(module) {
|
||||||
newLineList("module") {
|
newLineList("module") {
|
||||||
functionTypes.forEach { appendFunctionTypeDeclaration(it) }
|
functionTypes.forEach { appendFunctionTypeDeclaration(it) }
|
||||||
recGroupTypes.forEach {
|
newLineList("rec") {
|
||||||
when (it) {
|
recGroupTypes.forEach {
|
||||||
is WasmStructDeclaration ->
|
when (it) {
|
||||||
appendStructTypeDeclaration(it)
|
is WasmStructDeclaration ->
|
||||||
is WasmArrayDeclaration ->
|
appendStructTypeDeclaration(it)
|
||||||
appendArrayTypeDeclaration(it)
|
is WasmArrayDeclaration ->
|
||||||
is WasmFunctionType ->
|
appendArrayTypeDeclaration(it)
|
||||||
appendFunctionTypeDeclaration(it)
|
is WasmFunctionType ->
|
||||||
|
appendFunctionTypeDeclaration(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
importsInOrder.forEach {
|
importsInOrder.forEach {
|
||||||
|
|||||||
Reference in New Issue
Block a user