When processing collected uint32 instructions skip those with non-Integer32 represent...
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Aug 2012 19:00:02 +0000 (19:00 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Aug 2012 19:00:02 +0000 (19:00 +0000)
R=danno@chromium.org
BUG=test262 S15.4.4.8_A2_T3.js

Review URL: https://chromiumcodereview.appspot.com/10867017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12369 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/hydrogen.cc

index f37902e..7a3e203 100644 (file)
@@ -2933,7 +2933,9 @@ void HGraph::ComputeSafeUint32Operations() {
   Uint32Analysis analysis(zone());
   for (int i = 0; i < uint32_instructions_->length(); ++i) {
     HInstruction* current = uint32_instructions_->at(i);
-    if (current->IsLinked()) analysis.Analyze(current);
+    if (current->IsLinked() && current->representation().IsInteger32()) {
+      analysis.Analyze(current);
+    }
   }
 
   // Some phis might have been optimistically marked with kUint32 flag.