mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
fix getPopCount() and getPushValue()
This commit is contained in:
parent
b65027f156
commit
d32244c60c
@ -61,6 +61,6 @@ class WasmLoadStoreInstruction extends WasmLocalInstruction {
|
|||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
AnyType getPushValueType() {
|
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:
|
case GET:
|
||||||
return 1;
|
return 1;
|
||||||
case SET:
|
case SET:
|
||||||
|
return 2;
|
||||||
case NULL:
|
case NULL:
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user