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

Issue 11486007: Fix for when array bounds check elimination tries to modify a phi index. (Closed)

Created:
8 years ago by Massi
Modified:
8 years ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Fix for when array bounds check elimination tries to modify a phi index. BUG= Committed: https://code.google.com/p/v8/source/detail?r=13193

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -21 lines) Patch
M src/hydrogen.cc View 7 chunks +43 lines, -21 lines 3 comments Download
M test/mjsunit/array-bounds-check-removal.js View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Massi
8 years ago (2012-12-11 12:48:13 UTC) #1
Jakob Kummerow
8 years ago (2012-12-11 13:42:15 UTC) #2
LGTM with nits.

I must say I'm surprised that there's not even a single for-loop in any of the
test cases. Don't most interesting array accesses happen inside loops?

https://chromiumcodereview.appspot.com/11486007/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):

https://chromiumcodereview.appspot.com/11486007/diff/1/src/hydrogen.cc#newcod...
src/hydrogen.cc:3542: return add->context();
nit: {}

https://chromiumcodereview.appspot.com/11486007/diff/1/src/hydrogen.cc#newcod...
src/hydrogen.cc:3544: return HBinaryOperation::cast(check->index())->context();
nit: {}

https://chromiumcodereview.appspot.com/11486007/diff/1/src/hydrogen.cc#newcod...
src/hydrogen.cc:3649: !data->CoverCheck(check, offset)) {
nit: please align:
    } else if (data->BasicBlock() != bb ||
               !data->CoverCheck(check, offset)) {

Powered by Google App Engine
This is Rietveld 408576698