mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
add method for patching code position
This commit is contained in:
parent
3a74ebbe20
commit
4ce2fed5fa
@ -57,4 +57,12 @@ abstract class WasmInstruction {
|
|||||||
int getCodePosition() {
|
int getCodePosition() {
|
||||||
return javaCodePos;
|
return javaCodePos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a new code position after reorganize the order
|
||||||
|
* @param newPos new position
|
||||||
|
*/
|
||||||
|
void setCodePosition( int newPos ) {
|
||||||
|
this.javaCodePos = newPos;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user