Revision: 14873
Author:   [email protected]
Date:     Wed May 29 02:55:50 2013
Log:      Don't explicitly pass the Smi-representation to IfCompare.

BUG=
[email protected]

Review URL: https://chromiumcodereview.appspot.com/15891006
http://code.google.com/p/v8/source/detail?r=14873

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Tue May 28 08:30:49 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Wed May 29 02:55:50 2013
@@ -1129,7 +1129,7 @@
   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 @@

   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 @@
           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,

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to