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

Issue 649563006: Introduce phantom weak handles in the API and use them internally for debug info (Closed)

Created:
6 years, 2 months ago by Erik Corry Chromium.org
Modified:
6 years, 1 month ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Introduce phantom weak handles in the API and use them internally for debug info R=jochen@chromium.org, ulan@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=24899

Patch Set 1 #

Total comments: 4

Patch Set 2 : Actually make available through the API and fix scavenge #

Total comments: 9

Patch Set 3 : Don't pass the dead, zapped global handle to the callback #

Patch Set 4 : Improve test and put back HandleScope for phantom callback #

Patch Set 5 : Remove unused variable #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -69 lines) Patch
M include/v8.h View 1 2 3 4 5 6 4 chunks +38 lines, -7 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/debug.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/debug.cc View 1 2 3 4 5 9 chunks +24 lines, -21 lines 0 comments Download
M src/global-handles.h View 1 1 chunk +16 lines, -7 lines 0 comments Download
M src/global-handles.cc View 1 2 3 8 chunks +55 lines, -19 lines 0 comments Download
M src/globals.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 2 chunks +40 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Erik Corry Chromium.org
6 years, 2 months ago (2014-10-17 14:37:37 UTC) #1
jochen (gone - plz use gerrit)
can we change it such that the phantom callback does not have to clear the ...
6 years, 2 months ago (2014-10-20 13:51:14 UTC) #4
Erik Corry
I'll make the change so it does not need to be cleared. https://codereview.chromium.org/649563006/diff/1/src/compiler.cc File src/compiler.cc ...
6 years, 2 months ago (2014-10-20 13:56:37 UTC) #6
jochen (gone - plz use gerrit)
if it compiles on windows, i'm fine with the zap value. ideally, the comment fixes ...
6 years, 2 months ago (2014-10-20 13:58:20 UTC) #7
ulan
https://codereview.chromium.org/649563006/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/649563006/diff/20001/include/v8.h#newcode520 include/v8.h:520: V8_INLINE void SetPhantom(P* parameter, Shouldn't phantom reference be in ...
6 years, 2 months ago (2014-10-20 14:03:11 UTC) #8
jochen (gone - plz use gerrit)
https://codereview.chromium.org/649563006/diff/20001/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/649563006/diff/20001/src/global-handles.cc#newcode256 src/global-handles.cc:256: DCHECK(*handle == Smi::FromInt(kPhantomReferenceZap)); should we set handle to a ...
6 years, 2 months ago (2014-10-20 14:11:46 UTC) #9
Erik Corry
https://codereview.chromium.org/649563006/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/649563006/diff/20001/include/v8.h#newcode520 include/v8.h:520: V8_INLINE void SetPhantom(P* parameter, On 2014/10/20 14:03:10, ulan wrote: ...
6 years, 2 months ago (2014-10-20 14:25:32 UTC) #10
ulan
https://codereview.chromium.org/649563006/diff/20001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/649563006/diff/20001/test/cctest/test-api.cc#newcode7492 test/cctest/test-api.cc:7492: Could you please also test we don't mark through ...
6 years, 2 months ago (2014-10-20 14:26:02 UTC) #11
jochen (gone - plz use gerrit)
https://codereview.chromium.org/649563006/diff/20001/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/649563006/diff/20001/src/global-handles.cc#newcode256 src/global-handles.cc:256: DCHECK(*handle == Smi::FromInt(kPhantomReferenceZap)); On 2014/10/20 at 14:25:32, Erik Corry ...
6 years, 2 months ago (2014-10-20 14:29:04 UTC) #12
Erik Corry
https://codereview.chromium.org/649563006/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/649563006/diff/20001/include/v8.h#newcode520 include/v8.h:520: V8_INLINE void SetPhantom(P* parameter, I'll revise my answer to ...
6 years, 2 months ago (2014-10-22 13:21:01 UTC) #13
jochen (gone - plz use gerrit)
i like it. should we document that there won't be a handle scope for phantom ...
6 years, 2 months ago (2014-10-22 13:54:11 UTC) #14
Erik Corry
I think I'll just add the handle scope instead.
6 years, 2 months ago (2014-10-22 16:15:04 UTC) #15
Erik Corry
PTAL
6 years, 2 months ago (2014-10-23 10:18:12 UTC) #16
jochen (gone - plz use gerrit)
lgtm, thanks!
6 years, 2 months ago (2014-10-23 13:44:17 UTC) #17
ulan
lgtm
6 years, 2 months ago (2014-10-23 13:48:01 UTC) #18
Erik Corry Chromium.org
6 years, 1 month ago (2014-10-27 11:04:45 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 24899 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698