| 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |