mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
toString() for debugging
This commit is contained in:
parent
fbd6027055
commit
4cc13dd99f
@ -115,4 +115,12 @@ class WasmGlobalInstruction extends WasmInstruction {
|
|||||||
AnyType[] getPopValueTypes() {
|
AnyType[] getPopValueTypes() {
|
||||||
return load ? null : new AnyType[] { type };
|
return load ? null : new AnyType[] { type };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only used for debugging
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return getClass().getSimpleName() + ": global." + (load ? "get $" : "set $") + name.fullName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user