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

Issue 3143032: We can use the array trim trick in old paged space as well as (Closed)

Created:
10 years, 4 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

We can use the array trim trick in old paged space as well as new space. Committed: http://code.google.com/p/v8/source/detail?r=5311

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M src/builtins.cc View 1 2 3 5 chunks +17 lines, -10 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Erik Corry
10 years, 4 months ago (2010-08-19 23:31:19 UTC) #1
Vitaly Repeshko
Drive by observation. -- Vitaly http://codereview.chromium.org/3143032/diff/1/2 File src/builtins.cc (right): http://codereview.chromium.org/3143032/diff/1/2#newcode332 src/builtins.cc:332: return elms + to_trim ...
10 years, 4 months ago (2010-08-20 00:06:46 UTC) #2
Erik Corry
http://codereview.chromium.org/3143032/diff/1/2 File src/builtins.cc (right): http://codereview.chromium.org/3143032/diff/1/2#newcode332 src/builtins.cc:332: return elms + to_trim * kPointerSize; On 2010/08/20 00:06:46, ...
10 years, 4 months ago (2010-08-20 07:57:59 UTC) #3
Vyacheslav Egorov (Chromium)
LGTM http://codereview.chromium.org/3143032/diff/1/2 File src/builtins.cc (right): http://codereview.chromium.org/3143032/diff/1/2#newcode332 src/builtins.cc:332: return elms + to_trim * kPointerSize; There is ...
10 years, 4 months ago (2010-08-20 08:01:42 UTC) #4
Erik Corry
http://codereview.chromium.org/3143032/diff/1/2 File src/builtins.cc (right): http://codereview.chromium.org/3143032/diff/1/2#newcode725 src/builtins.cc:725: const bool trim_array = Heap::new_space()->Contains(elms) && On 2010/08/20 08:01:42, ...
10 years, 4 months ago (2010-08-20 10:04:21 UTC) #5
antonm
http://codereview.chromium.org/3143032/diff/10001/11001 File src/builtins.cc (right): http://codereview.chromium.org/3143032/diff/10001/11001#newcode324 src/builtins.cc:324: } forgotten zapping?
10 years, 4 months ago (2010-08-20 11:25:46 UTC) #6
antonm
10 years, 4 months ago (2010-08-20 11:50:30 UTC) #7
LGTM

http://codereview.chromium.org/3143032/diff/14001/2002
File src/builtins.cc (right):

http://codereview.chromium.org/3143032/diff/14001/2002#newcode328
src/builtins.cc:328: for (int i = 0; i < to_trim; i++) {
you may save one store here as elms->address() would be overwritten with filler
map in next store.  And actually more as you could skip the whole header, but it
might be too subtle to reason about.

Powered by Google App Engine
This is Rietveld 408576698