| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index f3830dd18bdc55bd04423728947b82f7d521085a..ee1fca906c5e3d23e7ef3d7f2c6a0f1267cf36b1 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -198,58 +198,6 @@ namespace internal {
|
| SMI_ROOT_LIST(V) \
|
| V(StringTable, string_table, StringTable)
|
|
|
| -// Heap roots that are known to be immortal immovable, for which we can safely
|
| -// skip write barriers.
|
| -#define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \
|
| - V(byte_array_map) \
|
| - V(free_space_map) \
|
| - V(one_pointer_filler_map) \
|
| - V(two_pointer_filler_map) \
|
| - V(undefined_value) \
|
| - V(the_hole_value) \
|
| - V(null_value) \
|
| - V(true_value) \
|
| - V(false_value) \
|
| - V(uninitialized_value) \
|
| - V(cell_map) \
|
| - V(global_property_cell_map) \
|
| - V(shared_function_info_map) \
|
| - V(meta_map) \
|
| - V(heap_number_map) \
|
| - V(mutable_heap_number_map) \
|
| - V(native_context_map) \
|
| - V(fixed_array_map) \
|
| - V(code_map) \
|
| - V(scope_info_map) \
|
| - V(fixed_cow_array_map) \
|
| - V(fixed_double_array_map) \
|
| - V(constant_pool_array_map) \
|
| - V(weak_cell_map) \
|
| - V(no_interceptor_result_sentinel) \
|
| - V(hash_table_map) \
|
| - V(ordered_hash_table_map) \
|
| - V(empty_fixed_array) \
|
| - V(empty_byte_array) \
|
| - V(empty_descriptor_array) \
|
| - V(empty_constant_pool_array) \
|
| - V(arguments_marker) \
|
| - V(symbol_map) \
|
| - V(sloppy_arguments_elements_map) \
|
| - V(function_context_map) \
|
| - V(catch_context_map) \
|
| - V(with_context_map) \
|
| - V(block_context_map) \
|
| - V(module_context_map) \
|
| - V(global_context_map) \
|
| - V(undefined_map) \
|
| - V(the_hole_map) \
|
| - V(null_map) \
|
| - V(boolean_map) \
|
| - V(uninitialized_map) \
|
| - V(message_object_map) \
|
| - V(foreign_map) \
|
| - V(neander_map)
|
| -
|
| #define INTERNALIZED_STRING_LIST(V) \
|
| V(Object_string, "Object") \
|
| V(proto_string, "__proto__") \
|
| @@ -351,6 +299,60 @@ namespace internal {
|
| V(class_start_position_symbol) \
|
| V(class_end_position_symbol)
|
|
|
| +// Heap roots that are known to be immortal immovable, for which we can safely
|
| +// skip write barriers. This list is not complete and has omissions.
|
| +#define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \
|
| + V(ByteArrayMap) \
|
| + V(FreeSpaceMap) \
|
| + V(OnePointerFillerMap) \
|
| + V(TwoPointerFillerMap) \
|
| + V(UndefinedValue) \
|
| + V(TheHoleValue) \
|
| + V(NullValue) \
|
| + V(TrueValue) \
|
| + V(FalseValue) \
|
| + V(UninitializedValue) \
|
| + V(CellMap) \
|
| + V(GlobalPropertyCellMap) \
|
| + V(SharedFunctionInfoMap) \
|
| + V(MetaMap) \
|
| + V(HeapNumberMap) \
|
| + V(MutableHeapNumberMap) \
|
| + V(NativeContextMap) \
|
| + V(FixedArrayMap) \
|
| + V(CodeMap) \
|
| + V(ScopeInfoMap) \
|
| + V(FixedCOWArrayMap) \
|
| + V(FixedDoubleArrayMap) \
|
| + V(ConstantPoolArrayMap) \
|
| + V(WeakCellMap) \
|
| + V(NoInterceptorResultSentinel) \
|
| + V(HashTableMap) \
|
| + V(OrderedHashTableMap) \
|
| + V(EmptyFixedArray) \
|
| + V(EmptyByteArray) \
|
| + V(EmptyDescriptorArray) \
|
| + V(EmptyConstantPoolArray) \
|
| + V(ArgumentsMarker) \
|
| + V(SymbolMap) \
|
| + V(SloppyArgumentsElementsMap) \
|
| + V(FunctionContextMap) \
|
| + V(CatchContextMap) \
|
| + V(WithContextMap) \
|
| + V(BlockContextMap) \
|
| + V(ModuleContextMap) \
|
| + V(GlobalContextMap) \
|
| + V(UndefinedMap) \
|
| + V(TheHoleMap) \
|
| + V(NullMap) \
|
| + V(BooleanMap) \
|
| + V(UninitializedMap) \
|
| + V(ArgumentsMarkerMap) \
|
| + V(JSMessageObjectMap) \
|
| + V(ForeignMap) \
|
| + V(NeanderMap) \
|
| + PRIVATE_SYMBOL_LIST(V)
|
| +
|
| // Forward declarations.
|
| class HeapStats;
|
| class Isolate;
|
| @@ -928,6 +930,8 @@ class Heap {
|
| return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
|
| }
|
|
|
| + static bool RootIsImmortalImmovable(int root_index);
|
| +
|
| #ifdef VERIFY_HEAP
|
| // Verify the heap is in its normal state before or after a GC.
|
| void Verify();
|
| @@ -1116,6 +1120,8 @@ class Heap {
|
| kSmiRootsStart = kStringTableRootIndex + 1
|
| };
|
|
|
| + Object* root(RootListIndex index) { return roots_[index]; }
|
| +
|
| STATIC_ASSERT(kUndefinedValueRootIndex ==
|
| Internals::kUndefinedValueRootIndex);
|
| STATIC_ASSERT(kNullValueRootIndex == Internals::kNullValueRootIndex);
|
|
|