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

Issue 1033653002: Move prototype metadata from internal properties to prototype maps (Closed)

Created:
5 years, 9 months ago by Jakob Kummerow
Modified:
5 years, 8 months ago
Reviewers:
Toon Verwaest
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

Move prototype metadata from internal properties to prototype maps The motivation is that we prefer to avoid creating internal properties, and we have a usable field on maps ("transitions", which is not used for prototype maps). This CL also ensures the invariant that prototype maps are never shared, even if they are in dictionary mode. Committed: https://crrev.com/90cbede58882383173963809c90bf5514cc91648 Cr-Commit-Position: refs/heads/master@{#27617}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased #

Total comments: 8

Patch Set 3 : addressed comments #

Patch Set 4 : small fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -105 lines) Patch
M include/v8.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 chunks +17 lines, -8 lines 0 comments Download
M src/heap/heap.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/heap/objects-visiting-inl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/isolate.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 11 chunks +68 lines, -26 lines 0 comments Download
M src/objects.cc View 1 2 8 chunks +45 lines, -35 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 6 chunks +22 lines, -9 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 chunks +14 lines, -2 lines 0 comments Download
M src/transitions.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/fast-prototype.js View 3 chunks +4 lines, -14 lines 0 comments Download
M test/mjsunit/regress/regress-put-prototype-transition.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
Jakob Kummerow
Next step as discussed. PTAL. https://codereview.chromium.org/1033653002/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1033653002/diff/1/src/bootstrapper.cc#newcode836 src/bootstrapper.cc:836: js_global_object_function->initial_map()->set_is_prototype_map(true); This makes it ...
5 years, 9 months ago (2015-03-24 10:40:14 UTC) #2
Toon Verwaest
lgtm I think we don't need the backpointer in the PrototypeInfo though. Get rid of ...
5 years, 9 months ago (2015-03-26 16:15:33 UTC) #3
Jakob Kummerow
Addressed comments. Got rid of the prototype_object field in PrototypeInfo as well. PTAL. https://codereview.chromium.org/1033653002/diff/10016/src/factory.cc File ...
5 years, 8 months ago (2015-03-31 14:20:22 UTC) #4
Toon Verwaest
lgtm
5 years, 8 months ago (2015-04-07 09:09:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033653002/50001
5 years, 8 months ago (2015-04-07 10:20:03 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:50001)
5 years, 8 months ago (2015-04-07 10:42:54 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 10:43:06 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/90cbede58882383173963809c90bf5514cc91648
Cr-Commit-Position: refs/heads/master@{#27617}

Powered by Google App Engine
This is Rietveld 408576698