| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/scavenger.h" | 5 #include "vm/scavenger.h" |
| 6 | 6 |
| 7 #include "vm/dart.h" | 7 #include "vm/dart.h" |
| 8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 heap_->Verify(); | 518 heap_->Verify(); |
| 519 OS::PrintErr(" done.\n"); | 519 OS::PrintErr(" done.\n"); |
| 520 } | 520 } |
| 521 | 521 |
| 522 count_++; | 522 count_++; |
| 523 // Done scavenging. Reset the marker. | 523 // Done scavenging. Reset the marker. |
| 524 ASSERT(scavenging_); | 524 ASSERT(scavenging_); |
| 525 scavenging_ = false; | 525 scavenging_ = false; |
| 526 } | 526 } |
| 527 | 527 |
| 528 |
| 529 void Scavenger::WriteProtect(bool read_only) { |
| 530 space_->Protect( |
| 531 read_only ? VirtualMemory::kReadOnly : VirtualMemory::kReadWrite); |
| 532 } |
| 533 |
| 528 } // namespace dart | 534 } // namespace dart |
| OLD | NEW |