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

Issue 886473005: Add WeakMap to v8.h (Closed)

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

Description

Add WeakMap to v8.h A new map wich references its keys weakly is added to v8.h. Internally it uses the same storage as JSWeakMap but doesn't depend on the JavaScript part of WeakMap implementation in weak-collection.js, hence it can be instantiated without entering any context. BUG=chromium:437416 LOG=Y Committed: https://crrev.com/37d4c57630636f21e3add8d3d1c7c978ff5fc8e0 Cr-Commit-Position: refs/heads/master@{#26401}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review comments #

Patch Set 3 : Fixed compilation errors #

Patch Set 4 : Renamed WeakMap to WeakKeyMap #

Patch Set 5 : Moved constructor&destructor to api.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -35 lines) Patch
M include/v8.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
M src/factory.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/runtime/runtime-collections.cc View 6 chunks +37 lines, -21 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 2 chunks +73 lines, -0 lines 0 comments Download
M test/cctest/test-weakmaps.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M test/cctest/test-weaksets.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
yurys
5 years, 10 months ago (2015-01-28 17:40:40 UTC) #2
jochen (gone - plz use gerrit)
generally looks good. Add mstarzinger@ as weakmap expert
5 years, 10 months ago (2015-01-28 18:59:21 UTC) #4
yurys
5 years, 10 months ago (2015-01-30 08:12:07 UTC) #6
yurys
Michael, can you take a look?
5 years, 10 months ago (2015-02-02 10:40:33 UTC) #7
Michael Starzinger
LGTM, just nits. Sorry for delay, this somehow dropped off my radar. https://codereview.chromium.org/886473005/diff/1/include/v8.h File include/v8.h ...
5 years, 10 months ago (2015-02-03 13:21:55 UTC) #8
yurys
https://codereview.chromium.org/886473005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/886473005/diff/1/include/v8.h#newcode1533 include/v8.h:1533: * can be created without entering a v8::Context. On ...
5 years, 10 months ago (2015-02-03 13:39:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886473005/20001
5 years, 10 months ago (2015-02-03 13:39:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel on tryserver.v8 (http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel/builds/2615)
5 years, 10 months ago (2015-02-03 13:44:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886473005/40001
5 years, 10 months ago (2015-02-03 14:03:45 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-03 14:28:10 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/37d4c57630636f21e3add8d3d1c7c978ff5fc8e0 Cr-Commit-Position: refs/heads/master@{#26401}
5 years, 10 months ago (2015-02-03 14:28:31 UTC) #17
vogelheim
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/875113004/ by vogelheim@chromium.org. ...
5 years, 10 months ago (2015-02-03 14:41:25 UTC) #18
yurys
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/898763002/ by yurys@chromium.org. ...
5 years, 10 months ago (2015-02-03 14:41:29 UTC) #19
rossberg
NOT LGTM. Please do not clobber the name of ES6's official WeakMap class (which we ...
5 years, 10 months ago (2015-02-03 17:09:21 UTC) #21
yurys
5 years, 10 months ago (2015-02-04 07:24:51 UTC) #22
Message was sent while issue was closed.
On 2015/02/03 17:09:21, rossberg wrote:
> NOT LGTM. Please do not clobber the name of ES6's official WeakMap class
(which
> we will want to expose to the API eventually) for something different. That
> would be highly confusing.

Any recommendations on the name? Would it be OK to call it WeakKeyMap?

Powered by Google App Engine
This is Rietveld 408576698