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 1126103006: Provide accessor for object internal properties that doesn't require debugger to be active (Closed)

Created:
5 years, 7 months ago by yurys
Modified:
5 years, 7 months ago
Reviewers:
kozy, Yang, pfeldman
CC:
v8-dev, Yang, Paweł Hajdan Jr., sergeyv
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Provide accessor for object internal properties that doesn't require debugger to be active Some of the DevTools' clients need to inspect JS objects without enabling debugger. This CL allows to inspect object's internal properties without enabling debugger and instantiating debug context. Note that now debug context can be created lazily if v8::Debug::GetDebugContext is called when there is no debug listener. This is fragile and has already resulted in some subtle error. I'm going to fix that in a separate CL. BUG=chromium:481845 LOG=Y Committed: https://crrev.com/bdeb0de88c8cf5f2c78f261b45314138f525110d Cr-Commit-Position: refs/heads/master@{#28362}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -60 lines) Patch
M include/v8-debug.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/api.cc View 2 chunks +13 lines, -10 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/mirror-debugger.js View 1 chunk +5 lines, -50 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 1 chunk +150 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
yurys
5 years, 7 months ago (2015-05-08 10:50:17 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126103006/1
5 years, 7 months ago (2015-05-08 10:50:33 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/2560)
5 years, 7 months ago (2015-05-08 10:53:53 UTC) #7
kozy
lgtm
5 years, 7 months ago (2015-05-08 12:36:33 UTC) #8
yurys
Yang, please take a look
5 years, 7 months ago (2015-05-08 13:24:03 UTC) #9
yurys
@yangguo, friendly ping?
5 years, 7 months ago (2015-05-12 06:06:57 UTC) #10
yurys
Blink-side change if you're curious.
5 years, 7 months ago (2015-05-12 09:59:13 UTC) #11
yurys
Blink-side change if you're curious: https://codereview.chromium.org/1141553003/
5 years, 7 months ago (2015-05-12 09:59:37 UTC) #12
Yang
https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc#newcode223 src/runtime/runtime-debug.cc:223: result->set(0, *factory->NewStringFromAsciiChecked("[[PromiseStatus]]")); FYI this allocates a lot of strings, ...
5 years, 7 months ago (2015-05-12 11:36:41 UTC) #13
yurys
https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc#newcode223 src/runtime/runtime-debug.cc:223: result->set(0, *factory->NewStringFromAsciiChecked("[[PromiseStatus]]")); On 2015/05/12 11:36:41, Yang wrote: > FYI ...
5 years, 7 months ago (2015-05-12 11:50:39 UTC) #14
Yang
lgtm if comment addressed. https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc#newcode248 src/runtime/runtime-debug.cc:248: if (!Runtime::GetInternalProperties(isolate, obj).ToHandle(&result)) { Please ...
5 years, 7 months ago (2015-05-12 11:53:04 UTC) #15
yurys
https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc#newcode248 src/runtime/runtime-debug.cc:248: if (!Runtime::GetInternalProperties(isolate, obj).ToHandle(&result)) { On 2015/05/12 11:53:04, Yang wrote: ...
5 years, 7 months ago (2015-05-12 12:07:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126103006/40001
5 years, 7 months ago (2015-05-12 12:08:04 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-12 12:38:22 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/bdeb0de88c8cf5f2c78f261b45314138f525110d Cr-Commit-Position: refs/heads/master@{#28362}
5 years, 7 months ago (2015-05-12 12:38:40 UTC) #21
Yang
5 years, 7 months ago (2015-05-12 13:03:32 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1133243002/ by yangguo@chromium.org.

The reason for reverting is: GC mole issues:
https://chromegw.corp.google.com/i/client.v8/builders/V8%20Linux%20-%20gcmole....

Powered by Google App Engine
This is Rietveld 408576698