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 load('test/mjsunit/wasm/wasm-constants.js'); | 5 utils.load('test/mjsunit/wasm/wasm-constants.js'); |
6 load('test/mjsunit/wasm/wasm-module-builder.js'); | 6 utils.load('test/mjsunit/wasm/wasm-module-builder.js'); |
7 | 7 |
8 var builder = new WasmModuleBuilder(); | 8 var builder = new WasmModuleBuilder(); |
9 | 9 |
10 var func_a_idx = | 10 var func_a_idx = |
11 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index; | 11 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index; |
12 | 12 |
13 // wasm_B calls wasm_A <param0> times. | 13 // wasm_B calls wasm_A <param0> times. |
14 builder.addFunction('wasm_B', kSig_v_i) | 14 builder.addFunction('wasm_B', kSig_v_i) |
15 .addBody([ | 15 .addBody([ |
16 // clang-format off | 16 // clang-format off |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 line); | 151 line); |
152 } | 152 } |
153 | 153 |
154 function handlePaused(msg) { | 154 function handlePaused(msg) { |
155 var loc = msg.params.callFrames[0].location; | 155 var loc = msg.params.callFrames[0].location; |
156 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber); | 156 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber); |
157 var action = step_actions.shift(); | 157 var action = step_actions.shift(); |
158 InspectorTest.log('Step action: ' + action); | 158 InspectorTest.log('Step action: ' + action); |
159 Protocol.Debugger[action](); | 159 Protocol.Debugger[action](); |
160 } | 160 } |
OLD | NEW |