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

Issue 23441080: Correct large packed array length limitation (Closed)

Created:
7 years, 3 months ago by weiliang.lin2
Modified:
6 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Correct large packed array length limitation The length of packed array could be up to kInitialMaxFastElementArray instead of (kInitialMaxFastElementArray -1) BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : make consistent change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M src/code-stubs-hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/elements.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/allocation-site-info.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/array-constructor-feedback.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/array-feedback.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
weiliang.lin2
7 years, 3 months ago (2013-09-22 08:25:55 UTC) #1
Jakob Kummerow
I don't see what problem this CL is solving. AFAICS, kInitialMaxFastElementArray is consistently used as ...
7 years, 3 months ago (2013-09-23 16:53:29 UTC) #2
weiliang.lin2
On 2013/09/23 16:53:29, Jakob wrote: > I don't see what problem this CL is solving. ...
7 years, 3 months ago (2013-09-24 02:22:17 UTC) #3
Jakob Kummerow
7 years, 3 months ago (2013-09-24 08:31:32 UTC) #4
On 2013/09/24 02:22:17, weiliang.lin2 wrote:
> Why I submitted this change is misc-basic-array micro in
> http://www.arewefastyet.com/.

That's the trouble with microbenchmarks: they tend to make VM implementers waste
time on useless changes. I realize that since that benchmark misses our
heuristic by 1 it's tempting to just bump up the limit; but doing so does not
make V8 a better engine, so I think a better approach is to disregard the
benchmark -- it is meaningless. Let's focus our efforts on things that matter.

Also, for the record, the unintended pointer arithmetic in
code-stubs-hydrogen.cc is still a pretty bad bug.

Powered by Google App Engine
This is Rietveld 408576698