| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 static inline Object* AllocateRawCell(); | 1188 static inline Object* AllocateRawCell(); |
| 1189 | 1189 |
| 1190 // Initializes a JSObject based on its map. | 1190 // Initializes a JSObject based on its map. |
| 1191 static void InitializeJSObjectFromMap(JSObject* obj, | 1191 static void InitializeJSObjectFromMap(JSObject* obj, |
| 1192 FixedArray* properties, | 1192 FixedArray* properties, |
| 1193 Map* map); | 1193 Map* map); |
| 1194 | 1194 |
| 1195 static bool CreateInitialMaps(); | 1195 static bool CreateInitialMaps(); |
| 1196 static bool CreateInitialObjects(); | 1196 static bool CreateInitialObjects(); |
| 1197 | 1197 |
| 1198 // These four Create*EntryStub functions are here because of a gcc-4.4 bug | 1198 // These four Create*EntryStub functions are here and forced to not be inlined |
| 1199 // that assigns wrong vtable entries. | 1199 // because of a gcc-4.4 bug that assigns wrong vtable entries. |
| 1200 static void CreateCEntryStub(); | 1200 NO_INLINE(static void CreateCEntryStub()); |
| 1201 static void CreateJSEntryStub(); | 1201 NO_INLINE(static void CreateJSEntryStub()); |
| 1202 static void CreateJSConstructEntryStub(); | 1202 NO_INLINE(static void CreateJSConstructEntryStub()); |
| 1203 static void CreateRegExpCEntryStub(); | 1203 NO_INLINE(static void CreateRegExpCEntryStub()); |
| 1204 | 1204 |
| 1205 static void CreateFixedStubs(); | 1205 static void CreateFixedStubs(); |
| 1206 | 1206 |
| 1207 static Object* CreateOddball(const char* to_string, Object* to_number); | 1207 static Object* CreateOddball(const char* to_string, Object* to_number); |
| 1208 | 1208 |
| 1209 // Allocate empty fixed array. | 1209 // Allocate empty fixed array. |
| 1210 static Object* AllocateEmptyFixedArray(); | 1210 static Object* AllocateEmptyFixedArray(); |
| 1211 | 1211 |
| 1212 // Performs a minor collection in new generation. | 1212 // Performs a minor collection in new generation. |
| 1213 static void Scavenge(); | 1213 static void Scavenge(); |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1975 | 1975 |
| 1976 // To speed up scavenge collections new space string are kept | 1976 // To speed up scavenge collections new space string are kept |
| 1977 // separate from old space strings. | 1977 // separate from old space strings. |
| 1978 static List<Object*> new_space_strings_; | 1978 static List<Object*> new_space_strings_; |
| 1979 static List<Object*> old_space_strings_; | 1979 static List<Object*> old_space_strings_; |
| 1980 }; | 1980 }; |
| 1981 | 1981 |
| 1982 } } // namespace v8::internal | 1982 } } // namespace v8::internal |
| 1983 | 1983 |
| 1984 #endif // V8_HEAP_H_ | 1984 #endif // V8_HEAP_H_ |
| OLD | NEW |