| 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 8154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8165 | 8165 |
| 8166 static const int kStorage1Offset = HeapObject::kHeaderSize; | 8166 static const int kStorage1Offset = HeapObject::kHeaderSize; |
| 8167 static const int kStorage2Offset = kStorage1Offset + kPointerSize; | 8167 static const int kStorage2Offset = kStorage1Offset + kPointerSize; |
| 8168 static const int kFeedbackVectorOffset = | 8168 static const int kFeedbackVectorOffset = |
| 8169 kStorage2Offset + kPointerSize; | 8169 kStorage2Offset + kPointerSize; |
| 8170 static const int kSize = kFeedbackVectorOffset + kPointerSize; | 8170 static const int kSize = kFeedbackVectorOffset + kPointerSize; |
| 8171 | 8171 |
| 8172 // The object that indicates an uninitialized cache. | 8172 // The object that indicates an uninitialized cache. |
| 8173 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); | 8173 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); |
| 8174 | 8174 |
| 8175 // The object that indicates a cache in pre-monomorphic state. | |
| 8176 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); | |
| 8177 | |
| 8178 // The object that indicates a megamorphic state. | 8175 // The object that indicates a megamorphic state. |
| 8179 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); | 8176 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); |
| 8180 | 8177 |
| 8181 // The object that indicates a monomorphic state of Array with | 8178 // The object that indicates a monomorphic state of Array with |
| 8182 // ElementsKind | 8179 // ElementsKind |
| 8183 static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, | 8180 static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, |
| 8184 ElementsKind elements_kind); | 8181 ElementsKind elements_kind); |
| 8185 | 8182 |
| 8186 // A raw version of the uninitialized sentinel that's safe to read during | 8183 // A raw version of the uninitialized sentinel that's safe to read during |
| 8187 // garbage collection (e.g., for patching the cache). | 8184 // garbage collection (e.g., for patching the cache). |
| (...skipping 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10766 } else { | 10763 } else { |
| 10767 value &= ~(1 << bit_position); | 10764 value &= ~(1 << bit_position); |
| 10768 } | 10765 } |
| 10769 return value; | 10766 return value; |
| 10770 } | 10767 } |
| 10771 }; | 10768 }; |
| 10772 | 10769 |
| 10773 } } // namespace v8::internal | 10770 } } // namespace v8::internal |
| 10774 | 10771 |
| 10775 #endif // V8_OBJECTS_H_ | 10772 #endif // V8_OBJECTS_H_ |
| OLD | NEW |