| 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 4271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4282 } | 4282 } |
| 4283 | 4283 |
| 4284 | 4284 |
| 4285 void MarkCompactCollector::ParallelSweepSpacesComplete() { | 4285 void MarkCompactCollector::ParallelSweepSpacesComplete() { |
| 4286 ParallelSweepSpaceComplete(heap()->old_pointer_space()); | 4286 ParallelSweepSpaceComplete(heap()->old_pointer_space()); |
| 4287 ParallelSweepSpaceComplete(heap()->old_data_space()); | 4287 ParallelSweepSpaceComplete(heap()->old_data_space()); |
| 4288 } | 4288 } |
| 4289 | 4289 |
| 4290 | 4290 |
| 4291 void MarkCompactCollector::EnableCodeFlushing(bool enable) { | 4291 void MarkCompactCollector::EnableCodeFlushing(bool enable) { |
| 4292 if (isolate()->debug()->IsLoaded() || | 4292 if (isolate()->debug()->is_loaded() || |
| 4293 isolate()->debug()->has_break_points()) { | 4293 isolate()->debug()->has_break_points()) { |
| 4294 enable = false; | 4294 enable = false; |
| 4295 } | 4295 } |
| 4296 | 4296 |
| 4297 if (enable) { | 4297 if (enable) { |
| 4298 if (code_flusher_ != NULL) return; | 4298 if (code_flusher_ != NULL) return; |
| 4299 code_flusher_ = new CodeFlusher(isolate()); | 4299 code_flusher_ = new CodeFlusher(isolate()); |
| 4300 } else { | 4300 } else { |
| 4301 if (code_flusher_ == NULL) return; | 4301 if (code_flusher_ == NULL) return; |
| 4302 code_flusher_->EvictAllCandidates(); | 4302 code_flusher_->EvictAllCandidates(); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4506 while (buffer != NULL) { | 4506 while (buffer != NULL) { |
| 4507 SlotsBuffer* next_buffer = buffer->next(); | 4507 SlotsBuffer* next_buffer = buffer->next(); |
| 4508 DeallocateBuffer(buffer); | 4508 DeallocateBuffer(buffer); |
| 4509 buffer = next_buffer; | 4509 buffer = next_buffer; |
| 4510 } | 4510 } |
| 4511 *buffer_address = NULL; | 4511 *buffer_address = NULL; |
| 4512 } | 4512 } |
| 4513 | 4513 |
| 4514 | 4514 |
| 4515 } } // namespace v8::internal | 4515 } } // namespace v8::internal |
| OLD | NEW |