| 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 = | 4 var EXPECTED_OUTPUT = |
| 7 /frame averages: .+ \+- .+, range: .+ to .+ \n/; | 5 /frame averages: .+ \+- .+, range: .+ to .+ \n/; |
| 8 var Module = { | 6 var Module = { |
| 9 arguments: [1], | 7 arguments: [1], |
| 10 print: function(x) {Module.printBuffer += x + '\n';}, | 8 print: function(x) {Module.printBuffer += x + '\n';}, |
| 11 preRun: [function() {Module.printBuffer = ''}], | 9 preRun: [function() {Module.printBuffer = ''}], |
| 12 postRun: [function() { | 10 postRun: [function() { |
| 13 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); | 11 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); |
| 14 }], | 12 }], |
| (...skipping 20304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20319 } | 20317 } |
| 20320 | 20318 |
| 20321 // shouldRunNow refers to calling main(), not run(). | 20319 // shouldRunNow refers to calling main(), not run(). |
| 20322 var shouldRunNow = true; | 20320 var shouldRunNow = true; |
| 20323 if (Module['noInitialRun']) { | 20321 if (Module['noInitialRun']) { |
| 20324 shouldRunNow = false; | 20322 shouldRunNow = false; |
| 20325 } | 20323 } |
| 20326 | 20324 |
| 20327 | 20325 |
| 20328 run([].concat(Module["arguments"])); | 20326 run([].concat(Module["arguments"])); |
| OLD | NEW |