toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.wasm
/
WasmCodeVisitor
/
Context
Context
class
Context
(
val
func
:
WasmFunc
,
val
module
:
WasmModule
)
Members
Constructors
Context
Link copied to clipboard
constructor
(
func
:
WasmFunc
,
module
:
WasmModule
)
Properties
control
Structures
Link copied to clipboard
val
controlStructures
:
ArrayList
<
WasmCodeVisitor.ControlStructure
>
func
Link copied to clipboard
val
func
:
WasmFunc
func
Locals
Link copied to clipboard
val
funcLocals
:
List
<
WastLocal
>
last
Instruction
Input
Stack
Link copied to clipboard
var
lastInstructionInputStack
:
Int
last
Instruction
Output
Type
Link copied to clipboard
var
lastInstructionOutputType
:
WasmSType
last
Instruction
Type
Link copied to clipboard
var
lastInstructionType
:
WasmSType
last
Label
Link copied to clipboard
var
lastLabel
:
Int
last
Stack
Type
Link copied to clipboard
val
lastStackType
:
WasmSType
?
locals
Mem
Offset
Link copied to clipboard
val
localsMemOffset
:
IntArray
locals
Offset
Link copied to clipboard
val
localsOffset
:
Int
module
Link copied to clipboard
val
module
:
WasmModule
params
Offset
Link copied to clipboard
val
paramsOffset
:
Int
ret
Type
Link copied to clipboard
val
retType
:
WasmType
stack
Link copied to clipboard
val
stack
:
ArrayList
<
WasmSType
>
Functions
add
Control
Structure
Link copied to clipboard
inline
fun
<
T
>
addControlStructure
(
label
:
WasmCodeVisitor.Label
,
block
:
(
)
->
T
)
:
T
create
Label
Link copied to clipboard
fun
createLabel
(
)
:
WasmCodeVisitor.Label
get
Label
By
Control
Structure
Index
Link copied to clipboard
fun
getLabelByControlStructureIndex
(
index
:
Int
)
:
WasmCodeVisitor.Label
pop
Link copied to clipboard
fun
pop
(
n
:
Int
=
1
)
push
Link copied to clipboard
fun
push
(
type
:
WasmType
)
stack
Restore
Link copied to clipboard
fun
stackRestore
(
stack
:
List
<
WasmSType
>
)
stack
Save
Link copied to clipboard
fun
stackSave
(
)
:
List
<
WasmSType
>