From: mmassi@chromium.org Date: Tue, 11 Sep 2012 14:14:32 +0000 (+0000) Subject: Fix array index dehoisting. X-Git-Tag: upstream/4.7.83~16028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bff3d2a8a60d901075f4835a3455028651ee3bff;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 75344bb..57fd079 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -3743,6 +3743,7 @@ void HGraph::EliminateRedundantBoundsChecks() { static void DehoistArrayIndex(ArrayInstructionInterface* array_operation) { HValue* index = array_operation->GetKey(); + if (!index->representation().IsInteger32()) return; HConstant* constant; HValue* subexpression;