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

Issue 2784713002: [inspector] console get all information from inspector when needed (Closed)

Created:
3 years, 8 months ago by kozy
Modified:
3 years, 8 months ago
Reviewers:
dgozman
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] console get all information from inspector when needed With this CL we don't need to store reference to InspectedContext inside of JavaScript console object and able to get all required information from callback data. It allows us to implement console methods without taking in account how and where we create and store these methods: - later we can move console object implementation to builtins.. - ..and install command line API methods smarter. BUG=chromium:588893 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2784713002 Cr-Original-Original-Commit-Position: refs/heads/master@{#44212} Committed: https://chromium.googlesource.com/v8/v8/+/908cd38123df33ce293e4c8d25e407f7ca915f4c Review-Url: https://codereview.chromium.org/2784713002 Cr-Original-Commit-Position: refs/heads/master@{#44238} Committed: https://chromium.googlesource.com/v8/v8/+/88f71126a5c067f98c75044bc26778f2e8ea2e79 Review-Url: https://codereview.chromium.org/2784713002 Cr-Commit-Position: refs/heads/master@{#44251} Committed: https://chromium.googlesource.com/v8/v8/+/3ab262774a2825879c0363c4681510ec7b62c6e5

Patch Set 1 #

Patch Set 2 : better! #

Total comments: 2

Patch Set 3 : addressed comments #

Patch Set 4 : better test #

Patch Set 5 : more tests, fixed memory #

Patch Set 6 : fixed last test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1086 lines, -300 lines) Patch
M src/inspector/inspected-context.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/inspector/inspected-context.cc View 2 chunks +2 lines, -28 lines 0 comments Download
M src/inspector/v8-console.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/inspector/v8-console.cc View 1 2 3 4 5 16 chunks +120 lines, -230 lines 0 comments Download
M src/inspector/v8-console-message.h View 1 3 chunks +17 lines, -2 lines 0 comments Download
M src/inspector/v8-console-message.cc View 1 5 chunks +39 lines, -11 lines 0 comments Download
D test/inspector/console/memory-setter-in-strict-mode.js View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download
D test/inspector/console/memory-setter-in-strict-mode-expected.txt View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M test/inspector/inspector-impl.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M test/inspector/inspector-impl.cc View 1 2 3 4 3 chunks +19 lines, -4 lines 0 comments Download
M test/inspector/inspector-test.cc View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
M test/inspector/protocol-test.js View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A test/inspector/runtime/command-line-api.js View 1 chunk +175 lines, -0 lines 0 comments Download
A test/inspector/runtime/command-line-api-expected.txt View 1 2 3 1 chunk +612 lines, -0 lines 0 comments Download
A test/inspector/runtime/console-memory.js View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A test/inspector/runtime/console-memory-expected.txt View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (19 generated)
kozy
Dmitry, please take a look.
3 years, 8 months ago (2017-03-28 22:33:43 UTC) #1
kozy
Dmitry, please take another look.
3 years, 8 months ago (2017-03-28 23:28:56 UTC) #2
dgozman
Nice patch! lgtm https://codereview.chromium.org/2784713002/diff/20001/src/inspector/v8-console.cc File src/inspector/v8-console.cc (right): https://codereview.chromium.org/2784713002/diff/20001/src/inspector/v8-console.cc#newcode81 src/inspector/v8-console.cc:81: m_inspector->ensureConsoleMessageStorage(m_groupId)->addMessage( consoleMessageStorage()->addMessage(...)
3 years, 8 months ago (2017-03-28 23:53:57 UTC) #3
kozy
thanks! all done. https://codereview.chromium.org/2784713002/diff/20001/src/inspector/v8-console.cc File src/inspector/v8-console.cc (right): https://codereview.chromium.org/2784713002/diff/20001/src/inspector/v8-console.cc#newcode81 src/inspector/v8-console.cc:81: m_inspector->ensureConsoleMessageStorage(m_groupId)->addMessage( On 2017/03/28 23:53:57, dgozman wrote: ...
3 years, 8 months ago (2017-03-28 23:57:39 UTC) #4
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/2784713002/40001
3 years, 8 months ago (2017-03-28 23:57:53 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_nosnap_shared_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_rel_ng/builds/19850) v8_win_nosnap_shared_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 00:24:30 UTC) #9
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/2784713002/60001
3 years, 8 months ago (2017-03-29 00:52:24 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/908cd38123df33ce293e4c8d25e407f7ca915f4c
3 years, 8 months ago (2017-03-29 01:25:58 UTC) #15
Michael Achenbach
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2784603003/ by machenbach@chromium.org. ...
3 years, 8 months ago (2017-03-29 07:37:13 UTC) #16
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/2784713002/80001
3 years, 8 months ago (2017-03-29 15:23:56 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/v8/v8/+/88f71126a5c067f98c75044bc26778f2e8ea2e79
3 years, 8 months ago (2017-03-29 15:50:10 UTC) #25
kozy
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2778743007/ by kozyatinskiy@chromium.org. ...
3 years, 8 months ago (2017-03-29 19:42:34 UTC) #26
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/2784713002/100001
3 years, 8 months ago (2017-03-29 20:27:41 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 21:40:14 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/3ab262774a2825879c0363c4681510ec7b6...

Powered by Google App Engine
This is Rietveld 408576698