| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 } | 1546 } |
| 1547 | 1547 |
| 1548 Marking* marking() { | 1548 Marking* marking() { |
| 1549 return &marking_; | 1549 return &marking_; |
| 1550 } | 1550 } |
| 1551 | 1551 |
| 1552 IncrementalMarking* incremental_marking() { | 1552 IncrementalMarking* incremental_marking() { |
| 1553 return &incremental_marking_; | 1553 return &incremental_marking_; |
| 1554 } | 1554 } |
| 1555 | 1555 |
| 1556 bool IsSweepingComplete() { | |
| 1557 return !mark_compact_collector()->IsConcurrentSweepingInProgress() && | |
| 1558 old_data_space()->IsLazySweepingComplete() && | |
| 1559 old_pointer_space()->IsLazySweepingComplete(); | |
| 1560 } | |
| 1561 | |
| 1562 bool AdvanceSweepers(int step_size); | |
| 1563 | |
| 1564 bool EnsureSweepersProgressed(int step_size) { | 1556 bool EnsureSweepersProgressed(int step_size) { |
| 1565 bool sweeping_complete = old_data_space()->EnsureSweeperProgress(step_size); | 1557 bool sweeping_complete = old_data_space()->EnsureSweeperProgress(step_size); |
| 1566 sweeping_complete &= old_pointer_space()->EnsureSweeperProgress(step_size); | 1558 sweeping_complete &= old_pointer_space()->EnsureSweeperProgress(step_size); |
| 1567 return sweeping_complete; | 1559 return sweeping_complete; |
| 1568 } | 1560 } |
| 1569 | 1561 |
| 1570 ExternalStringTable* external_string_table() { | 1562 ExternalStringTable* external_string_table() { |
| 1571 return &external_string_table_; | 1563 return &external_string_table_; |
| 1572 } | 1564 } |
| 1573 | 1565 |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2906 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2898 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2907 | 2899 |
| 2908 private: | 2900 private: |
| 2909 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2901 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2910 }; | 2902 }; |
| 2911 #endif // DEBUG | 2903 #endif // DEBUG |
| 2912 | 2904 |
| 2913 } } // namespace v8::internal | 2905 } } // namespace v8::internal |
| 2914 | 2906 |
| 2915 #endif // V8_HEAP_H_ | 2907 #endif // V8_HEAP_H_ |
| OLD | NEW |