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

Issue 136333007: DevTools: Implement evaluation on async call frames. (Closed)

Created:
6 years, 11 months ago by aandrey
Modified:
6 years, 11 months ago
Reviewers:
yurys
CC:
blink-reviews, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, kojih, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, Nate Chapin, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, Inactive, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

DevTools: Implement evaluation on async call frames. We emulate evaluation on an async call frame by doing evaluation on the global object with an extended context derived from the async call frame scope chain. BUG=272416 R=yurys Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165738

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressed #

Patch Set 3 : addressed #

Patch Set 4 : less diff #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : addressed #

Patch Set 7 : re-upload #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -58 lines) Patch
M LayoutTests/inspector/console/console-format-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-eval.html View 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/inspector/debugger/async-callstack-eval-expected.txt View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/bindings/v8/ScriptFunctionCall.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/ScriptFunctionCall.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/inspector/InjectedScript.h View 1 3 chunks +32 lines, -28 lines 0 comments Download
M Source/core/inspector/InjectedScript.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 2 3 4 5 6 7 13 chunks +70 lines, -24 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 3 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
aandrey
6 years, 11 months ago (2014-01-17 15:16:46 UTC) #1
aandrey
ping
6 years, 11 months ago (2014-01-21 09:45:44 UTC) #2
yurys
https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScript.h File Source/core/inspector/InjectedScript.h (right): https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScript.h#newcode69 Source/core/inspector/InjectedScript.h:69: void evaluateOnCallFrame(ErrorString*, const ScriptValue& callFrames, const Vector<ScriptValue>& asyncCallStacks, const ...
6 years, 11 months ago (2014-01-21 11:56:52 UTC) #3
aandrey
PTAL https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScript.h File Source/core/inspector/InjectedScript.h (right): https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScript.h#newcode69 Source/core/inspector/InjectedScript.h:69: void evaluateOnCallFrame(ErrorString*, const ScriptValue& callFrames, const Vector<ScriptValue>& asyncCallStacks, ...
6 years, 11 months ago (2014-01-21 13:30:21 UTC) #4
yurys
https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/136333007/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode664 Source/core/inspector/InjectedScriptSource.js:664: return this._evaluateAndWrap(topCallFrame.evaluateGlobal, topCallFrame, expression, objectGroup, true, injectCommandLineAPI, returnByValue, generatePreview, ...
6 years, 11 months ago (2014-01-21 13:54:43 UTC) #5
aandrey
Removed evaluateGlobal, using with(...) {} approach. PTAL.
6 years, 11 months ago (2014-01-22 11:04:34 UTC) #6
yurys
https://codereview.chromium.org/136333007/diff/180001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/136333007/diff/180001/Source/core/inspector/InjectedScriptSource.js#newcode640 Source/core/inspector/InjectedScriptSource.js:640: inspectedWindow._scopeChainForEval = scopeChain; Please put this into inspectedWindow.console._scopeChainForEval instead.
6 years, 11 months ago (2014-01-23 15:32:26 UTC) #7
aandrey
https://codereview.chromium.org/136333007/diff/180001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/136333007/diff/180001/Source/core/inspector/InjectedScriptSource.js#newcode640 Source/core/inspector/InjectedScriptSource.js:640: inspectedWindow._scopeChainForEval = scopeChain; On 2014/01/23 15:32:26, yurys wrote: > ...
6 years, 11 months ago (2014-01-23 15:40:42 UTC) #8
aandrey
Re-uploaded
6 years, 11 months ago (2014-01-24 05:40:58 UTC) #9
yurys
lgtm
6 years, 11 months ago (2014-01-24 08:01:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/136333007/290001
6 years, 11 months ago (2014-01-24 08:03:35 UTC) #11
commit-bot: I haz the power
Failed to apply patch for LayoutTests/inspector/console/console-format-expected.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-24 08:03:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/136333007/350001
6 years, 11 months ago (2014-01-24 10:31:14 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 13:31:59 UTC) #14
Message was sent while issue was closed.
Change committed as 165738

Powered by Google App Engine
This is Rietveld 408576698