Chromium Code Reviews| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 468 intptr_t GetFlags() { return flags_; } | 468 intptr_t GetFlags() { return flags_; } |
| 469 | 469 |
| 470 | 470 |
| 471 // PARALLEL_SWEEPING_PENDING - This page is ready for parallel sweeping. | 471 // PARALLEL_SWEEPING_PENDING - This page is ready for parallel sweeping. |
| 472 // PARALLEL_SWEEPING_IN_PROGRESS - This page is currently swept or was | 472 // PARALLEL_SWEEPING_IN_PROGRESS - This page is currently swept or was |
| 473 // swept by a sweeper thread. | 473 // swept by a sweeper thread. |
| 474 // PARALLEL_SWEEPING_DONE - The page state when sweeping is complete or | 474 // PARALLEL_SWEEPING_DONE - The page state when sweeping is complete or |
| 475 // sweeping must not be performed on that page. | 475 // sweeping must not be performed on that page. |
| 476 enum ParallelSweepingState { | 476 enum ParallelSweepingState { |
| 477 PARALLEL_SWEEPING_DONE, | 477 PARALLEL_SWEEPING_DONE, |
| 478 PARALLEL_SWEEPING_FINALIZE, | |
|
Michael Starzinger
2014/03/24 12:21:35
Please add a comment explaining the semantics of t
Hannes Payer (out of office)
2014/03/25 11:41:08
Done.
| |
| 478 PARALLEL_SWEEPING_IN_PROGRESS, | 479 PARALLEL_SWEEPING_IN_PROGRESS, |
| 479 PARALLEL_SWEEPING_PENDING | 480 PARALLEL_SWEEPING_PENDING |
| 480 }; | 481 }; |
| 481 | 482 |
| 482 ParallelSweepingState parallel_sweeping() { | 483 ParallelSweepingState parallel_sweeping() { |
| 483 return static_cast<ParallelSweepingState>( | 484 return static_cast<ParallelSweepingState>( |
| 484 NoBarrier_Load(¶llel_sweeping_)); | 485 NoBarrier_Load(¶llel_sweeping_)); |
| 485 } | 486 } |
| 486 | 487 |
| 487 void set_parallel_sweeping(ParallelSweepingState state) { | 488 void set_parallel_sweeping(ParallelSweepingState state) { |
| (...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2978 } | 2979 } |
| 2979 // Must be small, since an iteration is used for lookup. | 2980 // Must be small, since an iteration is used for lookup. |
| 2980 static const int kMaxComments = 64; | 2981 static const int kMaxComments = 64; |
| 2981 }; | 2982 }; |
| 2982 #endif | 2983 #endif |
| 2983 | 2984 |
| 2984 | 2985 |
| 2985 } } // namespace v8::internal | 2986 } } // namespace v8::internal |
| 2986 | 2987 |
| 2987 #endif // V8_SPACES_H_ | 2988 #endif // V8_SPACES_H_ |
| OLD | NEW |