OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 STORE_NO_TRANSITION_IGNORE_OUT_OF_BOUNDS, | 181 STORE_NO_TRANSITION_IGNORE_OUT_OF_BOUNDS, |
182 STORE_NO_TRANSITION_HANDLE_COW | 182 STORE_NO_TRANSITION_HANDLE_COW |
183 }; | 183 }; |
184 | 184 |
185 enum MutableMode { | 185 enum MutableMode { |
186 MUTABLE, | 186 MUTABLE, |
187 IMMUTABLE | 187 IMMUTABLE |
188 }; | 188 }; |
189 | 189 |
190 | 190 |
191 enum ExternalArrayType { | |
192 kExternalInt8Array = 1, | |
193 kExternalUint8Array, | |
194 kExternalInt16Array, | |
195 kExternalUint16Array, | |
196 kExternalInt32Array, | |
197 kExternalUint32Array, | |
198 kExternalFloat32Array, | |
199 kExternalFloat64Array, | |
200 kExternalUint8ClampedArray, | |
201 }; | |
202 | |
203 | |
204 static inline bool IsTransitionStoreMode(KeyedAccessStoreMode store_mode) { | 191 static inline bool IsTransitionStoreMode(KeyedAccessStoreMode store_mode) { |
205 return store_mode == STORE_TRANSITION_TO_OBJECT || | 192 return store_mode == STORE_TRANSITION_TO_OBJECT || |
206 store_mode == STORE_TRANSITION_TO_DOUBLE || | 193 store_mode == STORE_TRANSITION_TO_DOUBLE || |
207 store_mode == STORE_AND_GROW_TRANSITION_TO_OBJECT || | 194 store_mode == STORE_AND_GROW_TRANSITION_TO_OBJECT || |
208 store_mode == STORE_AND_GROW_TRANSITION_TO_DOUBLE; | 195 store_mode == STORE_AND_GROW_TRANSITION_TO_DOUBLE; |
209 } | 196 } |
210 | 197 |
211 | 198 |
212 static inline KeyedAccessStoreMode GetNonTransitioningStoreMode( | 199 static inline KeyedAccessStoreMode GetNonTransitioningStoreMode( |
213 KeyedAccessStoreMode store_mode) { | 200 KeyedAccessStoreMode store_mode) { |
(...skipping 11408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11622 } | 11609 } |
11623 }; | 11610 }; |
11624 | 11611 |
11625 | 11612 |
11626 } // NOLINT, false-positive due to second-order macros. | 11613 } // NOLINT, false-positive due to second-order macros. |
11627 } // NOLINT, false-positive due to second-order macros. | 11614 } // NOLINT, false-positive due to second-order macros. |
11628 | 11615 |
11629 #include "src/objects/object-macros-undef.h" | 11616 #include "src/objects/object-macros-undef.h" |
11630 | 11617 |
11631 #endif // V8_OBJECTS_H_ | 11618 #endif // V8_OBJECTS_H_ |
OLD | NEW |