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

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, 10 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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell(); 1303 MUST_USE_RESULT static inline MaybeObject* AllocateRawCell();
1299 1304
1300 // Initializes a JSObject based on its map. 1305 // Initializes a JSObject based on its map.
1301 static void InitializeJSObjectFromMap(JSObject* obj, 1306 static void InitializeJSObjectFromMap(JSObject* obj,
1302 FixedArray* properties, 1307 FixedArray* properties,
1303 Map* map); 1308 Map* map);
1304 1309
1305 static bool CreateInitialMaps(); 1310 static bool CreateInitialMaps();
1306 static bool CreateInitialObjects(); 1311 static bool CreateInitialObjects();
1307 1312
1308 // These four Create*EntryStub functions are here and forced to not be inlined 1313 // These five Create*EntryStub functions are here and forced to not be inlined
1309 // because of a gcc-4.4 bug that assigns wrong vtable entries. 1314 // because of a gcc-4.4 bug that assigns wrong vtable entries.
1310 NO_INLINE(static void CreateCEntryStub()); 1315 NO_INLINE(static void CreateCEntryStub());
1311 NO_INLINE(static void CreateJSEntryStub()); 1316 NO_INLINE(static void CreateJSEntryStub());
1312 NO_INLINE(static void CreateJSConstructEntryStub()); 1317 NO_INLINE(static void CreateJSConstructEntryStub());
1313 NO_INLINE(static void CreateRegExpCEntryStub()); 1318 NO_INLINE(static void CreateRegExpCEntryStub());
1319 NO_INLINE(static void CreateDirectCEntryStub());
1314 1320
1315 static void CreateFixedStubs(); 1321 static void CreateFixedStubs();
1316 1322
1317 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string, 1323 MUST_USE_RESULT static MaybeObject* CreateOddball(const char* to_string,
1318 Object* to_number); 1324 Object* to_number);
1319 1325
1320 // Allocate empty fixed array. 1326 // Allocate empty fixed array.
1321 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray(); 1327 MUST_USE_RESULT static MaybeObject* AllocateEmptyFixedArray();
1322 1328
1323 // Performs a minor collection in new generation. 1329 // Performs a minor collection in new generation.
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 // Return whether this object should be retained. If NULL is returned the 2132 // Return whether this object should be retained. If NULL is returned the
2127 // object has no references. Otherwise the address of the retained object 2133 // object has no references. Otherwise the address of the retained object
2128 // should be returned as in some GC situations the object has been moved. 2134 // should be returned as in some GC situations the object has been moved.
2129 virtual Object* RetainAs(Object* object) = 0; 2135 virtual Object* RetainAs(Object* object) = 0;
2130 }; 2136 };
2131 2137
2132 2138
2133 } } // namespace v8::internal 2139 } } // namespace v8::internal
2134 2140
2135 #endif // V8_HEAP_H_ 2141 #endif // V8_HEAP_H_
OLDNEW
« src/assembler.cc ('K') | « src/code-stubs.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698