From 96f55352fc26e3f9ae68607fd57856d68c4731e8 Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Wed, 22 Aug 2012 19:00:02 +0000 Subject: [PATCH] When processing collected uint32 instructions skip those with non-Integer32 representation. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index f37902e9de..7a3e203beb 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -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.