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

Issue 9950095: Fix array boilerplate object transitioning. (Closed)

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

Description

Fix array boilerplate object transitioning. Array literal boilerplate objects can be transitioned while existing un-transitioned clones are still being populated. This adds a check that prevents us from performing the same transition twice. R=danno@chromium.org BUG=v8:2055 TEST=mjsunit/regress/regress-2055 Committed: https://code.google.com/p/v8/source/detail?r=11221

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments by Daniel Clifford. #

Total comments: 4

Patch Set 3 : Addressed moar comments by Daniel Clifford. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -7 lines) Patch
M src/runtime.cc View 1 2 2 chunks +11 lines, -7 lines 0 comments Download
A test/mjsunit/regress/regress-2055.js View 1 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Michael Starzinger
8 years, 8 months ago (2012-04-03 15:26:42 UTC) #1
danno
Almost.... https://chromiumcodereview.appspot.com/9950095/diff/1/src/runtime.cc File src/runtime.cc (right): https://chromiumcodereview.appspot.com/9950095/diff/1/src/runtime.cc#newcode4684 src/runtime.cc:4684: ASSERT(elements_kind == boilerplate->GetElementsKind()); The boilerplate could also be ...
8 years, 8 months ago (2012-04-03 15:47:46 UTC) #2
Michael Starzinger
Added new patch set. PTAL. https://chromiumcodereview.appspot.com/9950095/diff/1/src/runtime.cc File src/runtime.cc (right): https://chromiumcodereview.appspot.com/9950095/diff/1/src/runtime.cc#newcode4684 src/runtime.cc:4684: ASSERT(elements_kind == boilerplate->GetElementsKind()); On ...
8 years, 8 months ago (2012-04-03 16:31:52 UTC) #3
danno
LGTM with comments https://chromiumcodereview.appspot.com/9950095/diff/4/src/runtime.cc File src/runtime.cc (right): https://chromiumcodereview.appspot.com/9950095/diff/4/src/runtime.cc#newcode4685 src/runtime.cc:4685: ASSERT(elements_kind == boilerplate->GetElementsKind()); This assertion isn't ...
8 years, 8 months ago (2012-04-03 16:38:10 UTC) #4
Michael Starzinger
8 years, 8 months ago (2012-04-03 16:55:03 UTC) #5
Added new patch set. Landed.

https://chromiumcodereview.appspot.com/9950095/diff/4/src/runtime.cc
File src/runtime.cc (right):

https://chromiumcodereview.appspot.com/9950095/diff/4/src/runtime.cc#newcode4685
src/runtime.cc:4685: ASSERT(elements_kind == boilerplate->GetElementsKind());
On 2012/04/03 16:38:10, danno wrote:
> This assertion isn't needed and misleading now (similar to below).

Done.

https://chromiumcodereview.appspot.com/9950095/diff/4/src/runtime.cc#newcode4698
src/runtime.cc:4698: ASSERT(elements_kind == boilerplate->GetElementsKind());
On 2012/04/03 16:38:10, danno wrote:
> This will assert when elements_kind is FAST_SMI_ONLY_ELEMENTS but
> boilerplate->GetElementsKind() is FAST_DOUBLE_ELEMENTS, but that's actually a
> valid case.

Done.

Powered by Google App Engine
This is Rietveld 408576698