mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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() {
|
||||
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