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

Side by Side Diff: src/heap.cc

Issue 6597104: Move IncrementalRecordWrite to a stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
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
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 : &Counters::gc_compactor; 494 : &Counters::gc_compactor;
495 rate->Start(); 495 rate->Start();
496 next_gc_likely_to_collect_more = 496 next_gc_likely_to_collect_more =
497 PerformGarbageCollection(collector, &tracer); 497 PerformGarbageCollection(collector, &tracer);
498 rate->Stop(); 498 rate->Stop();
499 499
500 GarbageCollectionEpilogue(); 500 GarbageCollectionEpilogue();
501 } 501 }
502 502
503 ASSERT(IncrementalMarking::state() == IncrementalMarking::STOPPED); 503 ASSERT(IncrementalMarking::state() == IncrementalMarking::STOPPED);
504 if (NextGCIsLikelyToBeFull() && FLAG_incremental_marking) { 504 if (IncrementalMarking::WorthActivating() && NextGCIsLikelyToBeFull()) {
505 IncrementalMarking::Start(); 505 IncrementalMarking::Start();
506 } 506 }
507 507
508 #ifdef ENABLE_LOGGING_AND_PROFILING 508 #ifdef ENABLE_LOGGING_AND_PROFILING
509 if (FLAG_log_gc) HeapProfiler::WriteSample(); 509 if (FLAG_log_gc) HeapProfiler::WriteSample();
510 if (CpuProfiler::is_profiling()) CpuProfiler::ProcessMovedFunctions(); 510 if (CpuProfiler::is_profiling()) CpuProfiler::ProcessMovedFunctions();
511 #endif 511 #endif
512 512
513 return next_gc_likely_to_collect_more; 513 return next_gc_likely_to_collect_more;
514 } 514 }
(...skipping 5069 matching lines...) Expand 10 before | Expand all | Expand 10 after
5584 void ExternalStringTable::TearDown() { 5584 void ExternalStringTable::TearDown() {
5585 new_space_strings_.Free(); 5585 new_space_strings_.Free();
5586 old_space_strings_.Free(); 5586 old_space_strings_.Free();
5587 } 5587 }
5588 5588
5589 5589
5590 List<Object*> ExternalStringTable::new_space_strings_; 5590 List<Object*> ExternalStringTable::new_space_strings_;
5591 List<Object*> ExternalStringTable::old_space_strings_; 5591 List<Object*> ExternalStringTable::old_space_strings_;
5592 5592
5593 } } // namespace v8::internal 5593 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698