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

Side by Side Diff: src/heap.cc

Issue 6685052: Version 3.2.2. Fixed a number of crash and correctness bugs. Improved Cranksh... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « src/heap.h ('k') | src/heap-profiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 source->set_map_word(MapWord::FromForwardingAddress(target)); 1334 source->set_map_word(MapWord::FromForwardingAddress(target));
1335 1335
1336 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) 1336 #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING)
1337 // Update NewSpace stats if necessary. 1337 // Update NewSpace stats if necessary.
1338 RecordCopiedObject(target); 1338 RecordCopiedObject(target);
1339 #endif 1339 #endif
1340 HEAP_PROFILE(ObjectMoveEvent(source->address(), target->address())); 1340 HEAP_PROFILE(ObjectMoveEvent(source->address(), target->address()));
1341 #if defined(ENABLE_LOGGING_AND_PROFILING) 1341 #if defined(ENABLE_LOGGING_AND_PROFILING)
1342 if (Logger::is_logging() || CpuProfiler::is_profiling()) { 1342 if (Logger::is_logging() || CpuProfiler::is_profiling()) {
1343 if (target->IsSharedFunctionInfo()) { 1343 if (target->IsSharedFunctionInfo()) {
1344 PROFILE(SFIMoveEvent(source->address(), target->address())); 1344 PROFILE(SharedFunctionInfoMoveEvent(
1345 source->address(), target->address()));
1345 } 1346 }
1346 } 1347 }
1347 #endif 1348 #endif
1348 return target; 1349 return target;
1349 } 1350 }
1350 1351
1351 1352
1352 template<ObjectContents object_contents, SizeRestriction size_restriction> 1353 template<ObjectContents object_contents, SizeRestriction size_restriction>
1353 static inline void EvacuateObject(Map* map, 1354 static inline void EvacuateObject(Map* map,
1354 HeapObject** slot, 1355 HeapObject** slot,
(...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after
5559 void ExternalStringTable::TearDown() { 5560 void ExternalStringTable::TearDown() {
5560 new_space_strings_.Free(); 5561 new_space_strings_.Free();
5561 old_space_strings_.Free(); 5562 old_space_strings_.Free();
5562 } 5563 }
5563 5564
5564 5565
5565 List<Object*> ExternalStringTable::new_space_strings_; 5566 List<Object*> ExternalStringTable::new_space_strings_;
5566 List<Object*> ExternalStringTable::old_space_strings_; 5567 List<Object*> ExternalStringTable::old_space_strings_;
5567 5568
5568 } } // namespace v8::internal 5569 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/heap-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698