mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
the dup of this must on the end if there are no more parameters
This commit is contained in:
parent
d0221065fb
commit
1a89919984
@ -481,7 +481,7 @@ public abstract class WasmCodeBuilder {
|
|||||||
}
|
}
|
||||||
if( varIndex < 0 ) {
|
if( varIndex < 0 ) {
|
||||||
varIndex = getTempVariable( virtualCall.getThisType(), instr.getCodePosition(), javaCodePos + 1 );
|
varIndex = getTempVariable( virtualCall.getThisType(), instr.getCodePosition(), javaCodePos + 1 );
|
||||||
idx = findPushInstruction( count - 1, false );
|
idx = count == 1 ? instructions.size() : findPushInstruction( count - 1, false );
|
||||||
instructions.add( idx, new DupThis( virtualCall, varIndex, javaCodePos ) );
|
instructions.add( idx, new DupThis( virtualCall, varIndex, javaCodePos ) );
|
||||||
}
|
}
|
||||||
virtualCall.setVariableIndexOfThis( varIndex );
|
virtualCall.setVariableIndexOfThis( varIndex );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user