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

Issue 2685483002: [debugger] expose side-effect free evaluate to inspector. (Closed)

Created:
3 years, 10 months ago by Yang
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org, Michael Hablich
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] expose side-effect free evaluate to inspector. R=jgruber@chromium.org, kozyatinskiy@chromium.org BUG=v8:5821 Review-Url: https://codereview.chromium.org/2685483002 Cr-Original-Commit-Position: refs/heads/master@{#43049} Committed: https://chromium.googlesource.com/v8/v8/+/1a989bdeefdc679745215ae547007773edb3d29e Review-Url: https://codereview.chromium.org/2685483002 Cr-Commit-Position: refs/heads/master@{#43114} Committed: https://chromium.googlesource.com/v8/v8/+/588ed4b3c465cff59197436a375aeb8cbe8c39c4

Patch Set 1 #

Total comments: 1

Patch Set 2 : addressed comments. #

Patch Set 3 : tag as experimental #

Total comments: 1

Patch Set 4 : add inspector test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -40 lines) Patch
M src/debug/debug-evaluate.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/debug/debug-evaluate.cc View 1 2 3 4 chunks +9 lines, -7 lines 0 comments Download
M src/debug/mirrors.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/inspector/debugger-script.js View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/inspector/debugger_script_externs.js View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M src/inspector/java-script-call-frame.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/inspector/java-script-call-frame.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/inspector/js_protocol.json View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-agent-impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M test/debugger/debug/debug-evaluate-no-side-effect.js View 1 2 chunks +5 lines, -3 lines 0 comments Download
M test/debugger/debug/debug-evaluate-no-side-effect-builtins.js View 1 2 chunks +5 lines, -3 lines 0 comments Download
M test/debugger/debug/debug-evaluate-no-side-effect-control.js View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M test/debugger/test-api.js View 1 2 chunks +5 lines, -3 lines 0 comments Download
A test/inspector/debugger/side-effect-free-debug-evaluate.js View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A test/inspector/debugger/side-effect-free-debug-evaluate-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (23 generated)
Yang
3 years, 10 months ago (2017-02-07 07:45:16 UTC) #1
jgruber
lgtm, nice!
3 years, 10 months ago (2017-02-07 08:12:19 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2685483002/1
3 years, 10 months ago (2017-02-07 08:14:37 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/34125)
3 years, 10 months ago (2017-02-07 08:17:27 UTC) #6
Yang
On 2017/02/07 08:17:27, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 10 months ago (2017-02-07 14:26:20 UTC) #7
kozy
On 2017/02/07 14:26:20, Yang wrote: > On 2017/02/07 08:17:27, commit-bot: I haz the power wrote: ...
3 years, 10 months ago (2017-02-07 19:17:41 UTC) #8
kozy
+@pfeldman. Pavel, please take a look at js_protocol.json change.
3 years, 10 months ago (2017-02-07 19:18:46 UTC) #10
Yang
On 2017/02/07 19:18:46, kozy wrote: > +@pfeldman. > Pavel, please take a look at js_protocol.json ...
3 years, 10 months ago (2017-02-07 19:21:53 UTC) #11
pfeldman
https://codereview.chromium.org/2685483002/diff/1/src/inspector/js_protocol.json File src/inspector/js_protocol.json (right): https://codereview.chromium.org/2685483002/diff/1/src/inspector/js_protocol.json#newcode636 src/inspector/js_protocol.json:636: { "name": "allowSideEffect", "type": "boolean", "optional": true, "description": "If ...
3 years, 10 months ago (2017-02-07 23:11:26 UTC) #12
Yang
On 2017/02/07 23:11:26, pfeldman wrote: > https://codereview.chromium.org/2685483002/diff/1/src/inspector/js_protocol.json > File src/inspector/js_protocol.json (right): > > https://codereview.chromium.org/2685483002/diff/1/src/inspector/js_protocol.json#newcode636 > ...
3 years, 10 months ago (2017-02-08 08:28:40 UTC) #17
pfeldman
https://codereview.chromium.org/2685483002/diff/40001/src/inspector/js_protocol.json File src/inspector/js_protocol.json (right): https://codereview.chromium.org/2685483002/diff/40001/src/inspector/js_protocol.json#newcode639 src/inspector/js_protocol.json:639: { "name": "throwOnSideEffect", "type": "boolean", "optional": true, "experimental": true, ...
3 years, 10 months ago (2017-02-08 18:31:45 UTC) #20
Yang
On 2017/02/08 18:31:45, pfeldman wrote: > https://codereview.chromium.org/2685483002/diff/40001/src/inspector/js_protocol.json > File src/inspector/js_protocol.json (right): > > https://codereview.chromium.org/2685483002/diff/40001/src/inspector/js_protocol.json#newcode639 > ...
3 years, 10 months ago (2017-02-08 19:03:55 UTC) #21
Yang
On 2017/02/08 19:03:55, Yang wrote: > On 2017/02/08 18:31:45, pfeldman wrote: > > > https://codereview.chromium.org/2685483002/diff/40001/src/inspector/js_protocol.json ...
3 years, 10 months ago (2017-02-08 19:04:57 UTC) #22
pfeldman
> > Side-effect is anything that can be observed, i.e. changes to any global > ...
3 years, 10 months ago (2017-02-08 19:13:10 UTC) #23
Yang
On 2017/02/08 19:13:10, pfeldman wrote: > > > Side-effect is anything that can be observed, ...
3 years, 10 months ago (2017-02-08 19:24:37 UTC) #24
pfeldman
> The cloud debugger needs a way to sample expression values at runtime without > ...
3 years, 10 months ago (2017-02-08 19:31:22 UTC) #25
pfeldman
> To make sure I understand, cloud debugger is interested in sampling expression > at ...
3 years, 10 months ago (2017-02-08 19:34:13 UTC) #26
Yang
On 2017/02/08 19:34:13, pfeldman wrote: > > To make sure I understand, cloud debugger is ...
3 years, 10 months ago (2017-02-08 19:35:32 UTC) #27
pfeldman
protocol lgtm. Longer term questions: 1) could we get this for simple evaluate? 2) if ...
3 years, 10 months ago (2017-02-08 19:44:51 UTC) #28
Yang
On 2017/02/08 19:44:51, pfeldman wrote: > protocol lgtm. > > Longer term questions: 1) could ...
3 years, 10 months ago (2017-02-08 19:58:12 UTC) #29
pfeldman
> 1) by simple evaluate, do you mean Runtime.evaluate? Yes. > Adding it to the ...
3 years, 10 months ago (2017-02-08 21:30:43 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2685483002/40001
3 years, 10 months ago (2017-02-09 06:41:56 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/1a989bdeefdc679745215ae547007773edb3d29e
3 years, 10 months ago (2017-02-09 06:43:42 UTC) #36
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2687013003/ by machenbach@chromium.org. ...
3 years, 10 months ago (2017-02-09 11:49:16 UTC) #37
Yang
On 2017/02/09 11:49:16, Michael Achenbach wrote: > A revert of this CL (patchset #3 id:40001) ...
3 years, 10 months ago (2017-02-09 12:27:38 UTC) #39
pfeldman
> Seems like the change to js_protocol.json makes it incompatible with > DebuggerModel.js. > Alexey ...
3 years, 10 months ago (2017-02-09 16:23:40 UTC) #40
pfeldman
What you can do in the meanwhile is replace this: this.debuggerModel._agent.evaluateOnCallFrame( this._payload.callFrameId, code, objectGroup, includeCommandLineAPI, ...
3 years, 10 months ago (2017-02-10 01:01:19 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2685483002/60001
3 years, 10 months ago (2017-02-10 17:04:24 UTC) #49
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 17:06:29 UTC) #52
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/588ed4b3c465cff59197436a375aeb8cbe8...

Powered by Google App Engine
This is Rietveld 408576698