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