Revision: 17239
Author:   [email protected]
Date:     Wed Oct 16 12:20:21 2013 UTC
Log: Add support for Token::NE and Token::NE_STRICT to TokenToCondition.

This is required to be able to use these tokens with
HCompareNumericAndBranch.

[email protected]

Review URL: https://codereview.chromium.org/27043010
http://code.google.com/p/v8/source/detail?r=17239

Modified:
 /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc
 /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc
 /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc

=======================================
--- /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Tue Oct 15 15:04:29 2013 UTC +++ /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Wed Oct 16 12:20:21 2013 UTC
@@ -2336,6 +2336,10 @@
     case Token::EQ_STRICT:
       cond = eq;
       break;
+    case Token::NE:
+    case Token::NE_STRICT:
+      cond = ne;
+      break;
     case Token::LT:
       cond = is_unsigned ? lo : lt;
       break;
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Tue Oct 15 15:04:29 2013 UTC +++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed Oct 16 12:20:21 2013 UTC
@@ -2503,6 +2503,10 @@
     case Token::EQ_STRICT:
       cond = equal;
       break;
+    case Token::NE:
+    case Token::NE_STRICT:
+      cond = not_equal;
+      break;
     case Token::LT:
       cond = is_unsigned ? below : less;
       break;
=======================================
--- /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Tue Oct 15 15:04:29 2013 UTC +++ /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Wed Oct 16 12:20:21 2013 UTC
@@ -2048,6 +2048,10 @@
     case Token::EQ_STRICT:
       cond = equal;
       break;
+    case Token::NE:
+    case Token::NE_STRICT:
+      cond = not_equal;
+      break;
     case Token::LT:
       cond = is_unsigned ? below : less;
       break;

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