| 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 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 | 1520 |
| 1521 bool IsStringLength() const { return is_string_length_; } | 1521 bool IsStringLength() const { return is_string_length_; } |
| 1522 bool IsStringAccess() const { return is_string_access_; } | 1522 bool IsStringAccess() const { return is_string_access_; } |
| 1523 bool IsFunctionPrototype() const { return is_function_prototype_; } | 1523 bool IsFunctionPrototype() const { return is_function_prototype_; } |
| 1524 | 1524 |
| 1525 // Type feedback information. | 1525 // Type feedback information. |
| 1526 void RecordTypeFeedback(TypeFeedbackOracle* oracle); | 1526 void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
| 1527 virtual bool IsMonomorphic() { return is_monomorphic_; } | 1527 virtual bool IsMonomorphic() { return is_monomorphic_; } |
| 1528 virtual SmallMapList* GetReceiverTypes() { return &receiver_types_; } | 1528 virtual SmallMapList* GetReceiverTypes() { return &receiver_types_; } |
| 1529 bool IsArrayLength() { return is_array_length_; } | 1529 bool IsArrayLength() { return is_array_length_; } |
| 1530 bool IsUninitialized() { return is_uninitialized_; } |
| 1530 | 1531 |
| 1531 protected: | 1532 protected: |
| 1532 template<class> friend class AstNodeFactory; | 1533 template<class> friend class AstNodeFactory; |
| 1533 | 1534 |
| 1534 Property(Isolate* isolate, | 1535 Property(Isolate* isolate, |
| 1535 Expression* obj, | 1536 Expression* obj, |
| 1536 Expression* key, | 1537 Expression* key, |
| 1537 int pos) | 1538 int pos) |
| 1538 : Expression(isolate), | 1539 : Expression(isolate), |
| 1539 obj_(obj), | 1540 obj_(obj), |
| 1540 key_(key), | 1541 key_(key), |
| 1541 pos_(pos), | 1542 pos_(pos), |
| 1542 is_monomorphic_(false), | 1543 is_monomorphic_(false), |
| 1544 is_uninitialized_(false), |
| 1543 is_array_length_(false), | 1545 is_array_length_(false), |
| 1544 is_string_length_(false), | 1546 is_string_length_(false), |
| 1545 is_string_access_(false), | 1547 is_string_access_(false), |
| 1546 is_function_prototype_(false) { } | 1548 is_function_prototype_(false) { } |
| 1547 | 1549 |
| 1548 private: | 1550 private: |
| 1549 Expression* obj_; | 1551 Expression* obj_; |
| 1550 Expression* key_; | 1552 Expression* key_; |
| 1551 int pos_; | 1553 int pos_; |
| 1552 | 1554 |
| 1553 SmallMapList receiver_types_; | 1555 SmallMapList receiver_types_; |
| 1554 bool is_monomorphic_ : 1; | 1556 bool is_monomorphic_ : 1; |
| 1557 bool is_uninitialized_ : 1; |
| 1555 bool is_array_length_ : 1; | 1558 bool is_array_length_ : 1; |
| 1556 bool is_string_length_ : 1; | 1559 bool is_string_length_ : 1; |
| 1557 bool is_string_access_ : 1; | 1560 bool is_string_access_ : 1; |
| 1558 bool is_function_prototype_ : 1; | 1561 bool is_function_prototype_ : 1; |
| 1559 }; | 1562 }; |
| 1560 | 1563 |
| 1561 | 1564 |
| 1562 class Call: public Expression { | 1565 class Call: public Expression { |
| 1563 public: | 1566 public: |
| 1564 DECLARE_NODE_TYPE(Call) | 1567 DECLARE_NODE_TYPE(Call) |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2972 private: | 2975 private: |
| 2973 Isolate* isolate_; | 2976 Isolate* isolate_; |
| 2974 Zone* zone_; | 2977 Zone* zone_; |
| 2975 Visitor visitor_; | 2978 Visitor visitor_; |
| 2976 }; | 2979 }; |
| 2977 | 2980 |
| 2978 | 2981 |
| 2979 } } // namespace v8::internal | 2982 } } // namespace v8::internal |
| 2980 | 2983 |
| 2981 #endif // V8_AST_H_ | 2984 #endif // V8_AST_H_ |
| OLD | NEW |