[JAEGER] testDouble() should emit an unsigned comparison.
authorSean Stangl <sstangl@mozilla.com>
Tue, 15 Jun 2010 02:46:56 -0700
changeset 52841 72d2f0edb459777384c0bee0d1d31a216e36b605
parent 52840 9dc3cfd5be060ca62d249d5a1f8bec48e850a435
child 52842 3342a4bdfc104477aef2a134cf5fe62c2d7b3671
push idunknown
push userunknown
push dateunknown
milestone1.9.3a5pre
[JAEGER] testDouble() should emit an unsigned comparison.
js/src/methodjit/nunbox/Assembler.h
--- a/js/src/methodjit/nunbox/Assembler.h
+++ b/js/src/methodjit/nunbox/Assembler.h
@@ -145,28 +145,28 @@ class Assembler : public BaseAssembler
 
     Jump testNonFunObj(Assembler::Condition cond, Address address) {
         return branch32(cond, tagOf(address), ImmTag(JSVAL_MASK32_NONFUNOBJ));
     }
 
     Jump testDouble(Assembler::Condition cond, RegisterID reg) {
         Assembler::Condition opcond;
         if (cond == Assembler::Equal)
-            opcond = Assembler::GreaterThanOrEqual;
+            opcond = Assembler::Below;
         else
-            opcond = Assembler::LessThan;
+            opcond = Assembler::AboveOrEqual;
         return branch32(opcond, reg, ImmTag(JSVAL_MASK32_CLEAR));
     }
 
     Jump testDouble(Assembler::Condition cond, Address address) {
         Assembler::Condition opcond;
         if (cond == Assembler::Equal)
-            opcond = Assembler::GreaterThanOrEqual;
+            opcond = Assembler::Below;
         else
-            opcond = Assembler::LessThan;
+            opcond = Assembler::AboveOrEqual;
         return branch32(opcond, tagOf(address), ImmTag(JSVAL_MASK32_CLEAR));
     }
 
     Jump testBoolean(Assembler::Condition cond, RegisterID reg) {
         return branch32(cond, reg, ImmTag(JSVAL_MASK32_BOOLEAN));
     }
 
     Jump testBoolean(Assembler::Condition cond, Address address) {