Lines Matching defs:value

73 // Smi constants for systems where tagged pointer is a 32-bit value.
82 V8_INLINE static int SmiToInt(const internal::Address value) {
85 return static_cast<int32_t>(static_cast<uint32_t>(value)) >> shift_bits;
87 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
88 // Is value in range [kSmiMinValue, kSmiMaxValue].
91 return (static_cast<uintptr_t>(value) -
98 // Smi constants for systems where tagged pointer is a 64-bit value.
107 V8_INLINE static int SmiToInt(const internal::Address value) {
110 return static_cast<int>(static_cast<intptr_t>(value) >> shift_bits);
112 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
113 // To be representable as a long smi, the value must be a 32-bit integer.
114 return (value == static_cast<int32_t>(value));
151 V8_INLINE static constexpr internal::Address IntToSmi(int value) {
152 return (static_cast<Address>(value) << (kSmiTagSize + kSmiShiftSize)) |
263 // value must be a power of two.
450 V8_INLINE static bool HasHeapObjectTag(const internal::Address value) {
451 return (value & kHeapObjectTagMask) == static_cast<Address>(kHeapObjectTag);
454 V8_INLINE static int SmiValue(const internal::Address value) {
455 return PlatformSmiTagging::SmiToInt(value);
458 V8_INLINE static constexpr internal::Address IntToSmi(int value) {
459 return internal::IntToSmi(value);
462 V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
463 return PlatformSmiTagging::IsValidSmi(value);
489 V8_INLINE static void UpdateNodeFlag(internal::Address* obj, bool value,
493 *addr = static_cast<uint8_t>((*addr & ~mask) | (value << shift));
501 V8_INLINE static void UpdateNodeState(internal::Address* obj, uint8_t value) {
503 *addr = static_cast<uint8_t>((*addr & ~kNodeStateMask) | value);
556 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
559 return base + static_cast<internal::Address>(static_cast<uintptr_t>(value));
568 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
569 return static_cast<internal::Address>(static_cast<uintptr_t>(value));
616 internal::Address heap_object_ptr, uint32_t value) {
619 return base + static_cast<internal::Address>(static_cast<uintptr_t>(value));
645 CastCheck<std::is_base_of<Data, T>::value &&
646 !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
653 // The maximum value in enum GarbageCollectionReason, defined in heap.h.