| OLD | NEW |
| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 115 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
| 116 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 116 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 117 V(Object, last_script_id, LastScriptId) \ | 117 V(Object, last_script_id, LastScriptId) \ |
| 118 V(Script, empty_script, EmptyScript) \ | 118 V(Script, empty_script, EmptyScript) \ |
| 119 V(Smi, real_stack_limit, RealStackLimit) \ | 119 V(Smi, real_stack_limit, RealStackLimit) \ |
| 120 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 120 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
| 121 | 121 |
| 122 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP | 122 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP |
| 123 #define STRONG_ROOT_LIST(V) \ | 123 #define STRONG_ROOT_LIST(V) \ |
| 124 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ | 124 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ |
| 125 V(Code, re_c_entry_code, RegExpCEntryCode) | 125 V(Code, re_c_entry_code, RegExpCEntryCode) \ |
| 126 V(Code, direct_c_entry_code, DirectCEntryCode) |
| 127 #elif V8_TARGET_ARCH_ARM |
| 128 #define STRONG_ROOT_LIST(V) \ |
| 129 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ |
| 130 V(Code, direct_c_entry_code, DirectCEntryCode) |
| 126 #else | 131 #else |
| 127 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) | 132 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) |
| 128 #endif | 133 #endif |
| 129 | 134 |
| 130 #define ROOT_LIST(V) \ | 135 #define ROOT_LIST(V) \ |
| 131 STRONG_ROOT_LIST(V) \ | 136 STRONG_ROOT_LIST(V) \ |
| 132 V(SymbolTable, symbol_table, SymbolTable) | 137 V(SymbolTable, symbol_table, SymbolTable) |
| 133 | 138 |
| 134 #define SYMBOL_LIST(V) \ | 139 #define SYMBOL_LIST(V) \ |
| 135 V(Array_symbol, "Array") \ | 140 V(Array_symbol, "Array") \ |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); | 1318 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); |
| 1314 | 1319 |
| 1315 // Initializes a JSObject based on its map. | 1320 // Initializes a JSObject based on its map. |
| 1316 static void InitializeJSObjectFromMap(JSObject* obj, | 1321 static void InitializeJSObjectFromMap(JSObject* obj, |
| 1317 FixedArray* properties, | 1322 FixedArray* properties, |
| 1318 Map* map); | 1323 Map* map); |
| 1319 | 1324 |
| 1320 static bool CreateInitialMaps(); | 1325 static bool CreateInitialMaps(); |
| 1321 static bool CreateInitialObjects(); | 1326 static bool CreateInitialObjects(); |
| 1322 | 1327 |
| 1323 // These four Create*EntryStub functions are here and forced to not be inlined | 1328 // These five Create*EntryStub functions are here and forced to not be inlined |
| 1324 // because of a gcc-4.4 bug that assigns wrong vtable entries. | 1329 // because of a gcc-4.4 bug that assigns wrong vtable entries. |
| 1325 NO_INLINE(static void CreateCEntryStub()); | 1330 NO_INLINE(static void CreateCEntryStub()); |
| 1326 NO_INLINE(static void CreateJSEntryStub()); | 1331 NO_INLINE(static void CreateJSEntryStub()); |
| 1327 NO_INLINE(static void CreateJSConstructEntryStub()); | 1332 NO_INLINE(static void CreateJSConstructEntryStub()); |
| 1328 NO_INLINE(static void CreateRegExpCEntryStub()); | 1333 NO_INLINE(static void CreateRegExpCEntryStub()); |
| 1334 NO_INLINE(static void CreateDirectCEntryStub()); |
| 1329 | 1335 |
| 1330 static void CreateFixedStubs(); | 1336 static void CreateFixedStubs(); |
| 1331 | 1337 |
| 1332 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, | 1338 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, |
| 1333 Object* to_number); | 1339 Object* to_number); |
| 1334 | 1340 |
| 1335 // Allocate empty fixed array. | 1341 // Allocate empty fixed array. |
| 1336 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); | 1342 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); |
| 1337 | 1343 |
| 1338 // Performs a minor collection in new generation. | 1344 // Performs a minor collection in new generation. |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 // Return whether this object should be retained. If NULL is returned the | 2147 // Return whether this object should be retained. If NULL is returned the |
| 2142 // object has no references. Otherwise the address of the retained object | 2148 // object has no references. Otherwise the address of the retained object |
| 2143 // should be returned as in some GC situations the object has been moved. | 2149 // should be returned as in some GC situations the object has been moved. |
| 2144 virtual Object* RetainAs(Object* object) = 0; | 2150 virtual Object* RetainAs(Object* object) = 0; |
| 2145 }; | 2151 }; |
| 2146 | 2152 |
| 2147 | 2153 |
| 2148 } } // namespace v8::internal | 2154 } } // namespace v8::internal |
| 2149 | 2155 |
| 2150 #endif // V8_HEAP_H_ | 2156 #endif // V8_HEAP_H_ |
| OLD | NEW |