| 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 | 9 |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 4854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4865 // cache state, and arguments count. | 4865 // cache state, and arguments count. |
| 4866 typedef uint32_t Flags; | 4866 typedef uint32_t Flags; |
| 4867 | 4867 |
| 4868 #define NON_IC_KIND_LIST(V) \ | 4868 #define NON_IC_KIND_LIST(V) \ |
| 4869 V(FUNCTION) \ | 4869 V(FUNCTION) \ |
| 4870 V(OPTIMIZED_FUNCTION) \ | 4870 V(OPTIMIZED_FUNCTION) \ |
| 4871 V(STUB) \ | 4871 V(STUB) \ |
| 4872 V(HANDLER) \ | 4872 V(HANDLER) \ |
| 4873 V(BUILTIN) \ | 4873 V(BUILTIN) \ |
| 4874 V(REGEXP) \ | 4874 V(REGEXP) \ |
| 4875 V(WASM_FUNCTION) | 4875 V(WASM_FUNCTION) \ |
| 4876 V(WASM_TO_JS_FUNCTION) \ |
| 4877 V(JS_TO_WASM_FUNCTION) |
| 4876 | 4878 |
| 4877 #define IC_KIND_LIST(V) \ | 4879 #define IC_KIND_LIST(V) \ |
| 4878 V(LOAD_IC) \ | 4880 V(LOAD_IC) \ |
| 4879 V(KEYED_LOAD_IC) \ | 4881 V(KEYED_LOAD_IC) \ |
| 4880 V(CALL_IC) \ | 4882 V(CALL_IC) \ |
| 4881 V(STORE_IC) \ | 4883 V(STORE_IC) \ |
| 4882 V(KEYED_STORE_IC) \ | 4884 V(KEYED_STORE_IC) \ |
| 4883 V(BINARY_OP_IC) \ | 4885 V(BINARY_OP_IC) \ |
| 4884 V(COMPARE_IC) \ | 4886 V(COMPARE_IC) \ |
| 4885 V(TO_BOOLEAN_IC) | 4887 V(TO_BOOLEAN_IC) |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5316 class FullCodeFlagsHasRelocInfoForSerialization | 5318 class FullCodeFlagsHasRelocInfoForSerialization |
| 5317 : public BitField<bool, 2, 1> {}; | 5319 : public BitField<bool, 2, 1> {}; |
| 5318 // Bit 3 in this bitfield is unused. | 5320 // Bit 3 in this bitfield is unused. |
| 5319 class ProfilerTicksField : public BitField<int, 4, 28> {}; | 5321 class ProfilerTicksField : public BitField<int, 4, 28> {}; |
| 5320 | 5322 |
| 5321 // Flags layout. BitField<type, shift, size>. | 5323 // Flags layout. BitField<type, shift, size>. |
| 5322 class ICStateField : public BitField<InlineCacheState, 0, 3> {}; | 5324 class ICStateField : public BitField<InlineCacheState, 0, 3> {}; |
| 5323 class TypeField : public BitField<StubType, 3, 1> {}; | 5325 class TypeField : public BitField<StubType, 3, 1> {}; |
| 5324 class CacheHolderField : public BitField<CacheHolderFlag, 4, 2> {}; | 5326 class CacheHolderField : public BitField<CacheHolderFlag, 4, 2> {}; |
| 5325 class KindField : public BitField<Kind, 6, 5> {}; | 5327 class KindField : public BitField<Kind, 6, 5> {}; |
| 5326 class ExtraICStateField: public BitField<ExtraICState, 11, | 5328 class ExtraICStateField |
| 5327 PlatformSmiTagging::kSmiValueSize - 11 + 1> {}; // NOLINT | 5329 : public BitField<ExtraICState, 11, PlatformSmiTagging::kSmiValueSize - |
| 5330 11 + 1> {}; // NOLINT |
| 5328 | 5331 |
| 5329 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) | 5332 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) |
| 5330 static const int kStackSlotsFirstBit = 0; | 5333 static const int kStackSlotsFirstBit = 0; |
| 5331 static const int kStackSlotsBitCount = 24; | 5334 static const int kStackSlotsBitCount = 24; |
| 5332 static const int kMarkedForDeoptimizationBit = | 5335 static const int kMarkedForDeoptimizationBit = |
| 5333 kStackSlotsFirstBit + kStackSlotsBitCount; | 5336 kStackSlotsFirstBit + kStackSlotsBitCount; |
| 5334 static const int kIsTurbofannedBit = kMarkedForDeoptimizationBit + 1; | 5337 static const int kIsTurbofannedBit = kMarkedForDeoptimizationBit + 1; |
| 5335 static const int kCanHaveWeakObjects = kIsTurbofannedBit + 1; | 5338 static const int kCanHaveWeakObjects = kIsTurbofannedBit + 1; |
| 5336 | 5339 |
| 5337 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); | 5340 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); |
| (...skipping 5523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10861 } | 10864 } |
| 10862 return value; | 10865 return value; |
| 10863 } | 10866 } |
| 10864 }; | 10867 }; |
| 10865 | 10868 |
| 10866 | 10869 |
| 10867 } // NOLINT, false-positive due to second-order macros. | 10870 } // NOLINT, false-positive due to second-order macros. |
| 10868 } // NOLINT, false-positive due to second-order macros. | 10871 } // NOLINT, false-positive due to second-order macros. |
| 10869 | 10872 |
| 10870 #endif // V8_OBJECTS_H_ | 10873 #endif // V8_OBJECTS_H_ |
| OLD | NEW |