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

Issue 10387130: Always transition empty FAST_DOUBLE_ARRAYs on push (Closed)

Created:
8 years, 7 months ago by danno
Modified:
8 years, 7 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Always transition empty FAST_DOUBLE_ARRAYs on push R=mstarzinger@chromium.org BUG=chromium:128018 TEST=test/mjsunit/regress/regress-128018.js Committed: https://code.google.com/p/v8/source/detail?r=11570

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -6 lines) Patch
M src/builtins.cc View 1 chunk +6 lines, -6 lines 2 comments Download
A test/mjsunit/regress/regress-128018.js View 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
danno
8 years, 7 months ago (2012-05-15 14:35:15 UTC) #1
Michael Starzinger
8 years, 7 months ago (2012-05-15 15:38:13 UTC) #2
LGTM (with two comments).

https://chromiumcodereview.appspot.com/10387130/diff/1/src/builtins.cc
File src/builtins.cc (right):

https://chromiumcodereview.appspot.com/10387130/diff/1/src/builtins.cc#newcod...
src/builtins.cc:420: if (maybe_transition->IsFailure()) return maybe_transition;
At this point we know that the array has FAST_ELEMENTS, so we could early return
with array->elements() as result.

https://chromiumcodereview.appspot.com/10387130/diff/1/src/builtins.cc#newcod...
src/builtins.cc:422: if (args == NULL) {
Can we merge that into line 415 like the following? That would make behavior
consistent between FAST_DOUBLE_ELEMENTS and other FAST_FOOBAR_ELEMENTS. And it
would also be consistent with the copy-on-write case below.

if (args == NULL || array->HasFastElements()) return elms;

Powered by Google App Engine
This is Rietveld 408576698