Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: src/heap.h

Issue 6624085: [Isolates] Merge 7051:7083 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/handles.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Defines all the roots in Heap. 49 // Defines all the roots in Heap.
50 #define UNCONDITIONAL_STRONG_ROOT_LIST(V) \ 50 #define UNCONDITIONAL_STRONG_ROOT_LIST(V) \
51 /* Put the byte array map early. We need it to be in place by the time */ \ 51 /* Put the byte array map early. We need it to be in place by the time */ \
52 /* the deserializer hits the next page, since it wants to put a byte */ \ 52 /* the deserializer hits the next page, since it wants to put a byte */ \
53 /* array in the unused space at the end of the page. */ \ 53 /* array in the unused space at the end of the page. */ \
54 V(Map, byte_array_map, ByteArrayMap) \ 54 V(Map, byte_array_map, ByteArrayMap) \
55 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ 55 V(Map, one_pointer_filler_map, OnePointerFillerMap) \
56 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ 56 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \
57 /* Cluster the most popular ones in a few cache lines here at the top. */ \ 57 /* Cluster the most popular ones in a few cache lines here at the top. */ \
58 V(Smi, stack_limit, StackLimit) \
59 V(Object, undefined_value, UndefinedValue) \ 58 V(Object, undefined_value, UndefinedValue) \
60 V(Object, the_hole_value, TheHoleValue) \ 59 V(Object, the_hole_value, TheHoleValue) \
61 V(Object, null_value, NullValue) \ 60 V(Object, null_value, NullValue) \
62 V(Object, true_value, TrueValue) \ 61 V(Object, true_value, TrueValue) \
63 V(Object, false_value, FalseValue) \ 62 V(Object, false_value, FalseValue) \
64 V(Object, arguments_marker, ArgumentsMarker) \ 63 V(Object, arguments_marker, ArgumentsMarker) \
65 V(Map, heap_number_map, HeapNumberMap) \ 64 V(Map, heap_number_map, HeapNumberMap) \
66 V(Map, global_context_map, GlobalContextMap) \ 65 V(Map, global_context_map, GlobalContextMap) \
67 V(Map, fixed_array_map, FixedArrayMap) \ 66 V(Map, fixed_array_map, FixedArrayMap) \
68 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 67 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
69 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 68 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
70 V(Map, meta_map, MetaMap) \ 69 V(Map, meta_map, MetaMap) \
70 V(Map, hash_table_map, HashTableMap) \
71 V(Smi, stack_limit, StackLimit) \
72 V(FixedArray, number_string_cache, NumberStringCache) \
73 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
74 V(Object, instanceof_cache_map, InstanceofCacheMap) \
75 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
76 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
71 V(Object, termination_exception, TerminationException) \ 77 V(Object, termination_exception, TerminationException) \
72 V(Map, hash_table_map, HashTableMap) \
73 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ 78 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
74 V(ByteArray, empty_byte_array, EmptyByteArray) \ 79 V(ByteArray, empty_byte_array, EmptyByteArray) \
80 V(String, empty_string, EmptyString) \
81 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
75 V(Map, string_map, StringMap) \ 82 V(Map, string_map, StringMap) \
76 V(Map, ascii_string_map, AsciiStringMap) \ 83 V(Map, ascii_string_map, AsciiStringMap) \
77 V(Map, symbol_map, SymbolMap) \ 84 V(Map, symbol_map, SymbolMap) \
85 V(Map, cons_string_map, ConsStringMap) \
86 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \
78 V(Map, ascii_symbol_map, AsciiSymbolMap) \ 87 V(Map, ascii_symbol_map, AsciiSymbolMap) \
79 V(Map, cons_symbol_map, ConsSymbolMap) \ 88 V(Map, cons_symbol_map, ConsSymbolMap) \
80 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ 89 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \
81 V(Map, external_symbol_map, ExternalSymbolMap) \ 90 V(Map, external_symbol_map, ExternalSymbolMap) \
82 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ 91 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \
83 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \ 92 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \
84 V(Map, cons_string_map, ConsStringMap) \
85 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \
86 V(Map, external_string_map, ExternalStringMap) \ 93 V(Map, external_string_map, ExternalStringMap) \
87 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \ 94 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \
88 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ 95 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \
89 V(Map, undetectable_string_map, UndetectableStringMap) \ 96 V(Map, undetectable_string_map, UndetectableStringMap) \
90 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ 97 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \
91 V(Map, pixel_array_map, PixelArrayMap) \ 98 V(Map, pixel_array_map, PixelArrayMap) \
92 V(Map, external_byte_array_map, ExternalByteArrayMap) \ 99 V(Map, external_byte_array_map, ExternalByteArrayMap) \
93 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ 100 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \
94 V(Map, external_short_array_map, ExternalShortArrayMap) \ 101 V(Map, external_short_array_map, ExternalShortArrayMap) \
95 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ 102 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \
96 V(Map, external_int_array_map, ExternalIntArrayMap) \ 103 V(Map, external_int_array_map, ExternalIntArrayMap) \
97 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ 104 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \
98 V(Map, external_float_array_map, ExternalFloatArrayMap) \ 105 V(Map, external_float_array_map, ExternalFloatArrayMap) \
99 V(Map, context_map, ContextMap) \ 106 V(Map, context_map, ContextMap) \
100 V(Map, catch_context_map, CatchContextMap) \ 107 V(Map, catch_context_map, CatchContextMap) \
101 V(Map, code_map, CodeMap) \ 108 V(Map, code_map, CodeMap) \
102 V(Map, oddball_map, OddballMap) \ 109 V(Map, oddball_map, OddballMap) \
103 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ 110 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
104 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ 111 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
105 V(Map, message_object_map, JSMessageObjectMap) \ 112 V(Map, message_object_map, JSMessageObjectMap) \
106 V(Map, proxy_map, ProxyMap) \ 113 V(Map, proxy_map, ProxyMap) \
107 V(Object, nan_value, NanValue) \ 114 V(Object, nan_value, NanValue) \
108 V(Object, minus_zero_value, MinusZeroValue) \ 115 V(Object, minus_zero_value, MinusZeroValue) \
109 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
110 V(Object, instanceof_cache_map, InstanceofCacheMap) \
111 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
112 V(String, empty_string, EmptyString) \
113 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
114 V(Map, neander_map, NeanderMap) \ 116 V(Map, neander_map, NeanderMap) \
115 V(JSObject, message_listeners, MessageListeners) \ 117 V(JSObject, message_listeners, MessageListeners) \
116 V(Proxy, prototype_accessors, PrototypeAccessors) \ 118 V(Proxy, prototype_accessors, PrototypeAccessors) \
117 V(NumberDictionary, code_stubs, CodeStubs) \ 119 V(NumberDictionary, code_stubs, CodeStubs) \
118 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 120 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
119 V(Code, js_entry_code, JsEntryCode) \ 121 V(Code, js_entry_code, JsEntryCode) \
120 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 122 V(Code, js_construct_entry_code, JsConstructEntryCode) \
121 V(Code, c_entry_code, CEntryCode) \ 123 V(Code, c_entry_code, CEntryCode) \
122 V(FixedArray, number_string_cache, NumberStringCache) \
123 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
124 V(FixedArray, natives_source_cache, NativesSourceCache) \ 124 V(FixedArray, natives_source_cache, NativesSourceCache) \
125 V(Object, last_script_id, LastScriptId) \ 125 V(Object, last_script_id, LastScriptId) \
126 V(Script, empty_script, EmptyScript) \ 126 V(Script, empty_script, EmptyScript) \
127 V(Smi, real_stack_limit, RealStackLimit) \ 127 V(Smi, real_stack_limit, RealStackLimit) \
128 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ 128 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \
129 129
130 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 130 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
131 #define STRONG_ROOT_LIST(V) \ 131 #define STRONG_ROOT_LIST(V) \
132 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ 132 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
133 V(Code, re_c_entry_code, RegExpCEntryCode) \ 133 V(Code, re_c_entry_code, RegExpCEntryCode) \
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 V(space_symbol, " ") \ 217 V(space_symbol, " ") \
218 V(exec_symbol, "exec") \ 218 V(exec_symbol, "exec") \
219 V(zero_symbol, "0") \ 219 V(zero_symbol, "0") \
220 V(global_eval_symbol, "GlobalEval") \ 220 V(global_eval_symbol, "GlobalEval") \
221 V(identity_hash_symbol, "v8::IdentityHash") \ 221 V(identity_hash_symbol, "v8::IdentityHash") \
222 V(closure_symbol, "(closure)") \ 222 V(closure_symbol, "(closure)") \
223 V(use_strict, "use strict") \ 223 V(use_strict, "use strict") \
224 V(KeyedLoadExternalArray_symbol, "KeyedLoadExternalArray") \ 224 V(KeyedLoadExternalArray_symbol, "KeyedLoadExternalArray") \
225 V(KeyedStoreExternalArray_symbol, "KeyedStoreExternalArray") 225 V(KeyedStoreExternalArray_symbol, "KeyedStoreExternalArray")
226 226
227
228 // Forward declarations. 227 // Forward declarations.
229 class GCTracer; 228 class GCTracer;
230 class HeapStats; 229 class HeapStats;
231 class Isolate; 230 class Isolate;
232 class WeakObjectRetainer; 231 class WeakObjectRetainer;
233 232
234 233
235 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap, 234 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap,
236 Object** pointer); 235 Object** pointer);
237 236
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2244 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2246 }; 2245 };
2247 #endif // DEBUG || LIVE_OBJECT_LIST 2246 #endif // DEBUG || LIVE_OBJECT_LIST
2248 2247
2249 2248
2250 } } // namespace v8::internal 2249 } } // namespace v8::internal
2251 2250
2252 #undef HEAP 2251 #undef HEAP
2253 2252
2254 #endif // V8_HEAP_H_ 2253 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698