Lines Matching refs:value
74 // Smi constants for systems where tagged pointer is a 32-bit value.
83 V8_INLINE static int SmiToInt(Address value) {
86 return static_cast<int32_t>(static_cast<uint32_t>(value)) >> shift_bits;
88 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
89 // Is value in range [kSmiMinValue, kSmiMaxValue].
92 return (static_cast<uintptr_t>(value) -
99 // Smi constants for systems where tagged pointer is a 64-bit value.
108 V8_INLINE static int SmiToInt(Address value) {
111 return static_cast<int>(static_cast<intptr_t>(value) >> shift_bits);
113 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
114 // To be representable as a long smi, the value must be a 32-bit integer.
115 return (value == static_cast<int32_t>(value));
153 V8_INLINE static constexpr Address IntToSmi(int value) {
154 return (static_cast<Address>(value) << (kSmiTagSize + kSmiShiftSize)) |
249 // value must be a power of two.
432 // Empty tag value. Mostly used as placeholder.
648 V8_INLINE static bool HasHeapObjectTag(Address value) {
649 return (value & kHeapObjectTagMask) == static_cast<Address>(kHeapObjectTag);
652 V8_INLINE static int SmiValue(Address value) {
653 return PlatformSmiTagging::SmiToInt(value);
656 V8_INLINE static constexpr Address IntToSmi(int value) {
657 return internal::IntToSmi(value);
660 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
661 return PlatformSmiTagging::IsValidSmi(value);
713 V8_INLINE static void UpdateNodeFlag(Address* obj, bool value, int shift) {
716 *addr = static_cast<uint8_t>((*addr & ~mask) | (value << shift));
724 V8_INLINE static void UpdateNodeState(Address* obj, uint8_t value) {
726 *addr = static_cast<uint8_t>((*addr & ~kNodeStateMask) | value);
811 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
813 return base + static_cast<Address>(static_cast<uintptr_t>(value));
822 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
823 return static_cast<Address>(static_cast<uintptr_t>(value));
868 uint32_t value) {
870 return base + static_cast<Address>(static_cast<uintptr_t>(value));
896 CastCheck<std::is_base_of<Data, T>::value &&
897 !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
904 // The maximum value in enum GarbageCollectionReason, defined in heap.h.