| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --validate-asm --allow-natives-syntax | 5 // Flags: --validate-asm --allow-natives-syntax |
| 6 | 6 |
| 7 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-wasm-stack.js'; | 7 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-wasm-stack.js'; |
| 8 filename = filename.replace(/\//g, '[/\\\\]'); | 8 filename = filename.replace(/\//g, '[/\\\\]'); |
| 9 | 9 |
| 10 function checkPreformattedStack(e, expected_lines) { | 10 function checkPreformattedStack(e, expected_lines) { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 (function StackOverflowPosition() { | 131 (function StackOverflowPosition() { |
| 132 var fun = generateOverflowWasmFromAsmJs(); | 132 var fun = generateOverflowWasmFromAsmJs(); |
| 133 assertTrue(%IsWasmCode(fun)); | 133 assertTrue(%IsWasmCode(fun)); |
| 134 var e = null; | 134 var e = null; |
| 135 try { | 135 try { |
| 136 fun(2); | 136 fun(2); |
| 137 } catch (ex) { | 137 } catch (ex) { |
| 138 e = ex; | 138 e = ex; |
| 139 } | 139 } |
| 140 // TODO(wasm): Re-enable the check once 673297 is fixed. | 140 assertInstanceof(e, RangeError, 'RangeError should have been thrown'); |
| 141 //assertInstanceof(e, RangeError, 'RangeError should have been thrown'); | |
| 142 checkTopFunctionsOnCallsites(e, [ | 141 checkTopFunctionsOnCallsites(e, [ |
| 143 ['f', 124, 13], // -- | 142 ['f', 124, 13], // -- |
| 144 ['f', 126, 12], // -- | 143 ['f', 126, 12], // -- |
| 145 ['f', 126, 12], // -- | 144 ['f', 126, 12], // -- |
| 146 ['f', 126, 12] // -- | 145 ['f', 126, 12] // -- |
| 147 ]); | 146 ]); |
| 148 })(); | 147 })(); |
| OLD | NEW |