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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 static void MarkCompactPrologue(bool is_compacting); | 1171 static void MarkCompactPrologue(bool is_compacting); |
1172 static void MarkCompactEpilogue(bool is_compacting); | 1172 static void MarkCompactEpilogue(bool is_compacting); |
1173 | 1173 |
1174 // Helper function used by CopyObject to copy a source object to an | 1174 // Helper function used by CopyObject to copy a source object to an |
1175 // allocated target object and update the forwarding pointer in the source | 1175 // allocated target object and update the forwarding pointer in the source |
1176 // object. Returns the target object. | 1176 // object. Returns the target object. |
1177 static inline HeapObject* MigrateObject(HeapObject* source, | 1177 static inline HeapObject* MigrateObject(HeapObject* source, |
1178 HeapObject* target, | 1178 HeapObject* target, |
1179 int size); | 1179 int size); |
1180 | 1180 |
| 1181 static void ClearJSFunctionResultCaches(); |
| 1182 |
1181 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) | 1183 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
1182 // Record the copy of an object in the NewSpace's statistics. | 1184 // Record the copy of an object in the NewSpace's statistics. |
1183 static void RecordCopiedObject(HeapObject* obj); | 1185 static void RecordCopiedObject(HeapObject* obj); |
1184 | 1186 |
1185 // Record statistics before and after garbage collection. | 1187 // Record statistics before and after garbage collection. |
1186 static void ReportStatisticsBeforeGC(); | 1188 static void ReportStatisticsBeforeGC(); |
1187 static void ReportStatisticsAfterGC(); | 1189 static void ReportStatisticsAfterGC(); |
1188 #endif | 1190 #endif |
1189 | 1191 |
1190 // Rebuild remembered set in an old space. | 1192 // Rebuild remembered set in an old space. |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 | 1820 |
1819 // To speed up scavenge collections new space string are kept | 1821 // To speed up scavenge collections new space string are kept |
1820 // separate from old space strings. | 1822 // separate from old space strings. |
1821 static List<Object*> new_space_strings_; | 1823 static List<Object*> new_space_strings_; |
1822 static List<Object*> old_space_strings_; | 1824 static List<Object*> old_space_strings_; |
1823 }; | 1825 }; |
1824 | 1826 |
1825 } } // namespace v8::internal | 1827 } } // namespace v8::internal |
1826 | 1828 |
1827 #endif // V8_HEAP_H_ | 1829 #endif // V8_HEAP_H_ |
OLD | NEW |