2008-09-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Anders Carlsson.
        
        Added optimized paths for comparing to null.
        
        SunSpider says 0.5% faster.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/VM/CodeBlock.cpp b/JavaScriptCore/VM/CodeBlock.cpp
index 922e557..7bf2b32 100644
--- a/JavaScriptCore/VM/CodeBlock.cpp
+++ b/JavaScriptCore/VM/CodeBlock.cpp
@@ -379,10 +379,18 @@
             printBinaryOp(location, it, "eq");
             break;
         }
+        case op_eq_null: {
+            printUnaryOp(location, it, "eq_null");
+            break;
+        }
         case op_neq: {
             printBinaryOp(location, it, "neq");
             break;
         }
+        case op_neq_null: {
+            printUnaryOp(location, it, "neq_null");
+            break;
+        }
         case op_stricteq: {
             printBinaryOp(location, it, "stricteq");
             break;