| 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 8162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8173 | 8173 |
| 8174 static const int kStorage1Offset = HeapObject::kHeaderSize; | 8174 static const int kStorage1Offset = HeapObject::kHeaderSize; |
| 8175 static const int kStorage2Offset = kStorage1Offset + kPointerSize; | 8175 static const int kStorage2Offset = kStorage1Offset + kPointerSize; |
| 8176 static const int kFeedbackVectorOffset = | 8176 static const int kFeedbackVectorOffset = |
| 8177 kStorage2Offset + kPointerSize; | 8177 kStorage2Offset + kPointerSize; |
| 8178 static const int kSize = kFeedbackVectorOffset + kPointerSize; | 8178 static const int kSize = kFeedbackVectorOffset + kPointerSize; |
| 8179 | 8179 |
| 8180 // The object that indicates an uninitialized cache. | 8180 // The object that indicates an uninitialized cache. |
| 8181 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); | 8181 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); |
| 8182 | 8182 |
| 8183 // The object that indicates a cache in pre-monomorphic state. |
| 8184 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); |
| 8185 |
| 8183 // The object that indicates a megamorphic state. | 8186 // The object that indicates a megamorphic state. |
| 8184 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); | 8187 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); |
| 8185 | 8188 |
| 8186 // The object that indicates a monomorphic state of Array with | 8189 // The object that indicates a monomorphic state of Array with |
| 8187 // ElementsKind | 8190 // ElementsKind |
| 8188 static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, | 8191 static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, |
| 8189 ElementsKind elements_kind); | 8192 ElementsKind elements_kind); |
| 8190 | 8193 |
| 8191 // A raw version of the uninitialized sentinel that's safe to read during | 8194 // A raw version of the uninitialized sentinel that's safe to read during |
| 8192 // garbage collection (e.g., for patching the cache). | 8195 // garbage collection (e.g., for patching the cache). |
| (...skipping 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10757 } else { | 10760 } else { |
| 10758 value &= ~(1 << bit_position); | 10761 value &= ~(1 << bit_position); |
| 10759 } | 10762 } |
| 10760 return value; | 10763 return value; |
| 10761 } | 10764 } |
| 10762 }; | 10765 }; |
| 10763 | 10766 |
| 10764 } } // namespace v8::internal | 10767 } } // namespace v8::internal |
| 10765 | 10768 |
| 10766 #endif // V8_OBJECTS_H_ | 10769 #endif // V8_OBJECTS_H_ |
| OLD | NEW |