OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 static inline bool IsGrowStoreMode(KeyedAccessStoreMode store_mode) { | 245 static inline bool IsGrowStoreMode(KeyedAccessStoreMode store_mode) { |
246 return store_mode >= STORE_AND_GROW_NO_TRANSITION && | 246 return store_mode >= STORE_AND_GROW_NO_TRANSITION && |
247 store_mode <= STORE_AND_GROW_TRANSITION_HOLEY_DOUBLE_TO_OBJECT; | 247 store_mode <= STORE_AND_GROW_TRANSITION_HOLEY_DOUBLE_TO_OBJECT; |
248 } | 248 } |
249 | 249 |
250 | 250 |
251 enum IcCheckType { ELEMENT, PROPERTY }; | 251 enum IcCheckType { ELEMENT, PROPERTY }; |
252 | 252 |
253 | 253 |
254 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. | 254 // SKIP_WRITE_BARRIER skips the write barrier. |
255 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; | 255 // UPDATE_WEAK_WRITE_BARRIER skips the marking part of the write barrier and |
| 256 // only performs the generational part. |
| 257 // UPDATE_WRITE_BARRIER is doing the full barrier, marking and generational. |
| 258 enum WriteBarrierMode { |
| 259 SKIP_WRITE_BARRIER, |
| 260 UPDATE_WEAK_WRITE_BARRIER, |
| 261 UPDATE_WRITE_BARRIER |
| 262 }; |
256 | 263 |
257 | 264 |
258 // Indicates whether a value can be loaded as a constant. | 265 // Indicates whether a value can be loaded as a constant. |
259 enum StoreMode { ALLOW_IN_DESCRIPTOR, FORCE_FIELD }; | 266 enum StoreMode { ALLOW_IN_DESCRIPTOR, FORCE_FIELD }; |
260 | 267 |
261 | 268 |
262 // PropertyNormalizationMode is used to specify whether to keep | 269 // PropertyNormalizationMode is used to specify whether to keep |
263 // inobject properties when normalizing properties of a JSObject. | 270 // inobject properties when normalizing properties of a JSObject. |
264 enum PropertyNormalizationMode { | 271 enum PropertyNormalizationMode { |
265 CLEAR_INOBJECT_PROPERTIES, | 272 CLEAR_INOBJECT_PROPERTIES, |
(...skipping 10902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11168 } else { | 11175 } else { |
11169 value &= ~(1 << bit_position); | 11176 value &= ~(1 << bit_position); |
11170 } | 11177 } |
11171 return value; | 11178 return value; |
11172 } | 11179 } |
11173 }; | 11180 }; |
11174 | 11181 |
11175 } } // namespace v8::internal | 11182 } } // namespace v8::internal |
11176 | 11183 |
11177 #endif // V8_OBJECTS_H_ | 11184 #endif // V8_OBJECTS_H_ |
OLD | NEW |