| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 namespace v8 { | 45 namespace v8 { |
| 46 namespace internal { | 46 namespace internal { |
| 47 | 47 |
| 48 // TODO(isolates): remove HEAP here | 48 // TODO(isolates): remove HEAP here |
| 49 #define HEAP (_inline_get_heap_()) | 49 #define HEAP (_inline_get_heap_()) |
| 50 class Heap; | 50 class Heap; |
| 51 inline Heap* _inline_get_heap_(); | 51 inline Heap* _inline_get_heap_(); |
| 52 | 52 |
| 53 | 53 |
| 54 // Defines all the roots in Heap. | 54 // Defines all the roots in Heap. |
| 55 #define STRONG_ROOT_LIST(V) \ | 55 #define STRONG_ROOT_LIST(V) \ |
| 56 V(Map, byte_array_map, ByteArrayMap) \ | 56 V(Map, byte_array_map, ByteArrayMap) \ |
| 57 V(Map, free_space_map, FreeSpaceMap) \ | 57 V(Map, free_space_map, FreeSpaceMap) \ |
| 58 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ | 58 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ |
| 59 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ | 59 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ |
| 60 /* Cluster the most popular ones in a few cache lines here at the top. */ \ | 60 /* Cluster the most popular ones in a few cache lines here at the top. */ \ |
| 61 V(Smi, store_buffer_top, StoreBufferTop) \ | 61 V(Smi, store_buffer_top, StoreBufferTop) \ |
| 62 V(Object, undefined_value, UndefinedValue) \ | 62 V(Oddball, undefined_value, UndefinedValue) \ |
| 63 V(Object, the_hole_value, TheHoleValue) \ | 63 V(Oddball, the_hole_value, TheHoleValue) \ |
| 64 V(Object, null_value, NullValue) \ | 64 V(Oddball, null_value, NullValue) \ |
| 65 V(Object, true_value, TrueValue) \ | 65 V(Oddball, true_value, TrueValue) \ |
| 66 V(Object, false_value, FalseValue) \ | 66 V(Oddball, false_value, FalseValue) \ |
| 67 V(Object, arguments_marker, ArgumentsMarker) \ | 67 V(Oddball, arguments_marker, ArgumentsMarker) \ |
| 68 V(Object, frame_alignment_marker, FrameAlignmentMarker) \ | 68 V(Oddball, frame_alignment_marker, FrameAlignmentMarker) \ |
| 69 V(Map, heap_number_map, HeapNumberMap) \ | 69 V(Map, heap_number_map, HeapNumberMap) \ |
| 70 V(Map, global_context_map, GlobalContextMap) \ | 70 V(Map, global_context_map, GlobalContextMap) \ |
| 71 V(Map, fixed_array_map, FixedArrayMap) \ | 71 V(Map, fixed_array_map, FixedArrayMap) \ |
| 72 V(Map, serialized_scope_info_map, SerializedScopeInfoMap) \ | 72 V(Map, serialized_scope_info_map, SerializedScopeInfoMap) \ |
| 73 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 73 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
| 74 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 74 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
| 75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
| 76 V(Map, meta_map, MetaMap) \ | 76 V(Map, meta_map, MetaMap) \ |
| 77 V(Map, hash_table_map, HashTableMap) \ | 77 V(Map, hash_table_map, HashTableMap) \ |
| 78 V(Smi, stack_limit, StackLimit) \ | 78 V(Smi, stack_limit, StackLimit) \ |
| 79 V(FixedArray, number_string_cache, NumberStringCache) \ | 79 V(FixedArray, number_string_cache, NumberStringCache) \ |
| 80 V(FixedArray, string_locks, StringLocks) \ | 80 V(FixedArray, string_locks, StringLocks) \ |
| 81 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ | 81 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ |
| 82 V(Object, instanceof_cache_map, InstanceofCacheMap) \ | 82 V(Object, instanceof_cache_map, InstanceofCacheMap) \ |
| 83 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ | 83 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ |
| 84 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 84 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
| 85 V(FixedArray, string_split_cache, StringSplitCache) \ | 85 V(FixedArray, string_split_cache, StringSplitCache) \ |
| 86 V(Object, termination_exception, TerminationException) \ | 86 V(Object, termination_exception, TerminationException) \ |
| 87 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 87 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
| 88 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 88 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
| 89 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ | 89 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ |
| 90 V(String, empty_string, EmptyString) \ | 90 V(String, empty_string, EmptyString) \ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 120 V(Map, function_context_map, FunctionContextMap) \ | 120 V(Map, function_context_map, FunctionContextMap) \ |
| 121 V(Map, catch_context_map, CatchContextMap) \ | 121 V(Map, catch_context_map, CatchContextMap) \ |
| 122 V(Map, with_context_map, WithContextMap) \ | 122 V(Map, with_context_map, WithContextMap) \ |
| 123 V(Map, block_context_map, BlockContextMap) \ | 123 V(Map, block_context_map, BlockContextMap) \ |
| 124 V(Map, code_map, CodeMap) \ | 124 V(Map, code_map, CodeMap) \ |
| 125 V(Map, oddball_map, OddballMap) \ | 125 V(Map, oddball_map, OddballMap) \ |
| 126 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 126 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
| 127 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 127 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
| 128 V(Map, message_object_map, JSMessageObjectMap) \ | 128 V(Map, message_object_map, JSMessageObjectMap) \ |
| 129 V(Map, foreign_map, ForeignMap) \ | 129 V(Map, foreign_map, ForeignMap) \ |
| 130 V(Object, nan_value, NanValue) \ | 130 V(HeapNumber, nan_value, NanValue) \ |
| 131 V(Object, infinity_value, InfinityValue) \ | 131 V(HeapNumber, infinity_value, InfinityValue) \ |
| 132 V(Object, minus_zero_value, MinusZeroValue) \ | 132 V(HeapNumber, minus_zero_value, MinusZeroValue) \ |
| 133 V(Map, neander_map, NeanderMap) \ | 133 V(Map, neander_map, NeanderMap) \ |
| 134 V(JSObject, message_listeners, MessageListeners) \ | 134 V(JSObject, message_listeners, MessageListeners) \ |
| 135 V(Foreign, prototype_accessors, PrototypeAccessors) \ | 135 V(Foreign, prototype_accessors, PrototypeAccessors) \ |
| 136 V(NumberDictionary, code_stubs, CodeStubs) \ | 136 V(NumberDictionary, code_stubs, CodeStubs) \ |
| 137 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 137 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
| 138 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 138 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
| 139 V(Code, js_entry_code, JsEntryCode) \ | 139 V(Code, js_entry_code, JsEntryCode) \ |
| 140 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 140 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
| 141 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 141 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 142 V(Object, last_script_id, LastScriptId) \ | 142 V(Object, last_script_id, LastScriptId) \ |
| (...skipping 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 | 2484 |
| 2485 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2485 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2486 }; | 2486 }; |
| 2487 #endif // DEBUG || LIVE_OBJECT_LIST | 2487 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2488 | 2488 |
| 2489 } } // namespace v8::internal | 2489 } } // namespace v8::internal |
| 2490 | 2490 |
| 2491 #undef HEAP | 2491 #undef HEAP |
| 2492 | 2492 |
| 2493 #endif // V8_HEAP_H_ | 2493 #endif // V8_HEAP_H_ |
| OLD | NEW |