Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: test/inspector/debugger/wasm-stepping.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/inspector/debugger/wasm-stack-expected.txt ('k') | test/inspector/debugger/wasm-stepping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698