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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 // (since both AllocateRaw and AllocateRawMap are inlined). | 914 // (since both AllocateRaw and AllocateRawMap are inlined). |
915 static inline Object* AllocateRawMap(int size_in_bytes); | 915 static inline Object* AllocateRawMap(int size_in_bytes); |
916 | 916 |
917 // Initializes a JSObject based on its map. | 917 // Initializes a JSObject based on its map. |
918 static void InitializeJSObjectFromMap(JSObject* obj, | 918 static void InitializeJSObjectFromMap(JSObject* obj, |
919 FixedArray* properties, | 919 FixedArray* properties, |
920 Map* map); | 920 Map* map); |
921 | 921 |
922 static bool CreateInitialMaps(); | 922 static bool CreateInitialMaps(); |
923 static bool CreateInitialObjects(); | 923 static bool CreateInitialObjects(); |
| 924 |
| 925 // These four Create*EntryStub functions are here because of a gcc-4.4 bug |
| 926 // that assigns wrong vtable entries. |
| 927 static void CreateCEntryStub(); |
| 928 static void CreateCEntryDebugBreakStub(); |
| 929 static void CreateJSEntryStub(); |
| 930 static void CreateJSConstructEntryStub(); |
924 static void CreateFixedStubs(); | 931 static void CreateFixedStubs(); |
| 932 |
925 static Object* CreateOddball(Map* map, | 933 static Object* CreateOddball(Map* map, |
926 const char* to_string, | 934 const char* to_string, |
927 Object* to_number); | 935 Object* to_number); |
928 | 936 |
929 // Allocate empty fixed array. | 937 // Allocate empty fixed array. |
930 static Object* AllocateEmptyFixedArray(); | 938 static Object* AllocateEmptyFixedArray(); |
931 | 939 |
932 // Performs a minor collection in new generation. | 940 // Performs a minor collection in new generation. |
933 static void Scavenge(); | 941 static void Scavenge(); |
934 | 942 |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 int marked_count_; | 1389 int marked_count_; |
1382 | 1390 |
1383 // The count from the end of the previous full GC. Will be zero if there | 1391 // The count from the end of the previous full GC. Will be zero if there |
1384 // was no previous full GC. | 1392 // was no previous full GC. |
1385 int previous_marked_count_; | 1393 int previous_marked_count_; |
1386 }; | 1394 }; |
1387 | 1395 |
1388 } } // namespace v8::internal | 1396 } } // namespace v8::internal |
1389 | 1397 |
1390 #endif // V8_HEAP_H_ | 1398 #endif // V8_HEAP_H_ |
OLD | NEW |