Index: src/ast.h |
=================================================================== |
--- src/ast.h (revision 9281) |
+++ src/ast.h (working copy) |
@@ -90,7 +90,6 @@ |
V(CountOperation) \ |
V(BinaryOperation) \ |
V(CompareOperation) \ |
- V(CompareToNull) \ |
V(ThisFunction) |
#define AST_NODE_LIST(V) \ |
@@ -1465,6 +1464,7 @@ |
// Match special cases. |
bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check); |
bool IsLiteralCompareUndefined(Expression** expr); |
+ bool IsLiteralCompareNull(Expression** expr); |
private: |
Token::Value op_; |
@@ -1477,25 +1477,6 @@ |
}; |
-class CompareToNull: public Expression { |
- public: |
- CompareToNull(Isolate* isolate, bool is_strict, Expression* expression) |
- : Expression(isolate), is_strict_(is_strict), expression_(expression) { } |
- |
- DECLARE_NODE_TYPE(CompareToNull) |
- |
- virtual bool IsInlineable() const; |
- |
- bool is_strict() const { return is_strict_; } |
- Token::Value op() const { return is_strict_ ? Token::EQ_STRICT : Token::EQ; } |
- Expression* expression() const { return expression_; } |
- |
- private: |
- bool is_strict_; |
- Expression* expression_; |
-}; |
- |
- |
class Conditional: public Expression { |
public: |
Conditional(Isolate* isolate, |