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