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

Side by Side Diff: test/inspector/debugger/stepping-with-blackboxed-ranges.js

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: rebased Created 3 years, 11 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 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 InspectorTest.addScript( 5 InspectorTest.addScript(
6 `function blackboxedBoo() 6 `function blackboxedBoo()
7 { 7 {
8 var a = 42; 8 var a = 42;
9 var b = foo(); 9 var b = foo();
10 return a + b; 10 return a + b;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 scriptId: scriptId, 85 scriptId: scriptId,
86 positions: positions 86 positions: positions
87 }).then(setIncorrectRanges.bind(null, scriptId)); 87 }).then(setIncorrectRanges.bind(null, scriptId));
88 } 88 }
89 89
90 function setMixedSourceRanges(scriptId) 90 function setMixedSourceRanges(scriptId)
91 { 91 {
92 Protocol.Debugger.onPaused(runAction); 92 Protocol.Debugger.onPaused(runAction);
93 Protocol.Debugger.setBlackboxedRanges({ 93 Protocol.Debugger.setBlackboxedRanges({
94 scriptId: scriptId, 94 scriptId: scriptId,
95 positions: [ { lineNumber: 8, columnNumber: 0 }, { lineNumber: 15, columnNum ber: 0 } ] // blackbox ranges for mixed.js 95 positions: [ { lineNumber: 6, columnNumber: 0 }, { lineNumber: 14, columnNum ber: 0 } ] // blackbox ranges for mixed.js
96 }).then(runAction); 96 }).then(runAction);
97 } 97 }
98 98
99 var actions = [ "stepOut", "print", "stepOut", "print", "stepOut", "print", 99 var actions = [ "stepOut", "print", "stepOut", "print", "stepOut", "print",
100 "stepInto", "print", "stepOver", "stepInto", "print", "stepOver", "stepInto" , "print", 100 "stepInto", "print", "stepOver", "stepInto", "print", "stepOver", "stepInto" , "print",
101 "stepOver", "stepInto", "print" ]; 101 "stepOver", "stepInto", "print" ];
102 102
103 function runAction(response) 103 function runAction(response)
104 { 104 {
105 var action = actions.shift(); 105 var action = actions.shift();
(...skipping 13 matching lines...) Expand all
119 119
120 function printCallFrames(callFrames) 120 function printCallFrames(callFrames)
121 { 121 {
122 var topCallFrame = callFrames[0]; 122 var topCallFrame = callFrames[0];
123 if (topCallFrame.functionName.startsWith("blackboxed")) 123 if (topCallFrame.functionName.startsWith("blackboxed"))
124 InspectorTest.log("FAIL: blackboxed function in top call frame"); 124 InspectorTest.log("FAIL: blackboxed function in top call frame");
125 for (var callFrame of callFrames) 125 for (var callFrame of callFrames)
126 InspectorTest.log(callFrame.functionName + ": " + callFrame.location.lineNum ber + ":" + callFrame.location.columnNumber); 126 InspectorTest.log(callFrame.functionName + ": " + callFrame.location.lineNum ber + ":" + callFrame.location.columnNumber);
127 InspectorTest.log(""); 127 InspectorTest.log("");
128 } 128 }
OLDNEW
« src/debug/debug.cc ('K') | « test/inspector/debugger/framework-break-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698