| OLD | NEW |
| 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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) | 1312 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
| 1313 // Update NewSpace stats if necessary. | 1313 // Update NewSpace stats if necessary. |
| 1314 RecordCopiedObject(heap, target); | 1314 RecordCopiedObject(heap, target); |
| 1315 #endif | 1315 #endif |
| 1316 HEAP_PROFILE(heap, ObjectMoveEvent(source->address(), target->address())); | 1316 HEAP_PROFILE(heap, ObjectMoveEvent(source->address(), target->address())); |
| 1317 #if defined(ENABLE_LOGGING_AND_PROFILING) | 1317 #if defined(ENABLE_LOGGING_AND_PROFILING) |
| 1318 Isolate* isolate = heap->isolate(); | 1318 Isolate* isolate = heap->isolate(); |
| 1319 if (isolate->logger()->is_logging() || | 1319 if (isolate->logger()->is_logging() || |
| 1320 isolate->cpu_profiler()->is_profiling()) { | 1320 isolate->cpu_profiler()->is_profiling()) { |
| 1321 if (target->IsSharedFunctionInfo()) { | 1321 if (target->IsSharedFunctionInfo()) { |
| 1322 PROFILE(SFIMoveEvent(source->address(), target->address())); | 1322 PROFILE(SharedFunctionInfoMoveEvent( |
| 1323 source->address(), target->address())); |
| 1323 } | 1324 } |
| 1324 } | 1325 } |
| 1325 #endif | 1326 #endif |
| 1326 return target; | 1327 return target; |
| 1327 } | 1328 } |
| 1328 | 1329 |
| 1329 | 1330 |
| 1330 template<ObjectContents object_contents, SizeRestriction size_restriction> | 1331 template<ObjectContents object_contents, SizeRestriction size_restriction> |
| 1331 static inline void EvacuateObject(Map* map, | 1332 static inline void EvacuateObject(Map* map, |
| 1332 HeapObject** slot, | 1333 HeapObject** slot, |
| (...skipping 4428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5761 } | 5762 } |
| 5762 | 5763 |
| 5763 | 5764 |
| 5764 void ExternalStringTable::TearDown() { | 5765 void ExternalStringTable::TearDown() { |
| 5765 new_space_strings_.Free(); | 5766 new_space_strings_.Free(); |
| 5766 old_space_strings_.Free(); | 5767 old_space_strings_.Free(); |
| 5767 } | 5768 } |
| 5768 | 5769 |
| 5769 | 5770 |
| 5770 } } // namespace v8::internal | 5771 } } // namespace v8::internal |
| OLD | NEW |