mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
Merge pull request #15 from JCWasmx86/master
Typo, replaced crlf with lf in some files
This commit is contained in:
commit
87199e46ba
@ -33,7 +33,7 @@ class CodeOptimizer {
|
||||
* @param instructions
|
||||
* the list of instructions
|
||||
*/
|
||||
void optimze( List<WasmInstruction> instructions ) {
|
||||
void optimize( List<WasmInstruction> instructions ) {
|
||||
for( int i = instructions.size()-1; i >= 0; i-- ) {
|
||||
WasmInstruction instr = instructions.get( i );
|
||||
switch( instr.getType() ) {
|
||||
|
@ -574,7 +574,7 @@ public class ModuleGenerator {
|
||||
writeMethodSignature( name, FunctionType.Code, codeBuilder );
|
||||
|
||||
List<WasmInstruction> instructions = codeBuilder.getInstructions();
|
||||
optimizer.optimze( instructions );
|
||||
optimizer.optimize( instructions );
|
||||
|
||||
int lastJavaSourceLine = -1;
|
||||
for( WasmInstruction instruction : instructions ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user