mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +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
|
* @param instructions
|
||||||
* the list of instructions
|
* the list of instructions
|
||||||
*/
|
*/
|
||||||
void optimze( List<WasmInstruction> instructions ) {
|
void optimize( List<WasmInstruction> instructions ) {
|
||||||
for( int i = instructions.size()-1; i >= 0; i-- ) {
|
for( int i = instructions.size()-1; i >= 0; i-- ) {
|
||||||
WasmInstruction instr = instructions.get( i );
|
WasmInstruction instr = instructions.get( i );
|
||||||
switch( instr.getType() ) {
|
switch( instr.getType() ) {
|
||||||
|
@ -574,7 +574,7 @@ public class ModuleGenerator {
|
|||||||
writeMethodSignature( name, FunctionType.Code, codeBuilder );
|
writeMethodSignature( name, FunctionType.Code, codeBuilder );
|
||||||
|
|
||||||
List<WasmInstruction> instructions = codeBuilder.getInstructions();
|
List<WasmInstruction> instructions = codeBuilder.getInstructions();
|
||||||
optimizer.optimze( instructions );
|
optimizer.optimize( instructions );
|
||||||
|
|
||||||
int lastJavaSourceLine = -1;
|
int lastJavaSourceLine = -1;
|
||||||
for( WasmInstruction instruction : instructions ) {
|
for( WasmInstruction instruction : instructions ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user