14 map_ = isolate->root_index_map();
15 if (
map_ !=
nullptr)
return;
28 uint32_t index =
static_cast<uint32_t
>(root_index);
29 if (maybe_index.
IsJust()) {
37 isolate->set_root_index_map(
map_);
V8_INLINE bool IsJust() const
V8_INLINE T FromJust() const &
void Set(Type value, uint32_t index)
Maybe< uint32_t > Get(Type value) const
RootIndexMap(Isolate *isolate)
HeapObjectToIndexHashMap * map_
static constexpr bool IsImmortalImmovable(RootIndex root_index)
V8_INLINE constexpr bool IsHeapObject(TaggedImpl< kRefType, StorageType > obj)
@ kFirstStrongOrReadOnlyRoot
@ kLastStrongOrReadOnlyRoot
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
#define DCHECK_LT(v1, v2)