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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 Expression* expression() const { return expression_; } | 1577 Expression* expression() const { return expression_; } |
1578 ZoneList<Expression*>* arguments() const { return arguments_; } | 1578 ZoneList<Expression*>* arguments() const { return arguments_; } |
1579 virtual int position() const { return pos_; } | 1579 virtual int position() const { return pos_; } |
1580 | 1580 |
1581 void RecordTypeFeedback(TypeFeedbackOracle* oracle, | 1581 void RecordTypeFeedback(TypeFeedbackOracle* oracle, |
1582 CallKind call_kind); | 1582 CallKind call_kind); |
1583 virtual SmallMapList* GetReceiverTypes() { return &receiver_types_; } | 1583 virtual SmallMapList* GetReceiverTypes() { return &receiver_types_; } |
1584 virtual bool IsMonomorphic() { return is_monomorphic_; } | 1584 virtual bool IsMonomorphic() { return is_monomorphic_; } |
1585 CheckType check_type() const { return check_type_; } | 1585 CheckType check_type() const { return check_type_; } |
1586 Handle<JSFunction> target() { return target_; } | 1586 Handle<JSFunction> target() { return target_; } |
| 1587 |
| 1588 // A cache for the holder, set as a side effect of computing the target of the |
| 1589 // call. Note that it contains the null handle when the receiver is the same |
| 1590 // as the holder! |
1587 Handle<JSObject> holder() { return holder_; } | 1591 Handle<JSObject> holder() { return holder_; } |
| 1592 |
1588 Handle<JSGlobalPropertyCell> cell() { return cell_; } | 1593 Handle<JSGlobalPropertyCell> cell() { return cell_; } |
1589 | 1594 |
1590 bool ComputeTarget(Handle<Map> type, Handle<String> name); | 1595 bool ComputeTarget(Handle<Map> type, Handle<String> name); |
1591 bool ComputeGlobalTarget(Handle<GlobalObject> global, LookupResult* lookup); | 1596 bool ComputeGlobalTarget(Handle<GlobalObject> global, LookupResult* lookup); |
1592 | 1597 |
1593 // Bailout support. | 1598 // Bailout support. |
1594 int ReturnId() const { return return_id_; } | 1599 int ReturnId() const { return return_id_; } |
1595 | 1600 |
1596 #ifdef DEBUG | 1601 #ifdef DEBUG |
1597 // Used to assert that the FullCodeGenerator records the return site. | 1602 // Used to assert that the FullCodeGenerator records the return site. |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2984 private: | 2989 private: |
2985 Isolate* isolate_; | 2990 Isolate* isolate_; |
2986 Zone* zone_; | 2991 Zone* zone_; |
2987 Visitor visitor_; | 2992 Visitor visitor_; |
2988 }; | 2993 }; |
2989 | 2994 |
2990 | 2995 |
2991 } } // namespace v8::internal | 2996 } } // namespace v8::internal |
2992 | 2997 |
2993 #endif // V8_AST_H_ | 2998 #endif // V8_AST_H_ |
OLD | NEW |