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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 | 235 |
236 enum IcCheckType { ELEMENT, PROPERTY }; | 236 enum IcCheckType { ELEMENT, PROPERTY }; |
237 | 237 |
238 | 238 |
239 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. | 239 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. |
240 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; | 240 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; |
241 | 241 |
242 | 242 |
243 // Indicates whether a value can be loaded as a constant. | 243 // Indicates whether a value can be loaded as a constant. |
244 enum StoreMode { ALLOW_IN_DESCRIPTOR, FORCE_IN_OBJECT }; | 244 enum StoreMode { ALLOW_IN_DESCRIPTOR, FORCE_FIELD }; |
245 | 245 |
246 | 246 |
247 // PropertyNormalizationMode is used to specify whether to keep | 247 // PropertyNormalizationMode is used to specify whether to keep |
248 // inobject properties when normalizing properties of a JSObject. | 248 // inobject properties when normalizing properties of a JSObject. |
249 enum PropertyNormalizationMode { | 249 enum PropertyNormalizationMode { |
250 CLEAR_INOBJECT_PROPERTIES, | 250 CLEAR_INOBJECT_PROPERTIES, |
251 KEEP_INOBJECT_PROPERTIES | 251 KEEP_INOBJECT_PROPERTIES |
252 }; | 252 }; |
253 | 253 |
254 | 254 |
(...skipping 10699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10954 } else { | 10954 } else { |
10955 value &= ~(1 << bit_position); | 10955 value &= ~(1 << bit_position); |
10956 } | 10956 } |
10957 return value; | 10957 return value; |
10958 } | 10958 } |
10959 }; | 10959 }; |
10960 | 10960 |
10961 } } // namespace v8::internal | 10961 } } // namespace v8::internal |
10962 | 10962 |
10963 #endif // V8_OBJECTS_H_ | 10963 #endif // V8_OBJECTS_H_ |
OLD | NEW |