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

Side by Side Diff: src/heap.h

Issue 6170001: Direct call api functions (arm implementation) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 111 V(Code, js_construct_entry_code, JsConstructEntryCode) \
112 V(Code, c_entry_code, CEntryCode) \ 112 V(Code, c_entry_code, CEntryCode) \
113 V(FixedArray, number_string_cache, NumberStringCache) \ 113 V(FixedArray, number_string_cache, NumberStringCache) \
114 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ 114 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
115 V(FixedArray, natives_source_cache, NativesSourceCache) \ 115 V(FixedArray, natives_source_cache, NativesSourceCache) \
116 V(Object, last_script_id, LastScriptId) \ 116 V(Object, last_script_id, LastScriptId) \
117 V(Script, empty_script, EmptyScript) \ 117 V(Script, empty_script, EmptyScript) \
118 V(Smi, real_stack_limit, RealStackLimit) \ 118 V(Smi, real_stack_limit, RealStackLimit) \
119 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ 119 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \
120 120
121 #if V8_TARGET_ARCH_ARM
antonm 2011/01/21 17:56:36 Maybe we should restructure that differently: I'd
Zaheer 2011/01/24 09:43:31 Agree. i simplified one more bit and removed STRON
antonm 2011/01/26 11:36:37 Nice, thanks. On 2011/01/24 09:43:31, zaheer wrot
122 #define STRONG_ROOT_LIST_ARM(V) \
123 V(Code, direct_c_entry_code, DirectCEntryCode)
124 #else
125 #define STRONG_ROOT_LIST_ARM(V)
126 #endif
127
121 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 128 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
122 #define STRONG_ROOT_LIST(V) \ 129 #define STRONG_ROOT_LIST(V) \
123 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ 130 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
131 STRONG_ROOT_LIST_ARM(V) \
124 V(Code, re_c_entry_code, RegExpCEntryCode) 132 V(Code, re_c_entry_code, RegExpCEntryCode)
125 #else 133 #else
126 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) 134 #define STRONG_ROOT_LIST(V) \
135 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
136 STRONG_ROOT_LIST_ARM(V)
127 #endif 137 #endif
128 138
129 #define ROOT_LIST(V) \ 139 #define ROOT_LIST(V) \
130 STRONG_ROOT_LIST(V) \ 140 STRONG_ROOT_LIST(V) \
131 V(SymbolTable, symbol_table, SymbolTable) 141 V(SymbolTable, symbol_table, SymbolTable)
132 142
133 #define SYMBOL_LIST(V) \ 143 #define SYMBOL_LIST(V) \
134 V(Array_symbol, "Array") \ 144 V(Array_symbol, "Array") \
135 V(Object_symbol, "Object") \ 145 V(Object_symbol, "Object") \
136 V(Proto_symbol, "__proto__") \ 146 V(Proto_symbol, "__proto__") \
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); 1305 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell();
1296 1306
1297 // Initializes a JSObject based on its map. 1307 // Initializes a JSObject based on its map.
1298 static void InitializeJSObjectFromMap(JSObject* obj, 1308 static void InitializeJSObjectFromMap(JSObject* obj,
1299 FixedArray* properties, 1309 FixedArray* properties,
1300 Map* map); 1310 Map* map);
1301 1311
1302 static bool CreateInitialMaps(); 1312 static bool CreateInitialMaps();
1303 static bool CreateInitialObjects(); 1313 static bool CreateInitialObjects();
1304 1314
1305 // These four Create*EntryStub functions are here and forced to not be inlined 1315 // These five Create*EntryStub functions are here and forced to not be inlined
1306 // because of a gcc-4.4 bug that assigns wrong vtable entries. 1316 // because of a gcc-4.4 bug that assigns wrong vtable entries.
1307 NO_INLINE(static void CreateCEntryStub()); 1317 NO_INLINE(static void CreateCEntryStub());
1308 NO_INLINE(static void CreateJSEntryStub()); 1318 NO_INLINE(static void CreateJSEntryStub());
1309 NO_INLINE(static void CreateJSConstructEntryStub()); 1319 NO_INLINE(static void CreateJSConstructEntryStub());
1310 NO_INLINE(static void CreateRegExpCEntryStub()); 1320 NO_INLINE(static void CreateRegExpCEntryStub());
1321 NO_INLINE(static void CreateDirectCEntryStub());
1311 1322
1312 static void CreateFixedStubs(); 1323 static void CreateFixedStubs();
1313 1324
1314 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, 1325 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string,
1315 Object* to_number); 1326 Object* to_number);
1316 1327
1317 // Allocate empty fixed array. 1328 // Allocate empty fixed array.
1318 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); 1329 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray();
1319 1330
1320 // Performs a minor collection in new generation. 1331 // Performs a minor collection in new generation.
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 // Return whether this object should be retained. If NULL is returned the 2134 // Return whether this object should be retained. If NULL is returned the
2124 // object has no references. Otherwise the address of the retained object 2135 // object has no references. Otherwise the address of the retained object
2125 // should be returned as in some GC situations the object has been moved. 2136 // should be returned as in some GC situations the object has been moved.
2126 virtual Object* RetainAs(Object* object) = 0; 2137 virtual Object* RetainAs(Object* object) = 0;
2127 }; 2138 };
2128 2139
2129 2140
2130 } } // namespace v8::internal 2141 } } // namespace v8::internal
2131 2142
2132 #endif // V8_HEAP_H_ 2143 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698