@@ -2,27 +2,12 @@ package io.github.charlietap.chasm.predecoder.instruction.control
2
2
3
3
import com.github.michaelbull.result.Result
4
4
import com.github.michaelbull.result.binding
5
+ import io.github.charlietap.chasm.ir.instruction.AdminInstruction
5
6
import io.github.charlietap.chasm.ir.instruction.ControlInstruction
6
7
import io.github.charlietap.chasm.predecoder.Predecoder
7
8
import io.github.charlietap.chasm.predecoder.PredecodingContext
8
9
import io.github.charlietap.chasm.runtime.dispatch.DispatchableInstruction
9
10
import io.github.charlietap.chasm.runtime.error.ModuleTrapError
10
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.Br
11
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrIf
12
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrOnCast
13
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrOnCastFail
14
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrOnNonNull
15
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrOnNull
16
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.BrTable
17
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.CallIndirect
18
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.CallRef
19
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.Nop
20
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.Return
21
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.ReturnCallIndirect
22
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.ReturnCallRef
23
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.Throw
24
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.ThrowRef
25
- import io.github.charlietap.chasm.runtime.instruction.ControlInstruction.Unreachable
26
11
27
12
internal fun ControlInstructionPredecoder (
28
13
context : PredecodingContext ,
@@ -104,5 +89,13 @@ internal inline fun ControlInstructionPredecoder(
104
89
is ControlInstruction .ThrowRef -> throwRefInstructionPredecoder(context, instruction).bind()
105
90
is ControlInstruction .TryTable -> tryTableInstructionPredecoder(context, instruction).bind()
106
91
is ControlInstruction .Unreachable -> unreachableInstructionPredecoder(context, instruction).bind()
92
+ is AdminInstruction .Jump -> TODO ()
93
+ is AdminInstruction .JumpIf -> TODO ()
94
+ is AdminInstruction .JumpIfNot -> TODO ()
95
+ is AdminInstruction .JumpOnCast -> TODO ()
96
+ is AdminInstruction .JumpOnCastFail -> TODO ()
97
+ is AdminInstruction .JumpOnNonNull -> TODO ()
98
+ is AdminInstruction .JumpOnNull -> TODO ()
99
+ is AdminInstruction .JumpTable -> TODO ()
107
100
}
108
101
}
0 commit comments