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

Issue 2127583002: [runtime] Better encapsulation of dictionary objects handling in lookup iterator. (Closed)

Created:
4 years, 5 months ago by Igor Sheludko
Modified:
4 years, 5 months ago
Reviewers:
Toon Verwaest
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Better encapsulation of dictionary objects handling in lookup iterator. Now LookupIterator follows the same pattern of prepare transition, apply transition and write value when adding new properties to dictionary objects. JSGlobalObject case: * Prepare transition phase ensures that there is a "transition" property cell prepared for receiving a value. * Apply transition phase does nothing. * Prepare for data property phase ensures that the existing property cell can receive the value. * Write value phase writes value directly to the current property cell. JSObject case: * Prepare transition phase prepares the object for receiving a data value (which could switch an object to dictionary mode). * Apply transition phase migrates object to a transition map. If the map happened to be a dictionary mode object's map then an uninitialized entry added to the properties dictionary. * Prepare for data property phase does nothing. * Write value phase just puts value to the properties dictionary. BUG=chromium:576312 Committed: https://crrev.com/3fbb45216de0397a0213db67c7481c586d379b73 Cr-Commit-Position: refs/heads/master@{#37585}

Patch Set 1 #

Patch Set 2 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -184 lines) Patch
M src/ic/arm/handler-compiler-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/arm64/handler-compiler-arm64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/ia32/handler-compiler-ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/ic.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/ic/mips/handler-compiler-mips.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/mips64/handler-compiler-mips64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/ppc/handler-compiler-ppc.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/s390/handler-compiler-s390.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/x64/handler-compiler-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/x87/handler-compiler-x87.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/lookup.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/lookup.cc View 1 7 chunks +84 lines, -25 lines 0 comments Download
M src/objects.h View 1 5 chunks +16 lines, -22 lines 0 comments Download
M src/objects.cc View 1 15 chunks +67 lines, -120 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +40 lines, -0 lines 0 comments Download
M src/property-details.h View 1 3 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127583002/60001
4 years, 5 months ago (2016-07-05 13:53:06 UTC) #5
Igor Sheludko
PTAL
4 years, 5 months ago (2016-07-05 13:59:32 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_nosnap_shared_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_rel_ng/builds/4522) v8_win_nosnap_shared_rel_ng_triggered on ...
4 years, 5 months ago (2016-07-05 14:13:00 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127583002/120001
4 years, 5 months ago (2016-07-06 10:56:49 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 11:21:44 UTC) #16
Toon Verwaest
lgtm. I'm not sure you really need the hasProperty_ = true assignments, but it probably ...
4 years, 5 months ago (2016-07-07 11:10:31 UTC) #17
Igor Sheludko
On 2016/07/07 11:10:31, Toon Verwaest wrote: > lgtm. I'm not sure you really need the ...
4 years, 5 months ago (2016-07-07 11:54:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127583002/120001
4 years, 5 months ago (2016-07-07 11:55:09 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:120001)
4 years, 5 months ago (2016-07-07 12:32:20 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 12:32:23 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 12:35:15 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3fbb45216de0397a0213db67c7481c586d379b73
Cr-Commit-Position: refs/heads/master@{#37585}

Powered by Google App Engine
This is Rietveld 408576698