From 9b6aa9568d5711a43229aad1fed439f4566bd142 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Wed, 29 May 2013 09:55:50 +0000 Subject: [PATCH] Don't explicitly pass the Smi-representation to IfCompare. BUG= R=jkummerow@chromium.org Review URL: https://chromiumcodereview.appspot.com/15891006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14873 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 60ba595..d2b7ea1 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -1129,7 +1129,7 @@ HValue* HGraphBuilder::BuildCheckForCapacityGrow(HValue* object, Zone* zone = this->zone(); IfBuilder length_checker(this); - length_checker.IfCompare(length, key, Token::EQ, Representation::Smi()); + length_checker.IfCompare(length, key, Token::EQ); length_checker.Then(); HValue* current_capacity = @@ -1137,8 +1137,7 @@ HValue* HGraphBuilder::BuildCheckForCapacityGrow(HValue* object, IfBuilder capacity_checker(this); - capacity_checker.IfCompare( - length, current_capacity, Token::EQ, Representation::Smi()); + capacity_checker.IfCompare(length, current_capacity, Token::EQ); capacity_checker.Then(); HValue* context = environment()->LookupContext(); @@ -1260,11 +1259,11 @@ HInstruction* HGraphBuilder::BuildUncheckedMonomorphicElementAccess( new(zone) HLoadExternalArrayPointer(elements); AddInstruction(external_elements); IfBuilder length_checker(this); - length_checker.IfCompare(key, length, Token::LT, Representation::Smi()); + length_checker.IfCompare(key, length, Token::LT); length_checker.Then(); IfBuilder negative_checker(this); HValue* bounds_check = negative_checker.IfCompare( - key, graph()->GetConstant0(), Token::GTE, Representation::Smi()); + key, graph()->GetConstant0(), Token::GTE); negative_checker.Then(); HInstruction* result = BuildExternalArrayElementAccess( external_elements, key, val, bounds_check, -- 2.7.4