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

Side by Side Diff: src/inspector/debugger_script_externs.js

Issue 2415073003: [debug] [reland] Consistently use script from FrameMirror (Closed)
Patch Set: address comments and minor other fixes Created 4 years, 2 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
« no previous file with comments | « src/inspector/debugger-script.js ('k') | test/inspector/debugger/asm-js-stack.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** @typedef {{ 5 /** @typedef {{
6 type: string, 6 type: string,
7 object: !Object, 7 object: !Object,
8 name: (string|undefined), 8 name: (string|undefined),
9 startLocation: (!RawLocation|undefined), 9 startLocation: (!RawLocation|undefined),
10 endLocation: (!RawLocation|undefined) 10 endLocation: (!RawLocation|undefined)
(...skipping 26 matching lines...) Expand all
37 functionName: string, 37 functionName: string,
38 location: !RawLocation, 38 location: !RawLocation,
39 this: !Object, 39 this: !Object,
40 scopeChain: !Array<!Scope>, 40 scopeChain: !Array<!Scope>,
41 functionLocation: (RawLocation|undefined), 41 functionLocation: (RawLocation|undefined),
42 returnValue: (*|undefined) 42 returnValue: (*|undefined)
43 }} */ 43 }} */
44 var JavaScriptCallFrameDetails; 44 var JavaScriptCallFrameDetails;
45 45
46 /** @typedef {{ 46 /** @typedef {{
47 sourceID: function():(number|undefined), 47 sourceID: function():(number),
48 line: function():number, 48 line: function():number,
49 column: function():number, 49 column: function():number,
50 thisObject: !Object, 50 thisObject: !Object,
51 evaluate: function(string):*, 51 evaluate: function(string):*,
52 restart: function():undefined, 52 restart: function():undefined,
53 setVariableValue: function(number, string, *):undefined, 53 setVariableValue: function(number, string, *):undefined,
54 isAtReturn: boolean, 54 isAtReturn: boolean,
55 details: function():!JavaScriptCallFrameDetails 55 details: function():!JavaScriptCallFrameDetails
56 }} */ 56 }} */
57 var JavaScriptCallFrame; 57 var JavaScriptCallFrame;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 /** @interface */ 282 /** @interface */
283 function FrameDetails() {} 283 function FrameDetails() {}
284 284
285 /** @return {!Object} */ 285 /** @return {!Object} */
286 FrameDetails.prototype.receiver = function() {} 286 FrameDetails.prototype.receiver = function() {}
287 287
288 /** @return {function()} */ 288 /** @return {function()} */
289 FrameDetails.prototype.func = function() {} 289 FrameDetails.prototype.func = function() {}
290 290
291 /** @return {!Object} */
292 FrameDetails.prototype.script = function() {}
293
291 /** @return {boolean} */ 294 /** @return {boolean} */
292 FrameDetails.prototype.isAtReturn = function() {} 295 FrameDetails.prototype.isAtReturn = function() {}
293 296
294 /** @return {number} */ 297 /** @return {number} */
295 FrameDetails.prototype.sourcePosition = function() {} 298 FrameDetails.prototype.sourcePosition = function() {}
296 299
297 /** @return {*} */ 300 /** @return {*} */
298 FrameDetails.prototype.returnValue = function() {} 301 FrameDetails.prototype.returnValue = function() {}
299 302
300 /** @return {number} */ 303 /** @return {number} */
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 462
460 /** 463 /**
461 * @param {boolean=} ignoreNestedScopes 464 * @param {boolean=} ignoreNestedScopes
462 * @return {!Array<!ScopeMirror>} 465 * @return {!Array<!ScopeMirror>}
463 */ 466 */
464 FrameMirror.prototype.allScopes = function(ignoreNestedScopes) {} 467 FrameMirror.prototype.allScopes = function(ignoreNestedScopes) {}
465 468
466 /** @return {!FrameDetails} */ 469 /** @return {!FrameDetails} */
467 FrameMirror.prototype.details = function() {} 470 FrameMirror.prototype.details = function() {}
468 471
472 /** @return {!ScriptMirror} */
473 FrameMirror.prototype.script = function() {}
474
469 /** 475 /**
470 * @param {string} source 476 * @param {string} source
471 * @param {boolean} disableBreak 477 * @param {boolean} disableBreak
472 */ 478 */
473 FrameMirror.prototype.evaluate = function(source, disableBreak) {} 479 FrameMirror.prototype.evaluate = function(source, disableBreak) {}
474 480
475 FrameMirror.prototype.restart = function() {} 481 FrameMirror.prototype.restart = function() {}
476 482
477 /** @param {number} index */ 483 /** @param {number} index */
478 FrameMirror.prototype.scope = function(index) {} 484 FrameMirror.prototype.scope = function(index) {}
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 ScopeMirror.prototype.setVariableValue = function(name, newValue) {} 519 ScopeMirror.prototype.setVariableValue = function(name, newValue) {}
514 520
515 /** 521 /**
516 * @interface 522 * @interface
517 * @extends {Mirror} 523 * @extends {Mirror}
518 */ 524 */
519 function ContextMirror() {} 525 function ContextMirror() {}
520 526
521 /** @return {string|undefined} */ 527 /** @return {string|undefined} */
522 ContextMirror.prototype.data = function() {} 528 ContextMirror.prototype.data = function() {}
OLDNEW
« no previous file with comments | « src/inspector/debugger-script.js ('k') | test/inspector/debugger/asm-js-stack.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698