Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: src/heap.h

Issue 11782028: Parallel and concurrent sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 IncrementalMarking* incremental_marking() { 1561 IncrementalMarking* incremental_marking() {
1562 return &incremental_marking_; 1562 return &incremental_marking_;
1563 } 1563 }
1564 1564
1565 bool IsSweepingComplete() { 1565 bool IsSweepingComplete() {
1566 return old_data_space()->IsSweepingComplete() && 1566 return old_data_space()->IsSweepingComplete() &&
1567 old_pointer_space()->IsSweepingComplete(); 1567 old_pointer_space()->IsSweepingComplete();
1568 } 1568 }
1569 1569
1570 bool AdvanceSweepers(int step_size) { 1570 bool AdvanceSweepers(int step_size) {
1571 ASSERT(!FLAG_parallel_sweeping && !FLAG_concurrent_sweeping);
1571 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); 1572 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size);
1572 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); 1573 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size);
1573 return sweeping_complete; 1574 return sweeping_complete;
1574 } 1575 }
1575 1576
1576 ExternalStringTable* external_string_table() { 1577 ExternalStringTable* external_string_table() {
1577 return &external_string_table_; 1578 return &external_string_table_;
1578 } 1579 }
1579 1580
1580 // Returns the current sweep generation. 1581 // Returns the current sweep generation.
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2842 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2842 2843
2843 private: 2844 private:
2844 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2845 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2845 }; 2846 };
2846 #endif // DEBUG || LIVE_OBJECT_LIST 2847 #endif // DEBUG || LIVE_OBJECT_LIST
2847 2848
2848 } } // namespace v8::internal 2849 } } // namespace v8::internal
2849 2850
2850 #endif // V8_HEAP_H_ 2851 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698