| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 346 |
| 347 // True iff the expression is a literal represented as a smi. | 347 // True iff the expression is a literal represented as a smi. |
| 348 bool IsSmiLiteral(); | 348 bool IsSmiLiteral(); |
| 349 | 349 |
| 350 // True iff the expression is a string literal. | 350 // True iff the expression is a string literal. |
| 351 bool IsStringLiteral(); | 351 bool IsStringLiteral(); |
| 352 | 352 |
| 353 // True iff the expression is the null literal. | 353 // True iff the expression is the null literal. |
| 354 bool IsNullLiteral(); | 354 bool IsNullLiteral(); |
| 355 | 355 |
| 356 // True iff the expression is the undefined literal. | 356 // True if we can prove that the expression is the undefined literal. |
| 357 bool IsUndefinedLiteral(); | 357 bool IsUndefinedLiteral(Isolate* isolate); |
| 358 | 358 |
| 359 // Expression type bounds | 359 // Expression type bounds |
| 360 Bounds bounds() { return bounds_; } | 360 Bounds bounds() { return bounds_; } |
| 361 void set_bounds(Bounds bounds) { bounds_ = bounds; } | 361 void set_bounds(Bounds bounds) { bounds_ = bounds; } |
| 362 | 362 |
| 363 // Type feedback information for assignments and properties. | 363 // Type feedback information for assignments and properties. |
| 364 virtual bool IsMonomorphic() { | 364 virtual bool IsMonomorphic() { |
| 365 UNREACHABLE(); | 365 UNREACHABLE(); |
| 366 return false; | 366 return false; |
| 367 } | 367 } |
| (...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 Expression* right() const { return right_; } | 1987 Expression* right() const { return right_; } |
| 1988 virtual int position() const { return pos_; } | 1988 virtual int position() const { return pos_; } |
| 1989 | 1989 |
| 1990 // Type feedback information. | 1990 // Type feedback information. |
| 1991 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); } | 1991 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); } |
| 1992 Handle<Type> combined_type() const { return combined_type_; } | 1992 Handle<Type> combined_type() const { return combined_type_; } |
| 1993 void set_combined_type(Handle<Type> type) { combined_type_ = type; } | 1993 void set_combined_type(Handle<Type> type) { combined_type_ = type; } |
| 1994 | 1994 |
| 1995 // Match special cases. | 1995 // Match special cases. |
| 1996 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check); | 1996 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check); |
| 1997 bool IsLiteralCompareUndefined(Expression** expr); | 1997 bool IsLiteralCompareUndefined(Expression** expr, Isolate* isolate); |
| 1998 bool IsLiteralCompareNull(Expression** expr); | 1998 bool IsLiteralCompareNull(Expression** expr); |
| 1999 | 1999 |
| 2000 protected: | 2000 protected: |
| 2001 CompareOperation(Isolate* isolate, | 2001 CompareOperation(Isolate* isolate, |
| 2002 Token::Value op, | 2002 Token::Value op, |
| 2003 Expression* left, | 2003 Expression* left, |
| 2004 Expression* right, | 2004 Expression* right, |
| 2005 int pos) | 2005 int pos) |
| 2006 : Expression(isolate), | 2006 : Expression(isolate), |
| 2007 op_(op), | 2007 op_(op), |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3209 private: | 3209 private: |
| 3210 Isolate* isolate_; | 3210 Isolate* isolate_; |
| 3211 Zone* zone_; | 3211 Zone* zone_; |
| 3212 Visitor visitor_; | 3212 Visitor visitor_; |
| 3213 }; | 3213 }; |
| 3214 | 3214 |
| 3215 | 3215 |
| 3216 } } // namespace v8::internal | 3216 } } // namespace v8::internal |
| 3217 | 3217 |
| 3218 #endif // V8_AST_H_ | 3218 #endif // V8_AST_H_ |
| OLD | NEW |