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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); | 1317 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); |
1313 | 1318 |
1314 // Initializes a JSObject based on its map. | 1319 // Initializes a JSObject based on its map. |
1315 static void InitializeJSObjectFromMap(JSObject* obj, | 1320 static void InitializeJSObjectFromMap(JSObject* obj, |
1316 FixedArray* properties, | 1321 FixedArray* properties, |
1317 Map* map); | 1322 Map* map); |
1318 | 1323 |
1319 static bool CreateInitialMaps(); | 1324 static bool CreateInitialMaps(); |
1320 static bool CreateInitialObjects(); | 1325 static bool CreateInitialObjects(); |
1321 | 1326 |
1322 // These four Create*EntryStub functions are here and forced to not be inlined | 1327 // These five Create*EntryStub functions are here and forced to not be inlined |
1323 // because of a gcc-4.4 bug that assigns wrong vtable entries. | 1328 // because of a gcc-4.4 bug that assigns wrong vtable entries. |
1324 NO_INLINE(static void CreateCEntryStub()); | 1329 NO_INLINE(static void CreateCEntryStub()); |
1325 NO_INLINE(static void CreateJSEntryStub()); | 1330 NO_INLINE(static void CreateJSEntryStub()); |
1326 NO_INLINE(static void CreateJSConstructEntryStub()); | 1331 NO_INLINE(static void CreateJSConstructEntryStub()); |
1327 NO_INLINE(static void CreateRegExpCEntryStub()); | 1332 NO_INLINE(static void CreateRegExpCEntryStub()); |
| 1333 NO_INLINE(static void CreateDirectCEntryStub()); |
1328 | 1334 |
1329 static void CreateFixedStubs(); | 1335 static void CreateFixedStubs(); |
1330 | 1336 |
1331 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, | 1337 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, |
1332 Object* to_number); | 1338 Object* to_number); |
1333 | 1339 |
1334 // Allocate empty fixed array. | 1340 // Allocate empty fixed array. |
1335 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); | 1341 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); |
1336 | 1342 |
1337 // Performs a minor collection in new generation. | 1343 // Performs a minor collection in new generation. |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 // Return whether this object should be retained. If NULL is returned the | 2146 // Return whether this object should be retained. If NULL is returned the |
2141 // object has no references. Otherwise the address of the retained object | 2147 // object has no references. Otherwise the address of the retained object |
2142 // should be returned as in some GC situations the object has been moved. | 2148 // should be returned as in some GC situations the object has been moved. |
2143 virtual Object* RetainAs(Object* object) = 0; | 2149 virtual Object* RetainAs(Object* object) = 0; |
2144 }; | 2150 }; |
2145 | 2151 |
2146 | 2152 |
2147 } } // namespace v8::internal | 2153 } } // namespace v8::internal |
2148 | 2154 |
2149 #endif // V8_HEAP_H_ | 2155 #endif // V8_HEAP_H_ |
OLD | NEW |