| 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 old_gen_exhausted_ = false; | 787 old_gen_exhausted_ = false; |
| 788 } else { | 788 } else { |
| 789 tracer_ = tracer; | 789 tracer_ = tracer; |
| 790 Scavenge(); | 790 Scavenge(); |
| 791 tracer_ = NULL; | 791 tracer_ = NULL; |
| 792 | 792 |
| 793 UpdateSurvivalRateTrend(start_new_space_size); | 793 UpdateSurvivalRateTrend(start_new_space_size); |
| 794 } | 794 } |
| 795 | 795 |
| 796 isolate_->counters()->objs_since_last_young()->Set(0); | 796 isolate_->counters()->objs_since_last_young()->Set(0); |
| 797 | 797 |
| 798 gc_post_processing_depth_++; | 798 gc_post_processing_depth_++; |
| 799 { DisableAssertNoAllocation allow_allocation; | 799 { DisableAssertNoAllocation allow_allocation; |
| 800 GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL); | 800 GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL); |
| 801 next_gc_likely_to_collect_more = | 801 next_gc_likely_to_collect_more = |
| 802 isolate_->global_handles()->PostGarbageCollectionProcessing(collector); | 802 isolate_->global_handles()->PostGarbageCollectionProcessing(collector); |
| 803 } | 803 } |
| 804 gc_post_processing_depth_--; | 804 gc_post_processing_depth_--; |
| 805 | 805 |
| 806 // Update relocatables. | 806 // Update relocatables. |
| 807 Relocatable::PostGarbageCollectionProcessing(); | 807 Relocatable::PostGarbageCollectionProcessing(); |
| (...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5949 } | 5949 } |
| 5950 | 5950 |
| 5951 | 5951 |
| 5952 void ExternalStringTable::TearDown() { | 5952 void ExternalStringTable::TearDown() { |
| 5953 new_space_strings_.Free(); | 5953 new_space_strings_.Free(); |
| 5954 old_space_strings_.Free(); | 5954 old_space_strings_.Free(); |
| 5955 } | 5955 } |
| 5956 | 5956 |
| 5957 | 5957 |
| 5958 } } // namespace v8::internal | 5958 } } // namespace v8::internal |
| OLD | NEW |