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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 | 1730 |
1731 class Call V8_FINAL : public Expression { | 1731 class Call V8_FINAL : public Expression { |
1732 public: | 1732 public: |
1733 DECLARE_NODE_TYPE(Call) | 1733 DECLARE_NODE_TYPE(Call) |
1734 | 1734 |
1735 Expression* expression() const { return expression_; } | 1735 Expression* expression() const { return expression_; } |
1736 ZoneList<Expression*>* arguments() const { return arguments_; } | 1736 ZoneList<Expression*>* arguments() const { return arguments_; } |
1737 | 1737 |
1738 // Type feedback information. | 1738 // Type feedback information. |
1739 TypeFeedbackId CallFeedbackId() const { return reuse(id()); } | 1739 TypeFeedbackId CallFeedbackId() const { return reuse(id()); } |
1740 void RecordTypeFeedback(TypeFeedbackOracle* oracle, CallKind call_kind); | 1740 void RecordTypeFeedback(TypeFeedbackOracle* oracle, |
| 1741 ContextualMode contextual_mode); |
1741 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { | 1742 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { |
1742 return &receiver_types_; | 1743 return &receiver_types_; |
1743 } | 1744 } |
1744 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } | 1745 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } |
1745 bool KeyedArrayCallIsHoley() { return keyed_array_call_is_holey_; } | 1746 bool KeyedArrayCallIsHoley() { return keyed_array_call_is_holey_; } |
1746 CheckType check_type() const { return check_type_; } | 1747 CheckType check_type() const { return check_type_; } |
1747 | 1748 |
1748 void set_string_check(Handle<JSObject> holder) { | 1749 void set_string_check(Handle<JSObject> holder) { |
1749 holder_ = holder; | 1750 holder_ = holder; |
1750 check_type_ = STRING_CHECK; | 1751 check_type_ = STRING_CHECK; |
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3299 private: | 3300 private: |
3300 Isolate* isolate_; | 3301 Isolate* isolate_; |
3301 Zone* zone_; | 3302 Zone* zone_; |
3302 Visitor visitor_; | 3303 Visitor visitor_; |
3303 }; | 3304 }; |
3304 | 3305 |
3305 | 3306 |
3306 } } // namespace v8::internal | 3307 } } // namespace v8::internal |
3307 | 3308 |
3308 #endif // V8_AST_H_ | 3309 #endif // V8_AST_H_ |
OLD | NEW |