OLD | NEW |
---|---|
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 V(Proxy, prototype_accessors, PrototypeAccessors) \ | 125 V(Proxy, prototype_accessors, PrototypeAccessors) \ |
126 V(NumberDictionary, code_stubs, CodeStubs) \ | 126 V(NumberDictionary, code_stubs, CodeStubs) \ |
127 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 127 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
128 V(Code, js_entry_code, JsEntryCode) \ | 128 V(Code, js_entry_code, JsEntryCode) \ |
129 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 129 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
130 V(Code, c_entry_code, CEntryCode) \ | 130 V(Code, c_entry_code, CEntryCode) \ |
131 V(Code, c_entry_debug_break_code, CEntryDebugBreakCode) \ | 131 V(Code, c_entry_debug_break_code, CEntryDebugBreakCode) \ |
132 V(FixedArray, number_string_cache, NumberStringCache) \ | 132 V(FixedArray, number_string_cache, NumberStringCache) \ |
133 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 133 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
134 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 134 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
135 V(Object, last_script_id, LastScriptId) | 135 V(Object, last_script_id, LastScriptId) \ |
136 V(Smi, stack_limit, StackLimit) | |
136 | 137 |
137 | 138 |
138 #define ROOT_LIST(V) \ | 139 #define ROOT_LIST(V) \ |
139 STRONG_ROOT_LIST(V) \ | 140 STRONG_ROOT_LIST(V) \ |
140 V(SymbolTable, symbol_table, SymbolTable) | 141 V(SymbolTable, symbol_table, SymbolTable) |
141 | 142 |
142 #define SYMBOL_LIST(V) \ | 143 #define SYMBOL_LIST(V) \ |
143 V(Array_symbol, "Array") \ | 144 V(Array_symbol, "Array") \ |
144 V(Object_symbol, "Object") \ | 145 V(Object_symbol, "Object") \ |
145 V(Proto_symbol, "__proto__") \ | 146 V(Proto_symbol, "__proto__") \ |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 static bool ConfigureHeapDefault(); | 221 static bool ConfigureHeapDefault(); |
221 | 222 |
222 // Initializes the global object heap. If create_heap_objects is true, | 223 // Initializes the global object heap. If create_heap_objects is true, |
223 // also creates the basic non-mutable objects. | 224 // also creates the basic non-mutable objects. |
224 // Returns whether it succeeded. | 225 // Returns whether it succeeded. |
225 static bool Setup(bool create_heap_objects); | 226 static bool Setup(bool create_heap_objects); |
226 | 227 |
227 // Destroys all memory allocated by the heap. | 228 // Destroys all memory allocated by the heap. |
228 static void TearDown(); | 229 static void TearDown(); |
229 | 230 |
231 // Sets the stack limit in the in the roots_ array. Some architectures | |
Mads Ager (chromium)
2009/08/26 10:09:28
in the in the -> in the
| |
232 // generate code that looks here, because it is faster than loading from the | |
233 // static jslimit_ variable. | |
234 static void SetStackLimit(intptr_t limit); | |
235 | |
230 // Returns whether Setup has been called. | 236 // Returns whether Setup has been called. |
231 static bool HasBeenSetup(); | 237 static bool HasBeenSetup(); |
232 | 238 |
233 // Returns the maximum heap capacity. | 239 // Returns the maximum heap capacity. |
234 static int MaxCapacity() { | 240 static int MaxCapacity() { |
235 return young_generation_size_ + old_generation_size_; | 241 return young_generation_size_ + old_generation_size_; |
236 } | 242 } |
237 static int SemiSpaceSize() { return semispace_size_; } | 243 static int SemiSpaceSize() { return semispace_size_; } |
238 static int InitialSemiSpaceSize() { return initial_semispace_size_; } | 244 static int InitialSemiSpaceSize() { return initial_semispace_size_; } |
239 static int YoungGenerationSize() { return young_generation_size_; } | 245 static int YoungGenerationSize() { return young_generation_size_; } |
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1499 int marked_count_; | 1505 int marked_count_; |
1500 | 1506 |
1501 // The count from the end of the previous full GC. Will be zero if there | 1507 // The count from the end of the previous full GC. Will be zero if there |
1502 // was no previous full GC. | 1508 // was no previous full GC. |
1503 int previous_marked_count_; | 1509 int previous_marked_count_; |
1504 }; | 1510 }; |
1505 | 1511 |
1506 } } // namespace v8::internal | 1512 } } // namespace v8::internal |
1507 | 1513 |
1508 #endif // V8_HEAP_H_ | 1514 #endif // V8_HEAP_H_ |
OLD | NEW |