| OLD | NEW |
| 1 // Modified embenchen to direct to asm-wasm. | 1 // Modified embenchen to direct to asm-wasm. |
| 2 // Flags: --expose-wasm | 2 // Flags: --expose-wasm |
| 3 // TODO(mtrofin): Drop when verifier is fixed. | |
| 4 // Flags: --noturbo-verify-allocation | |
| 5 | 3 |
| 6 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; | 4 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; |
| 7 var Module = { | 5 var Module = { |
| 8 arguments: [1], | 6 arguments: [1], |
| 9 print: function(x) {Module.printBuffer += x + '\n';}, | 7 print: function(x) {Module.printBuffer += x + '\n';}, |
| 10 preRun: [function() {Module.printBuffer = ''}], | 8 preRun: [function() {Module.printBuffer = ''}], |
| 11 postRun: [function() { | 9 postRun: [function() { |
| 12 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); | 10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); |
| 13 }], | 11 }], |
| 14 }; | 12 }; |
| (...skipping 14734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14749 } | 14747 } |
| 14750 | 14748 |
| 14751 // shouldRunNow refers to calling main(), not run(). | 14749 // shouldRunNow refers to calling main(), not run(). |
| 14752 var shouldRunNow = true; | 14750 var shouldRunNow = true; |
| 14753 if (Module['noInitialRun']) { | 14751 if (Module['noInitialRun']) { |
| 14754 shouldRunNow = false; | 14752 shouldRunNow = false; |
| 14755 } | 14753 } |
| 14756 | 14754 |
| 14757 | 14755 |
| 14758 run([].concat(Module["arguments"])); | 14756 run([].concat(Module["arguments"])); |
| OLD | NEW |