| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 return STANDARD_STORE; | 225 return STANDARD_STORE; |
| 226 } | 226 } |
| 227 | 227 |
| 228 | 228 |
| 229 static inline bool IsGrowStoreMode(KeyedAccessStoreMode store_mode) { | 229 static inline bool IsGrowStoreMode(KeyedAccessStoreMode store_mode) { |
| 230 return store_mode >= STORE_AND_GROW_NO_TRANSITION && | 230 return store_mode >= STORE_AND_GROW_NO_TRANSITION && |
| 231 store_mode <= STORE_AND_GROW_TRANSITION_HOLEY_DOUBLE_TO_OBJECT; | 231 store_mode <= STORE_AND_GROW_TRANSITION_HOLEY_DOUBLE_TO_OBJECT; |
| 232 } | 232 } |
| 233 | 233 |
| 234 | 234 |
| 235 enum IcCheckType { ELEMENT, PROPERTY }; |
| 236 |
| 237 |
| 235 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. | 238 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. |
| 236 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; | 239 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; |
| 237 | 240 |
| 238 | 241 |
| 239 // Indicates whether a value can be loaded as a constant. | 242 // Indicates whether a value can be loaded as a constant. |
| 240 enum StoreMode { | 243 enum StoreMode { |
| 241 ALLOW_AS_CONSTANT, | 244 ALLOW_AS_CONSTANT, |
| 242 FORCE_FIELD | 245 FORCE_FIELD |
| 243 }; | 246 }; |
| 244 | 247 |
| (...skipping 10606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10851 } else { | 10854 } else { |
| 10852 value &= ~(1 << bit_position); | 10855 value &= ~(1 << bit_position); |
| 10853 } | 10856 } |
| 10854 return value; | 10857 return value; |
| 10855 } | 10858 } |
| 10856 }; | 10859 }; |
| 10857 | 10860 |
| 10858 } } // namespace v8::internal | 10861 } } // namespace v8::internal |
| 10859 | 10862 |
| 10860 #endif // V8_OBJECTS_H_ | 10863 #endif // V8_OBJECTS_H_ |
| OLD | NEW |