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

Issue 779173010: Create optimized inline versions of Map and Set initialization (Closed)

Created:
6 years ago by adamk
Modified:
6 years ago
CC:
v8-dev, rossberg, arv (Not doing code reviews)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Create optimized inline versions of Map and Set initialization

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add no side effects scope #

Patch Set 3 : Fixed initialization #

Patch Set 4 : Unroll data table initialization loop #

Patch Set 5 : Move no-side-effects scope up one level #

Total comments: 4

Patch Set 6 : Switch to StoreNamedField, shorten constant names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -6 lines) Patch
M src/collection.js View 2 chunks +2 lines, -2 lines 0 comments Download
M src/factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
adamk
https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc#newcode12660 src/hydrogen.cc:12660: Add<HAllocate>(size, HType::HeapObject(), NOT_TENURED, FIXED_ARRAY_TYPE); One question about HAllocate: do ...
6 years ago (2014-12-08 21:41:14 UTC) #2
Dmitry Lomov (no reviews)
https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc#newcode12660 src/hydrogen.cc:12660: Add<HAllocate>(size, HType::HeapObject(), NOT_TENURED, FIXED_ARRAY_TYPE); On 2014/12/08 21:41:14, adamk wrote: ...
6 years ago (2014-12-09 12:05:40 UTC) #3
adamk
https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc#newcode12660 src/hydrogen.cc:12660: Add<HAllocate>(size, HType::HeapObject(), NOT_TENURED, FIXED_ARRAY_TYPE); On 2014/12/09 12:05:39, Dmitry Lomov ...
6 years ago (2014-12-09 19:24:23 UTC) #4
Dmitry Lomov (no reviews)
On 2014/12/09 19:24:23, adamk wrote: > https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc > File src/hydrogen.cc (right): > > https://codereview.chromium.org/779173010/diff/1/src/hydrogen.cc#newcode12660 > ...
6 years ago (2014-12-09 20:06:57 UTC) #5
adamk
Unrolled in latest patch.
6 years ago (2014-12-09 20:25:20 UTC) #6
Dmitry Lomov (no reviews)
lgtm % comment https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc#newcode12693 src/hydrogen.cc:12693: Add<HStoreKeyed>(table, Add<HConstant>(i), not_found, FAST_ELEMENTS); This should ...
6 years ago (2014-12-09 20:48:52 UTC) #7
adamk
https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc#newcode12693 src/hydrogen.cc:12693: Add<HStoreKeyed>(table, Add<HConstant>(i), not_found, FAST_ELEMENTS); On 2014/12/09 20:48:51, Dmitry Lomov ...
6 years ago (2014-12-09 21:16:59 UTC) #8
Dmitry Lomov (no reviews)
https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/779173010/diff/80001/src/hydrogen.cc#newcode12693 src/hydrogen.cc:12693: Add<HStoreKeyed>(table, Add<HConstant>(i), not_found, FAST_ELEMENTS); On 2014/12/09 21:16:59, adamk wrote: ...
6 years ago (2014-12-09 21:31:56 UTC) #9
adamk
Done, switched to StoreNamedField and in the process shortened some of my constant names to ...
6 years ago (2014-12-09 21:45:27 UTC) #10
Dmitry Lomov (no reviews)
still lgtm
6 years ago (2014-12-09 21:50:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779173010/100001
6 years ago (2014-12-10 18:21:07 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-10 18:47:30 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001)

Powered by Google App Engine
This is Rietveld 408576698