mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
code optimize
This commit is contained in:
parent
b1c6794a94
commit
7a9750afdd
@ -77,10 +77,10 @@ class StackInspector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
StackValue stackValue = null;
|
StackValue stackValue;
|
||||||
for( int p = 0; p < count; p++ ) {
|
do {
|
||||||
stackValue = stack.pop();
|
stackValue = stack.pop();
|
||||||
}
|
} while( --count > 0 );
|
||||||
return stackValue;
|
return stackValue;
|
||||||
} catch( NoSuchElementException ex ) {
|
} catch( NoSuchElementException ex ) {
|
||||||
throw new WasmException( "Push instruction not found", -1 ); // should never occur
|
throw new WasmException( "Push instruction not found", -1 ); // should never occur
|
||||||
|
Loading…
x
Reference in New Issue
Block a user