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

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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 && !V8_INTERPRETED_REGEXP 121 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
122 #define STRONG_ROOT_LIST(V) \ 122 #define STRONG_ROOT_LIST(V) \
123 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ 123 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
124 V(Code, re_c_entry_code, RegExpCEntryCode) 124 V(Code, re_c_entry_code, RegExpCEntryCode) \
125 V(Code, direct_c_entry_code, DirectCEntryCode)
126 #elif V8_TARGET_ARCH_ARM
127 #define STRONG_ROOT_LIST(V) \
128 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
129 V(Code, direct_c_entry_code, DirectCEntryCode)
125 #else 130 #else
126 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) 131 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V)
127 #endif 132 #endif
128 133
129 #define ROOT_LIST(V) \ 134 #define ROOT_LIST(V) \
130 STRONG_ROOT_LIST(V) \ 135 STRONG_ROOT_LIST(V) \
131 V(SymbolTable, symbol_table, SymbolTable) 136 V(SymbolTable, symbol_table, SymbolTable)
132 137
133 #define SYMBOL_LIST(V) \ 138 #define SYMBOL_LIST(V) \
134 V(Array_symbol, "Array") \ 139 V(Array_symbol, "Array") \
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); 1300 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell();
1296 1301
1297 // Initializes a JSObject based on its map. 1302 // Initializes a JSObject based on its map.
1298 static void InitializeJSObjectFromMap(JSObject* obj, 1303 static void InitializeJSObjectFromMap(JSObject* obj,
1299 FixedArray* properties, 1304 FixedArray* properties,
1300 Map* map); 1305 Map* map);
1301 1306
1302 static bool CreateInitialMaps(); 1307 static bool CreateInitialMaps();
1303 static bool CreateInitialObjects(); 1308 static bool CreateInitialObjects();
1304 1309
1305 // These four Create*EntryStub functions are here and forced to not be inlined 1310 // 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. 1311 // because of a gcc-4.4 bug that assigns wrong vtable entries.
1307 NO_INLINE(static void CreateCEntryStub()); 1312 NO_INLINE(static void CreateCEntryStub());
1308 NO_INLINE(static void CreateJSEntryStub()); 1313 NO_INLINE(static void CreateJSEntryStub());
1309 NO_INLINE(static void CreateJSConstructEntryStub()); 1314 NO_INLINE(static void CreateJSConstructEntryStub());
1310 NO_INLINE(static void CreateRegExpCEntryStub()); 1315 NO_INLINE(static void CreateRegExpCEntryStub());
1316 NO_INLINE(static void CreateDirectCEntryStub());
1311 1317
1312 static void CreateFixedStubs(); 1318 static void CreateFixedStubs();
1313 1319
1314 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, 1320 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string,
1315 Object* to_number); 1321 Object* to_number);
1316 1322
1317 // Allocate empty fixed array. 1323 // Allocate empty fixed array.
1318 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); 1324 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray();
1319 1325
1320 // Performs a minor collection in new generation. 1326 // 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 2129 // Return whether this object should be retained. If NULL is returned the
2124 // object has no references. Otherwise the address of the retained object 2130 // 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. 2131 // should be returned as in some GC situations the object has been moved.
2126 virtual Object* RetainAs(Object* object) = 0; 2132 virtual Object* RetainAs(Object* object) = 0;
2127 }; 2133 };
2128 2134
2129 2135
2130 } } // namespace v8::internal 2136 } } // namespace v8::internal
2131 2137
2132 #endif // V8_HEAP_H_ 2138 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698