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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 // Type feedback information. | 1687 // Type feedback information. |
1688 virtual bool IsMonomorphic() V8_OVERRIDE { | 1688 virtual bool IsMonomorphic() V8_OVERRIDE { |
1689 return receiver_types_.length() == 1; | 1689 return receiver_types_.length() == 1; |
1690 } | 1690 } |
1691 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { | 1691 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { |
1692 return &receiver_types_; | 1692 return &receiver_types_; |
1693 } | 1693 } |
1694 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { | 1694 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { |
1695 return STANDARD_STORE; | 1695 return STANDARD_STORE; |
1696 } | 1696 } |
1697 bool IsUninitialized() { return is_uninitialized_; } | 1697 bool IsUninitialized() { return !is_for_call_ && is_uninitialized_; } |
1698 bool HasNoTypeInformation() { | 1698 bool HasNoTypeInformation() { |
1699 return is_uninitialized_; | 1699 return is_uninitialized_; |
1700 } | 1700 } |
1701 void set_is_uninitialized(bool b) { is_uninitialized_ = b; } | 1701 void set_is_uninitialized(bool b) { is_uninitialized_ = b; } |
1702 void set_is_string_access(bool b) { is_string_access_ = b; } | 1702 void set_is_string_access(bool b) { is_string_access_ = b; } |
1703 void set_is_function_prototype(bool b) { is_function_prototype_ = b; } | 1703 void set_is_function_prototype(bool b) { is_function_prototype_ = b; } |
1704 void mark_for_call() { is_for_call_ = true; } | 1704 void mark_for_call() { is_for_call_ = true; } |
1705 bool IsForCall() { return is_for_call_; } | 1705 bool IsForCall() { return is_for_call_; } |
1706 | 1706 |
1707 TypeFeedbackId PropertyFeedbackId() { return reuse(id()); } | 1707 TypeFeedbackId PropertyFeedbackId() { return reuse(id()); } |
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3296 | 3296 |
3297 private: | 3297 private: |
3298 Zone* zone_; | 3298 Zone* zone_; |
3299 Visitor visitor_; | 3299 Visitor visitor_; |
3300 }; | 3300 }; |
3301 | 3301 |
3302 | 3302 |
3303 } } // namespace v8::internal | 3303 } } // namespace v8::internal |
3304 | 3304 |
3305 #endif // V8_AST_H_ | 3305 #endif // V8_AST_H_ |
OLD | NEW |