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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 Expression* expression() const { return expression_; } | 1721 Expression* expression() const { return expression_; } |
1722 ZoneList<Expression*>* arguments() const { return arguments_; } | 1722 ZoneList<Expression*>* arguments() const { return arguments_; } |
1723 | 1723 |
1724 // Type feedback information. | 1724 // Type feedback information. |
1725 TypeFeedbackId CallFeedbackId() const { return reuse(id()); } | 1725 TypeFeedbackId CallFeedbackId() const { return reuse(id()); } |
1726 void RecordTypeFeedback(TypeFeedbackOracle* oracle, CallKind call_kind); | 1726 void RecordTypeFeedback(TypeFeedbackOracle* oracle, CallKind call_kind); |
1727 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { | 1727 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { |
1728 return &receiver_types_; | 1728 return &receiver_types_; |
1729 } | 1729 } |
1730 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } | 1730 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } |
| 1731 bool KeyedArrayCallIsHoley() { return keyed_array_call_is_holey_; } |
1731 CheckType check_type() const { return check_type_; } | 1732 CheckType check_type() const { return check_type_; } |
1732 | 1733 |
1733 void set_string_check(Handle<JSObject> holder) { | 1734 void set_string_check(Handle<JSObject> holder) { |
1734 holder_ = holder; | 1735 holder_ = holder; |
1735 check_type_ = STRING_CHECK; | 1736 check_type_ = STRING_CHECK; |
1736 } | 1737 } |
1737 | 1738 |
1738 void set_number_check(Handle<JSObject> holder) { | 1739 void set_number_check(Handle<JSObject> holder) { |
1739 holder_ = holder; | 1740 holder_ = holder; |
1740 check_type_ = NUMBER_CHECK; | 1741 check_type_ = NUMBER_CHECK; |
(...skipping 30 matching lines...) Expand all Loading... |
1771 | 1772 |
1772 protected: | 1773 protected: |
1773 Call(Isolate* isolate, | 1774 Call(Isolate* isolate, |
1774 Expression* expression, | 1775 Expression* expression, |
1775 ZoneList<Expression*>* arguments, | 1776 ZoneList<Expression*>* arguments, |
1776 int pos) | 1777 int pos) |
1777 : Expression(isolate, pos), | 1778 : Expression(isolate, pos), |
1778 expression_(expression), | 1779 expression_(expression), |
1779 arguments_(arguments), | 1780 arguments_(arguments), |
1780 is_monomorphic_(false), | 1781 is_monomorphic_(false), |
| 1782 keyed_array_call_is_holey_(true), |
1781 check_type_(RECEIVER_MAP_CHECK), | 1783 check_type_(RECEIVER_MAP_CHECK), |
1782 return_id_(GetNextId(isolate)) { } | 1784 return_id_(GetNextId(isolate)) { } |
1783 | 1785 |
1784 private: | 1786 private: |
1785 Expression* expression_; | 1787 Expression* expression_; |
1786 ZoneList<Expression*>* arguments_; | 1788 ZoneList<Expression*>* arguments_; |
1787 | 1789 |
1788 bool is_monomorphic_; | 1790 bool is_monomorphic_; |
| 1791 bool keyed_array_call_is_holey_; |
1789 CheckType check_type_; | 1792 CheckType check_type_; |
1790 SmallMapList receiver_types_; | 1793 SmallMapList receiver_types_; |
1791 Handle<JSFunction> target_; | 1794 Handle<JSFunction> target_; |
1792 Handle<JSObject> holder_; | 1795 Handle<JSObject> holder_; |
1793 Handle<Cell> cell_; | 1796 Handle<Cell> cell_; |
1794 | 1797 |
1795 const BailoutId return_id_; | 1798 const BailoutId return_id_; |
1796 }; | 1799 }; |
1797 | 1800 |
1798 | 1801 |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3267 private: | 3270 private: |
3268 Isolate* isolate_; | 3271 Isolate* isolate_; |
3269 Zone* zone_; | 3272 Zone* zone_; |
3270 Visitor visitor_; | 3273 Visitor visitor_; |
3271 }; | 3274 }; |
3272 | 3275 |
3273 | 3276 |
3274 } } // namespace v8::internal | 3277 } } // namespace v8::internal |
3275 | 3278 |
3276 #endif // V8_AST_H_ | 3279 #endif // V8_AST_H_ |
OLD | NEW |