Fix array index dehoisting.
BUG=141395 TEST= Review URL: https://chromiumcodereview.appspot.com/10919214 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12484 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
1987542825
commit
bff3d2a8a6
@ -3743,6 +3743,7 @@ void HGraph::EliminateRedundantBoundsChecks() {
|
|||||||
|
|
||||||
static void DehoistArrayIndex(ArrayInstructionInterface* array_operation) {
|
static void DehoistArrayIndex(ArrayInstructionInterface* array_operation) {
|
||||||
HValue* index = array_operation->GetKey();
|
HValue* index = array_operation->GetKey();
|
||||||
|
if (!index->representation().IsInteger32()) return;
|
||||||
|
|
||||||
HConstant* constant;
|
HConstant* constant;
|
||||||
HValue* subexpression;
|
HValue* subexpression;
|
||||||
|
Loading…
Reference in New Issue
Block a user