| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 if (!marking_deque_memory_committed_) { | 556 if (!marking_deque_memory_committed_) { |
| 557 bool success = marking_deque_memory_->Commit( | 557 bool success = marking_deque_memory_->Commit( |
| 558 reinterpret_cast<Address>(marking_deque_memory_->address()), | 558 reinterpret_cast<Address>(marking_deque_memory_->address()), |
| 559 marking_deque_memory_->size(), | 559 marking_deque_memory_->size(), |
| 560 false); // Not executable. | 560 false); // Not executable. |
| 561 CHECK(success); | 561 CHECK(success); |
| 562 marking_deque_memory_committed_ = true; | 562 marking_deque_memory_committed_ = true; |
| 563 } | 563 } |
| 564 } | 564 } |
| 565 | 565 |
| 566 |
| 566 void IncrementalMarking::UncommitMarkingDeque() { | 567 void IncrementalMarking::UncommitMarkingDeque() { |
| 567 if (state_ == STOPPED && marking_deque_memory_committed_) { | 568 if (state_ == STOPPED && marking_deque_memory_committed_) { |
| 568 bool success = marking_deque_memory_->Uncommit( | 569 bool success = marking_deque_memory_->Uncommit( |
| 569 reinterpret_cast<Address>(marking_deque_memory_->address()), | 570 reinterpret_cast<Address>(marking_deque_memory_->address()), |
| 570 marking_deque_memory_->size()); | 571 marking_deque_memory_->size()); |
| 571 CHECK(success); | 572 CHECK(success); |
| 572 marking_deque_memory_committed_ = false; | 573 marking_deque_memory_committed_ = false; |
| 573 } | 574 } |
| 574 } | 575 } |
| 575 | 576 |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 bytes_scanned_ = 0; | 1032 bytes_scanned_ = 0; |
| 1032 write_barriers_invoked_since_last_step_ = 0; | 1033 write_barriers_invoked_since_last_step_ = 0; |
| 1033 } | 1034 } |
| 1034 | 1035 |
| 1035 | 1036 |
| 1036 int64_t IncrementalMarking::SpaceLeftInOldSpace() { | 1037 int64_t IncrementalMarking::SpaceLeftInOldSpace() { |
| 1037 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); | 1038 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); |
| 1038 } | 1039 } |
| 1039 | 1040 |
| 1040 } } // namespace v8::internal | 1041 } } // namespace v8::internal |
| OLD | NEW |