toString() for debugging

This commit is contained in:
Volker Berlin 2022-09-18 13:00:00 +02:00
parent fbd6027055
commit 4cc13dd99f
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -115,4 +115,12 @@ class WasmGlobalInstruction extends WasmInstruction {
AnyType[] getPopValueTypes() {
return load ? null : new AnyType[] { type };
}
/**
* Only used for debugging
*/
@Override
public String toString() {
return getClass().getSimpleName() + ": global." + (load ? "get $" : "set $") + name.fullName;
}
}