fix getPopCount() and getPushValue()

This commit is contained in:
Volker Berlin 2019-07-23 21:48:31 +02:00
parent b65027f156
commit d32244c60c
2 changed files with 2 additions and 1 deletions

View File

@ -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;
} }
} }

View File

@ -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: