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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 isolate_->counters()->alive_after_last_gc()->Set( | 431 isolate_->counters()->alive_after_last_gc()->Set( |
432 static_cast<int>(SizeOfObjects())); | 432 static_cast<int>(SizeOfObjects())); |
433 | 433 |
434 isolate_->counters()->symbol_table_capacity()->Set( | 434 isolate_->counters()->symbol_table_capacity()->Set( |
435 symbol_table()->Capacity()); | 435 symbol_table()->Capacity()); |
436 isolate_->counters()->number_of_symbols()->Set( | 436 isolate_->counters()->number_of_symbols()->Set( |
437 symbol_table()->NumberOfElements()); | 437 symbol_table()->NumberOfElements()); |
438 #if defined(DEBUG) | 438 #if defined(DEBUG) |
439 ReportStatisticsAfterGC(); | 439 ReportStatisticsAfterGC(); |
440 #endif // DEBUG | 440 #endif // DEBUG |
| 441 #ifdef ENABLE_DEBUGGER_SUPPORT |
441 isolate_->debug()->AfterGarbageCollection(); | 442 isolate_->debug()->AfterGarbageCollection(); |
| 443 #endif // ENABLE_DEBUGGER_SUPPORT |
442 } | 444 } |
443 | 445 |
444 | 446 |
445 void Heap::CollectAllGarbage(bool force_compaction) { | 447 void Heap::CollectAllGarbage(bool force_compaction) { |
446 // Since we are ignoring the return value, the exact choice of space does | 448 // Since we are ignoring the return value, the exact choice of space does |
447 // not matter, so long as we do not specify NEW_SPACE, which would not | 449 // not matter, so long as we do not specify NEW_SPACE, which would not |
448 // cause a full GC. | 450 // cause a full GC. |
449 mark_compact_collector_.SetForceCompaction(force_compaction); | 451 mark_compact_collector_.SetForceCompaction(force_compaction); |
450 CollectGarbage(OLD_POINTER_SPACE); | 452 CollectGarbage(OLD_POINTER_SPACE); |
451 mark_compact_collector_.SetForceCompaction(false); | 453 mark_compact_collector_.SetForceCompaction(false); |
(...skipping 5598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6050 } | 6052 } |
6051 | 6053 |
6052 | 6054 |
6053 void ExternalStringTable::TearDown() { | 6055 void ExternalStringTable::TearDown() { |
6054 new_space_strings_.Free(); | 6056 new_space_strings_.Free(); |
6055 old_space_strings_.Free(); | 6057 old_space_strings_.Free(); |
6056 } | 6058 } |
6057 | 6059 |
6058 | 6060 |
6059 } } // namespace v8::internal | 6061 } } // namespace v8::internal |
OLD | NEW |