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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 old_pointer_space()->IsLazySweepingComplete(); | 1690 old_pointer_space()->IsLazySweepingComplete(); |
1691 } | 1691 } |
1692 | 1692 |
1693 bool AdvanceSweepers(int step_size) { | 1693 bool AdvanceSweepers(int step_size) { |
1694 ASSERT(!FLAG_parallel_sweeping && !FLAG_concurrent_sweeping); | 1694 ASSERT(!FLAG_parallel_sweeping && !FLAG_concurrent_sweeping); |
1695 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); | 1695 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); |
1696 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); | 1696 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); |
1697 return sweeping_complete; | 1697 return sweeping_complete; |
1698 } | 1698 } |
1699 | 1699 |
| 1700 bool EnsureSweepersProgressed(int step_size) { |
| 1701 bool sweeping_complete = old_data_space()->EnsureSweeperProgress(step_size); |
| 1702 sweeping_complete &= old_pointer_space()->EnsureSweeperProgress(step_size); |
| 1703 return sweeping_complete; |
| 1704 } |
| 1705 |
1700 ExternalStringTable* external_string_table() { | 1706 ExternalStringTable* external_string_table() { |
1701 return &external_string_table_; | 1707 return &external_string_table_; |
1702 } | 1708 } |
1703 | 1709 |
1704 ErrorObjectList* error_object_list() { | 1710 ErrorObjectList* error_object_list() { |
1705 return &error_object_list_; | 1711 return &error_object_list_; |
1706 } | 1712 } |
1707 | 1713 |
1708 // Returns the current sweep generation. | 1714 // Returns the current sweep generation. |
1709 int sweep_generation() { | 1715 int sweep_generation() { |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2995 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3001 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2996 | 3002 |
2997 private: | 3003 private: |
2998 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3004 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2999 }; | 3005 }; |
3000 #endif // DEBUG | 3006 #endif // DEBUG |
3001 | 3007 |
3002 } } // namespace v8::internal | 3008 } } // namespace v8::internal |
3003 | 3009 |
3004 #endif // V8_HEAP_H_ | 3010 #endif // V8_HEAP_H_ |
OLD | NEW |