| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 #endif | 475 #endif |
| 476 | 476 |
| 477 if (collector == SCAVENGER && !incremental_marking()->IsStopped()) { | 477 if (collector == SCAVENGER && !incremental_marking()->IsStopped()) { |
| 478 if (FLAG_trace_incremental_marking) { | 478 if (FLAG_trace_incremental_marking) { |
| 479 PrintF("[IncrementalMarking] Scavenge during marking.\n"); | 479 PrintF("[IncrementalMarking] Scavenge during marking.\n"); |
| 480 } | 480 } |
| 481 } | 481 } |
| 482 | 482 |
| 483 if (collector == MARK_COMPACTOR && | 483 if (collector == MARK_COMPACTOR && |
| 484 !mark_compact_collector()->PreciseSweepingRequired() && | 484 !mark_compact_collector()->PreciseSweepingRequired() && |
| 485 incremental_marking()->IsMarkingIncomplete() && | 485 !incremental_marking()->IsStopped() && |
| 486 !incremental_marking()->should_hurry() && | 486 !incremental_marking()->should_hurry() && |
| 487 FLAG_incremental_marking_steps) { | 487 FLAG_incremental_marking_steps) { |
| 488 if (FLAG_trace_incremental_marking) { | 488 if (FLAG_trace_incremental_marking) { |
| 489 PrintF("[IncrementalMarking] Delaying MarkSweep.\n"); | 489 PrintF("[IncrementalMarking] Delaying MarkSweep.\n"); |
| 490 } | 490 } |
| 491 collector = SCAVENGER; | 491 collector = SCAVENGER; |
| 492 } | 492 } |
| 493 | 493 |
| 494 bool next_gc_likely_to_collect_more = false; | 494 bool next_gc_likely_to_collect_more = false; |
| 495 | 495 |
| (...skipping 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5954 } | 5954 } |
| 5955 | 5955 |
| 5956 | 5956 |
| 5957 void ExternalStringTable::TearDown() { | 5957 void ExternalStringTable::TearDown() { |
| 5958 new_space_strings_.Free(); | 5958 new_space_strings_.Free(); |
| 5959 old_space_strings_.Free(); | 5959 old_space_strings_.Free(); |
| 5960 } | 5960 } |
| 5961 | 5961 |
| 5962 | 5962 |
| 5963 } } // namespace v8::internal | 5963 } } // namespace v8::internal |
| OLD | NEW |