add method for patching code position

This commit is contained in:
Volker 2018-08-02 12:12:51 +02:00
parent 3a74ebbe20
commit 4ce2fed5fa

View File

@ -57,4 +57,12 @@ abstract class WasmInstruction {
int getCodePosition() {
return javaCodePos;
}
/**
* Set a new code position after reorganize the order
* @param newPos new position
*/
void setCodePosition( int newPos ) {
this.javaCodePos = newPos;
}
}