| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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 let {session, contextGroup, Protocol} = InspectorTest.start('Tests stepping thro
ugh wasm scripts'); |
| 6 |
| 5 utils.load('test/mjsunit/wasm/wasm-constants.js'); | 7 utils.load('test/mjsunit/wasm/wasm-constants.js'); |
| 6 utils.load('test/mjsunit/wasm/wasm-module-builder.js'); | 8 utils.load('test/mjsunit/wasm/wasm-module-builder.js'); |
| 7 | 9 |
| 8 var builder = new WasmModuleBuilder(); | 10 var builder = new WasmModuleBuilder(); |
| 9 | 11 |
| 10 var func_a_idx = | 12 var func_a_idx = |
| 11 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index; | 13 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index; |
| 12 | 14 |
| 13 // wasm_B calls wasm_A <param0> times. | 15 // wasm_B calls wasm_A <param0> times. |
| 14 builder.addFunction('wasm_B', kSig_v_i) | 16 builder.addFunction('wasm_B', kSig_v_i) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 } | 194 } |
| 193 } | 195 } |
| 194 } | 196 } |
| 195 | 197 |
| 196 function handlePaused(msg) { | 198 function handlePaused(msg) { |
| 197 var loc = msg.params.callFrames[0].location; | 199 var loc = msg.params.callFrames[0].location; |
| 198 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber); | 200 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber); |
| 199 dumpScopeChainsOnPause(msg) | 201 dumpScopeChainsOnPause(msg) |
| 200 .then(Protocol.Debugger[step_actions.shift() || 'resume']); | 202 .then(Protocol.Debugger[step_actions.shift() || 'resume']); |
| 201 } | 203 } |
| OLD | NEW |