| 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 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 Handle<String> name_; | 1819 Handle<String> name_; |
| 1820 const Runtime::Function* function_; | 1820 const Runtime::Function* function_; |
| 1821 ZoneList<Expression*>* arguments_; | 1821 ZoneList<Expression*>* arguments_; |
| 1822 }; | 1822 }; |
| 1823 | 1823 |
| 1824 | 1824 |
| 1825 class UnaryOperation: public Expression { | 1825 class UnaryOperation: public Expression { |
| 1826 public: | 1826 public: |
| 1827 DECLARE_NODE_TYPE(UnaryOperation) | 1827 DECLARE_NODE_TYPE(UnaryOperation) |
| 1828 | 1828 |
| 1829 virtual bool ResultOverwriteAllowed(); | |
| 1830 | |
| 1831 Token::Value op() const { return op_; } | 1829 Token::Value op() const { return op_; } |
| 1832 Expression* expression() const { return expression_; } | 1830 Expression* expression() const { return expression_; } |
| 1833 virtual int position() const { return pos_; } | 1831 virtual int position() const { return pos_; } |
| 1834 | 1832 |
| 1835 BailoutId MaterializeTrueId() { return materialize_true_id_; } | 1833 BailoutId MaterializeTrueId() { return materialize_true_id_; } |
| 1836 BailoutId MaterializeFalseId() { return materialize_false_id_; } | 1834 BailoutId MaterializeFalseId() { return materialize_false_id_; } |
| 1837 | 1835 |
| 1838 TypeFeedbackId UnaryOperationFeedbackId() const { return reuse(id()); } | |
| 1839 | |
| 1840 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); | 1836 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); |
| 1841 | 1837 |
| 1842 protected: | 1838 protected: |
| 1843 UnaryOperation(Isolate* isolate, | 1839 UnaryOperation(Isolate* isolate, |
| 1844 Token::Value op, | 1840 Token::Value op, |
| 1845 Expression* expression, | 1841 Expression* expression, |
| 1846 int pos) | 1842 int pos) |
| 1847 : Expression(isolate), | 1843 : Expression(isolate), |
| 1848 op_(op), | 1844 op_(op), |
| 1849 expression_(expression), | 1845 expression_(expression), |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3208 private: | 3204 private: |
| 3209 Isolate* isolate_; | 3205 Isolate* isolate_; |
| 3210 Zone* zone_; | 3206 Zone* zone_; |
| 3211 Visitor visitor_; | 3207 Visitor visitor_; |
| 3212 }; | 3208 }; |
| 3213 | 3209 |
| 3214 | 3210 |
| 3215 } } // namespace v8::internal | 3211 } } // namespace v8::internal |
| 3216 | 3212 |
| 3217 #endif // V8_AST_H_ | 3213 #endif // V8_AST_H_ |
| OLD | NEW |