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 = 'final: 40006013:58243.\n'; | 4 var EXPECTED_OUTPUT = 'final: 40006013:58243.\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 5965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5980 } | 5978 } |
5981 | 5979 |
5982 // shouldRunNow refers to calling main(), not run(). | 5980 // shouldRunNow refers to calling main(), not run(). |
5983 var shouldRunNow = true; | 5981 var shouldRunNow = true; |
5984 if (Module['noInitialRun']) { | 5982 if (Module['noInitialRun']) { |
5985 shouldRunNow = false; | 5983 shouldRunNow = false; |
5986 } | 5984 } |
5987 | 5985 |
5988 | 5986 |
5989 run([].concat(Module["arguments"])); | 5987 run([].concat(Module["arguments"])); |
OLD | NEW |