| 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 // The object that indicates an uninitialized cache. | 8174 // The object that indicates an uninitialized cache. |
| 8175 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); | 8175 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); |
| 8176 | 8176 |
| 8177 // The object that indicates a cache in pre-monomorphic state. | 8177 // The object that indicates a cache in pre-monomorphic state. |
| 8178 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); | 8178 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); |
| 8179 | 8179 |
| 8180 // The object that indicates a megamorphic state. | 8180 // The object that indicates a megamorphic state. |
| 8181 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); | 8181 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); |
| 8182 | 8182 |
| 8183 // The object that indicates a monomorphic state of Array with | 8183 // A raw version of the premonomorphic sentinel that's safe to read during |
| 8184 // ElementsKind | |
| 8185 static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, | |
| 8186 ElementsKind elements_kind); | |
| 8187 | |
| 8188 // A raw version of the uninitialized sentinel that's safe to read during | |
| 8189 // garbage collection (e.g., for patching the cache). | 8184 // garbage collection (e.g., for patching the cache). |
| 8190 static inline Object* RawUninitializedSentinel(Heap* heap); | 8185 static inline Object* RawPremonomorphicSentinel(Heap* heap); |
| 8191 | 8186 |
| 8192 static const int kForInFastCaseMarker = 0; | 8187 static const int kForInFastCaseMarker = 0; |
| 8193 static const int kForInSlowCaseMarker = 1; | 8188 static const int kForInSlowCaseMarker = 1; |
| 8194 | 8189 |
| 8195 private: | 8190 private: |
| 8196 static const int kTypeChangeChecksumBits = 7; | 8191 static const int kTypeChangeChecksumBits = 7; |
| 8197 | 8192 |
| 8198 class ICTotalCountField: public BitField<int, 0, | 8193 class ICTotalCountField: public BitField<int, 0, |
| 8199 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT | 8194 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT |
| 8200 class OwnTypeChangeChecksum: public BitField<int, | 8195 class OwnTypeChangeChecksum: public BitField<int, |
| (...skipping 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10768 } else { | 10763 } else { |
| 10769 value &= ~(1 << bit_position); | 10764 value &= ~(1 << bit_position); |
| 10770 } | 10765 } |
| 10771 return value; | 10766 return value; |
| 10772 } | 10767 } |
| 10773 }; | 10768 }; |
| 10774 | 10769 |
| 10775 } } // namespace v8::internal | 10770 } } // namespace v8::internal |
| 10776 | 10771 |
| 10777 #endif // V8_OBJECTS_H_ | 10772 #endif // V8_OBJECTS_H_ |
| OLD | NEW |