| Index: third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js b/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| index ae2d36e0763e63ae3b2d156241c54de5ff7ee704..9e9fe0037d53f8726707adbcac11d8598c014b01 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| @@ -274,41 +274,14 @@ DebuggerScript.setPauseOnExceptionsState = function(newState)
|
|
|
| /**
|
| * @param {!ExecutionState} execState
|
| - * @return {number}
|
| - */
|
| -DebuggerScript.frameCount = function(execState)
|
| -{
|
| - return execState.frameCount();
|
| -}
|
| -
|
| -/**
|
| - * @param {!ExecutionState} execState
|
| - * @return {!JavaScriptCallFrame|undefined}
|
| - */
|
| -DebuggerScript.currentCallFrame = function(execState)
|
| -{
|
| - var frameCount = execState.frameCount();
|
| - var topFrame = undefined;
|
| - for (var i = frameCount - 1; i >= 0; i--) {
|
| - var frameMirror = execState.frame(i);
|
| - topFrame = DebuggerScript._frameMirrorToJSCallFrame(frameMirror, topFrame);
|
| - }
|
| - return topFrame;
|
| -}
|
| -
|
| -/**
|
| - * @param {!ExecutionState} execState
|
| - * @param {number} index
|
| - * @return {!JavaScriptCallFrame|undefined}
|
| + * @return {!Array<!JavaScriptCallFrame>}
|
| */
|
| -DebuggerScript.currentCallFrameByIndex = function(execState, index)
|
| +DebuggerScript.currentCallFrames = function(execState)
|
| {
|
| - if (index < 0)
|
| - return undefined;
|
| - var frameCount = execState.frameCount();
|
| - if (index >= frameCount)
|
| - return undefined;
|
| - return DebuggerScript._frameMirrorToJSCallFrame(execState.frame(index), undefined);
|
| + var frames = [];
|
| + for (var i = 0; i < execState.frameCount(); ++i)
|
| + frames.push(DebuggerScript._frameMirrorToJSCallFrame(execState.frame(i)));
|
| + return frames;
|
| }
|
|
|
| /**
|
| @@ -427,10 +400,9 @@ DebuggerScript.getBreakpointNumbers = function(eventData)
|
| // asynchronous call stacks. Thus, when possible, initialize the data lazily.
|
| /**
|
| * @param {!FrameMirror} frameMirror
|
| - * @param {!JavaScriptCallFrame|undefined} callerFrame
|
| * @return {!JavaScriptCallFrame}
|
| */
|
| -DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror, callerFrame)
|
| +DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
|
| {
|
| // Stuff that can not be initialized lazily (i.e. valid while paused with a valid break_id).
|
| // The frameMirror and scopeMirror can be accessed only while paused on the debugger.
|
| @@ -674,7 +646,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror, callerFrame)
|
| "contextId": contextId,
|
| "thisObject": thisObject,
|
| "evaluate": evaluate,
|
| - "caller": callerFrame,
|
| "restart": restart,
|
| "setVariableValue": setVariableValue,
|
| "isAtReturn": isAtReturn,
|
|
|