From cff21dc168d7a21a584790d9c8bc7e95980731c8 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Fri, 14 Jun 2013 07:45:16 +0000 Subject: [PATCH] Observe smi as input for HCompareIDAndBranch R=mvstanton@chromium.org Review URL: https://chromiumcodereview.appspot.com/16994002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15140 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 01766bdb7d..74bf489611 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -5008,7 +5008,7 @@ void HOptimizedGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) { label_value, Token::EQ_STRICT); compare_->set_observed_input_representation( - Representation::Integer32(), Representation::Integer32()); + Representation::Smi(), Representation::Smi()); compare = compare_; } else { compare = new(zone()) HStringCompareAndBranch(context, tag_value, @@ -5373,7 +5373,7 @@ void HOptimizedGraphBuilder::VisitForInStatement(ForInStatement* stmt) { HCompareIDAndBranch* compare_index = new(zone()) HCompareIDAndBranch(index, limit, Token::LT); compare_index->set_observed_input_representation( - Representation::Integer32(), Representation::Integer32()); + Representation::Smi(), Representation::Smi()); HBasicBlock* loop_body = graph()->CreateBasicBlock(); HBasicBlock* loop_successor = graph()->CreateBasicBlock();