mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
fix getPopCount() and getPushValue()
This commit is contained in:
parent
b65027f156
commit
d32244c60c
@ -61,6 +61,6 @@ class WasmLoadStoreInstruction extends WasmLocalInstruction {
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
AnyType getPushValueType() {
|
||||
return getPopCount() == 0 ? localVariables.getValueType( super.getIndex() ) : null;
|
||||
return getPopCount() == 0 ? localVariables.getValueType( getIndex() ) : null;
|
||||
}
|
||||
}
|
||||
|
@ -142,6 +142,7 @@ class WasmStructInstruction extends WasmInstruction {
|
||||
case GET:
|
||||
return 1;
|
||||
case SET:
|
||||
return 2;
|
||||
case NULL:
|
||||
return 0;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user