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

Issue 1276353004: Fasterify JSObject::UnregisterPrototypeUser (Closed)

Created:
5 years, 4 months ago by Jakob Kummerow
Modified:
5 years, 4 months ago
Reviewers:
Yang
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fasterify JSObject::UnregisterPrototypeUser When a (prototype) map registers as a user of its own prototype, it now remembers the index in that prototype's registry where it is listed. This remembered index is used on un-registration to find the right slot to clear without walking the entire registry. Compaction of the registry must update all entries' remembered indices. BUG=chromium:517778, chromium:517406 LOG=n R=yangguo@chromium.org Committed: https://crrev.com/1e65e201894791c3bf8473728021f0e548a0543b Cr-Commit-Position: refs/heads/master@{#30079}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Patch Set 3 : fix compaction<->serialization interaction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -127 lines) Patch
M src/factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 5 chunks +28 lines, -12 lines 0 comments Download
M src/objects.cc View 1 11 chunks +124 lines, -112 lines 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/snapshot/serialize.cc View 1 2 2 chunks +19 lines, -2 lines 0 comments Download
M test/cctest/test-heap.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (6 generated)
Jakob Kummerow
5 years, 4 months ago (2015-08-07 19:27:20 UTC) #1
Yang
lgtm with comments. https://codereview.chromium.org/1276353004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1276353004/diff/1/src/objects.cc#newcode7971 src/objects.cc:7971: if (WeakCell::cast(element)->cleared()) continue; Can we assert ...
5 years, 4 months ago (2015-08-07 21:37:24 UTC) #2
Jakob Kummerow
Thanks for the comments. I've templatized the compaction method. CQ it if you like it; ...
5 years, 4 months ago (2015-08-08 12:39:32 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/1276353004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276353004/20001
5 years, 4 months ago (2015-08-08 12:40:35 UTC) #5
Yang
On 2015/08/08 12:40:35, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 4 months ago (2015-08-08 13:08:00 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel/builds/8473)
5 years, 4 months ago (2015-08-08 13:10:08 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276353004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276353004/40001
5 years, 4 months ago (2015-08-08 18:59:02 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-08 19:28:56 UTC) #12
Jakob Kummerow
Yang, I needed a workaround in the serializer to make sure remembered-slot-updating on compaction doesn't ...
5 years, 4 months ago (2015-08-08 20:59:45 UTC) #13
Yang
On 2015/08/08 20:59:45, Jakob wrote: > Yang, I needed a workaround in the serializer to ...
5 years, 4 months ago (2015-08-08 21:48:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276353004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276353004/40001
5 years, 4 months ago (2015-08-08 22:54:52 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-08 22:56:22 UTC) #18
commit-bot: I haz the power
5 years, 4 months ago (2015-08-08 22:56:41 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1e65e201894791c3bf8473728021f0e548a0543b
Cr-Commit-Position: refs/heads/master@{#30079}

Powered by Google App Engine
This is Rietveld 408576698