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

Issue 7366008: Add map check for COW elements to crankshaft array handling code. (Closed)

Created:
9 years, 5 months ago by Jakob Kummerow
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Add map check for COW elements to crankshaft array handling code. BUG=v8:1560 TEST=mjsunit/regress/regress-1560.js Committed: http://code.google.com/p/v8/source/detail?r=8656

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
M src/hydrogen.cc View 1 3 chunks +14 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-1560.js View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jakob Kummerow
Thanks for the bug report. PTAL at the fix.
9 years, 5 months ago (2011-07-14 12:31:58 UTC) #1
danno
LGTM
9 years, 5 months ago (2011-07-14 12:48:43 UTC) #2
Vyacheslav Egorov (Chromium)
LGTM with comments addressed. http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode3924 src/hydrogen.cc:3924: HInstruction* elements_cow_map_check = new(zone()) HCheckMap( ...
9 years, 5 months ago (2011-07-14 13:03:44 UTC) #3
Jakob Kummerow
9 years, 5 months ago (2011-07-14 14:44:49 UTC) #4
Landing.

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode3924
src/hydrogen.cc:3924: HInstruction* elements_cow_map_check = new(zone())
HCheckMap(
On 2011/07/14 13:03:44, Vyacheslav Egorov wrote:
> I find the name of the variable confusing. We are checking exactly opposite
> (that elements are NOT COW.

Done, sort of: I've removed the variable completely.

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode3930
src/hydrogen.cc:3930: AddInstruction(elements_cow_map_check);
On 2011/07/14 13:03:44, Vyacheslav Egorov wrote:
> This map check is redundant if !is_store.

Done.

> Can you also extend the regression testcase that tests monomorphic keyed
stores
> (current testcase tests polymorphic stores)? 

Done.

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode3933
src/hydrogen.cc:3933: AddInstruction(elements_cow_map_check);
On 2011/07/14 13:03:44, Vyacheslav Egorov wrote:
> Ditto.

Done.

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode4039
src/hydrogen.cc:4039: AddInstruction(new(zone()) HCheckMap(
On 2011/07/14 13:03:44, Vyacheslav Egorov wrote:
> redundant if !is_store

Done.

http://codereview.chromium.org/7366008/diff/1/src/hydrogen.cc#newcode4058
src/hydrogen.cc:4058: AddInstruction(new(zone()) HCheckMap(
On 2011/07/14 13:03:44, Vyacheslav Egorov wrote:
> This map check is redundant if !is_store

Done.

Powered by Google App Engine
This is Rietveld 408576698