mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Add a getValue() to dup instruction
This commit is contained in:
parent
4c262a2ad1
commit
8b20e21725
@ -18,6 +18,8 @@ package de.inetsoftware.jwebassembly.module;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import de.inetsoftware.jwebassembly.wasm.AnyType;
|
import de.inetsoftware.jwebassembly.wasm.AnyType;
|
||||||
import de.inetsoftware.jwebassembly.wasm.VariableOperator;
|
import de.inetsoftware.jwebassembly.wasm.VariableOperator;
|
||||||
|
|
||||||
@ -28,6 +30,7 @@ import de.inetsoftware.jwebassembly.wasm.VariableOperator;
|
|||||||
*/
|
*/
|
||||||
class DupThis extends WasmInstruction {
|
class DupThis extends WasmInstruction {
|
||||||
|
|
||||||
|
@Nonnull
|
||||||
private WasmCallIndirectInstruction virtualCall;
|
private WasmCallIndirectInstruction virtualCall;
|
||||||
|
|
||||||
private int tempVarSlot;
|
private int tempVarSlot;
|
||||||
@ -46,13 +49,22 @@ class DupThis extends WasmInstruction {
|
|||||||
* @param javaCodePos
|
* @param javaCodePos
|
||||||
* the code position
|
* the code position
|
||||||
*/
|
*/
|
||||||
DupThis( WasmCallIndirectInstruction virtualCall, int tempVarSlot, LocaleVariableManager localVariables, int javaCodePos ) {
|
DupThis( @Nonnull WasmCallIndirectInstruction virtualCall, int tempVarSlot, LocaleVariableManager localVariables, int javaCodePos ) {
|
||||||
super( javaCodePos, virtualCall.getLineNumber() );
|
super( javaCodePos, virtualCall.getLineNumber() );
|
||||||
this.virtualCall = virtualCall;
|
this.virtualCall = virtualCall;
|
||||||
this.tempVarSlot = tempVarSlot;
|
this.tempVarSlot = tempVarSlot;
|
||||||
this.localVariables = localVariables;
|
this.localVariables = localVariables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the related virtual function call.
|
||||||
|
* @return the call
|
||||||
|
*/
|
||||||
|
@Nonnull
|
||||||
|
WasmCallIndirectInstruction getValue() {
|
||||||
|
return virtualCall;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user