| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "code-stubs.h" | 7 #include "code-stubs.h" |
| 8 #include "compilation-cache.h" | 8 #include "compilation-cache.h" |
| 9 #include "cpu-profiler.h" | 9 #include "cpu-profiler.h" |
| 10 #include "deoptimizer.h" | 10 #include "deoptimizer.h" |
| (...skipping 4266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4277 } | 4277 } |
| 4278 | 4278 |
| 4279 | 4279 |
| 4280 void MarkCompactCollector::ParallelSweepSpacesComplete() { | 4280 void MarkCompactCollector::ParallelSweepSpacesComplete() { |
| 4281 ParallelSweepSpaceComplete(heap()->old_pointer_space()); | 4281 ParallelSweepSpaceComplete(heap()->old_pointer_space()); |
| 4282 ParallelSweepSpaceComplete(heap()->old_data_space()); | 4282 ParallelSweepSpaceComplete(heap()->old_data_space()); |
| 4283 } | 4283 } |
| 4284 | 4284 |
| 4285 | 4285 |
| 4286 void MarkCompactCollector::EnableCodeFlushing(bool enable) { | 4286 void MarkCompactCollector::EnableCodeFlushing(bool enable) { |
| 4287 if (isolate()->debug()->IsLoaded() || | 4287 if (isolate()->debug()->is_loaded() || |
| 4288 isolate()->debug()->has_break_points()) { | 4288 isolate()->debug()->has_break_points()) { |
| 4289 enable = false; | 4289 enable = false; |
| 4290 } | 4290 } |
| 4291 | 4291 |
| 4292 if (enable) { | 4292 if (enable) { |
| 4293 if (code_flusher_ != NULL) return; | 4293 if (code_flusher_ != NULL) return; |
| 4294 code_flusher_ = new CodeFlusher(isolate()); | 4294 code_flusher_ = new CodeFlusher(isolate()); |
| 4295 } else { | 4295 } else { |
| 4296 if (code_flusher_ == NULL) return; | 4296 if (code_flusher_ == NULL) return; |
| 4297 code_flusher_->EvictAllCandidates(); | 4297 code_flusher_->EvictAllCandidates(); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4501 while (buffer != NULL) { | 4501 while (buffer != NULL) { |
| 4502 SlotsBuffer* next_buffer = buffer->next(); | 4502 SlotsBuffer* next_buffer = buffer->next(); |
| 4503 DeallocateBuffer(buffer); | 4503 DeallocateBuffer(buffer); |
| 4504 buffer = next_buffer; | 4504 buffer = next_buffer; |
| 4505 } | 4505 } |
| 4506 *buffer_address = NULL; | 4506 *buffer_address = NULL; |
| 4507 } | 4507 } |
| 4508 | 4508 |
| 4509 | 4509 |
| 4510 } } // namespace v8::internal | 4510 } } // namespace v8::internal |
| OLD | NEW |