Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 class Label BASE_EMBEDDED { | 83 class Label BASE_EMBEDDED { |
| 84 public: | 84 public: |
| 85 enum Distance { | 85 enum Distance { |
| 86 kNear, kFar | 86 kNear, kFar |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 INLINE(Label()) { | 89 INLINE(Label()) { |
| 90 Unuse(); | 90 Unuse(); |
| 91 UnuseNear(); | 91 UnuseNear(); |
| 92 } | 92 } |
| 93 INLINE(~Label()) { ASSERT(!is_linked()); } | 93 INLINE(~Label()) { |
| 94 ASSERT(!is_linked()); | |
| 95 ASSERT(!is_near_linked()); | |
|
Erik Corry
2011/06/24 09:46:17
Instead of this change you might find fewer confli
| |
| 96 } | |
| 94 | 97 |
| 95 INLINE(void Unuse()) { pos_ = 0; } | 98 INLINE(void Unuse()) { pos_ = 0; } |
| 96 INLINE(void UnuseNear()) { near_link_pos_ = 0; } | 99 INLINE(void UnuseNear()) { near_link_pos_ = 0; } |
| 97 | 100 |
| 98 INLINE(bool is_bound() const) { return pos_ < 0; } | 101 INLINE(bool is_bound() const) { return pos_ < 0; } |
| 99 INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; } | 102 INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; } |
| 100 INLINE(bool is_linked() const) { return pos_ > 0; } | 103 INLINE(bool is_linked() const) { return pos_ > 0; } |
| 101 INLINE(bool is_near_linked() const) { return near_link_pos_ > 0; } | 104 INLINE(bool is_near_linked() const) { return near_link_pos_ > 0; } |
| 102 | 105 |
| 103 // Returns the position of bound or linked labels. Cannot be used | 106 // Returns the position of bound or linked labels. Cannot be used |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 860 public: | 863 public: |
| 861 NullCallWrapper() { } | 864 NullCallWrapper() { } |
| 862 virtual ~NullCallWrapper() { } | 865 virtual ~NullCallWrapper() { } |
| 863 virtual void BeforeCall(int call_size) const { } | 866 virtual void BeforeCall(int call_size) const { } |
| 864 virtual void AfterCall() const { } | 867 virtual void AfterCall() const { } |
| 865 }; | 868 }; |
| 866 | 869 |
| 867 } } // namespace v8::internal | 870 } } // namespace v8::internal |
| 868 | 871 |
| 869 #endif // V8_ASSEMBLER_H_ | 872 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |