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

Issue 1136733002: Don't create debug context if debug listener is not set (Closed)

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

Description

Don't create debug context if debug listener is not set If there had been no debug listener v8::Debug::GetDebugContext would have created new context and wouln't have kept reference to it. This way we may well end up with several debug contexts and disabled debugger. As a side effect this change allows to efficiently distinguish debug context from blink contexts by simply comparing handles. BUG=chromium:482290 LOG=Y Committed: https://crrev.com/cf07add2272fee6e2ee8c99da087aa50ff654eff Cr-Commit-Position: refs/heads/master@{#28356}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M include/v8-debug.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-3960.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136733002/1
5 years, 7 months ago (2015-05-08 14:12:02 UTC) #2
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/2571)
5 years, 7 months ago (2015-05-08 14:22:02 UTC) #5
Yang
lgtm if test fixed. https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js File test/mjsunit/regress/regress-3960.js (right): https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js#newcode5 test/mjsunit/regress/regress-3960.js:5: // Flags: --allow-natives-syntax --expose-debug-as debug ...
5 years, 7 months ago (2015-05-11 06:44:19 UTC) #6
yurys
https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js File test/mjsunit/regress/regress-3960.js (right): https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js#newcode5 test/mjsunit/regress/regress-3960.js:5: // Flags: --allow-natives-syntax --expose-debug-as debug On 2015/05/11 06:44:19, Yang ...
5 years, 7 months ago (2015-05-12 06:46:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136733002/20001
5 years, 7 months ago (2015-05-12 06:47:35 UTC) #10
Yang
On 2015/05/12 06:46:59, yurys wrote: > https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js > File test/mjsunit/regress/regress-3960.js (right): > > https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js#newcode5 > ...
5 years, 7 months ago (2015-05-12 06:53:19 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-12 07:33:28 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 07:33:36 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cf07add2272fee6e2ee8c99da087aa50ff654eff
Cr-Commit-Position: refs/heads/master@{#28356}

Powered by Google App Engine
This is Rietveld 408576698