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

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
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 IncrementalMarking* incremental_marking() { 1629 IncrementalMarking* incremental_marking() {
1630 return &incremental_marking_; 1630 return &incremental_marking_;
1631 } 1631 }
1632 1632
1633 bool IsSweepingComplete() { 1633 bool IsSweepingComplete() {
1634 return old_data_space()->IsSweepingComplete() && 1634 return old_data_space()->IsSweepingComplete() &&
1635 old_pointer_space()->IsSweepingComplete(); 1635 old_pointer_space()->IsSweepingComplete();
1636 } 1636 }
1637 1637
1638 bool AdvanceSweepers(int step_size) { 1638 bool AdvanceSweepers(int step_size) {
1639 ASSERT(!FLAG_parallel_sweeping && !FLAG_concurrent_sweeping);
1639 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); 1640 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size);
1640 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); 1641 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size);
1641 return sweeping_complete; 1642 return sweeping_complete;
1642 } 1643 }
1643 1644
1644 ExternalStringTable* external_string_table() { 1645 ExternalStringTable* external_string_table() {
1645 return &external_string_table_; 1646 return &external_string_table_;
1646 } 1647 }
1647 1648
1648 ErrorObjectList* error_object_list() { 1649 ErrorObjectList* error_object_list() {
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2915 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2916 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2916 2917
2917 private: 2918 private:
2918 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2919 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2919 }; 2920 };
2920 #endif // DEBUG 2921 #endif // DEBUG
2921 2922
2922 } } // namespace v8::internal 2923 } } // namespace v8::internal
2923 2924
2924 #endif // V8_HEAP_H_ 2925 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698