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 4341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4352 } | 4352 } |
4353 | 4353 |
4354 | 4354 |
4355 void MarkCompactCollector::ParallelSweepSpacesComplete() { | 4355 void MarkCompactCollector::ParallelSweepSpacesComplete() { |
4356 ParallelSweepSpaceComplete(heap()->old_pointer_space()); | 4356 ParallelSweepSpaceComplete(heap()->old_pointer_space()); |
4357 ParallelSweepSpaceComplete(heap()->old_data_space()); | 4357 ParallelSweepSpaceComplete(heap()->old_data_space()); |
4358 } | 4358 } |
4359 | 4359 |
4360 | 4360 |
4361 void MarkCompactCollector::EnableCodeFlushing(bool enable) { | 4361 void MarkCompactCollector::EnableCodeFlushing(bool enable) { |
4362 #ifdef ENABLE_DEBUGGER_SUPPORT | |
4363 if (isolate()->debug()->IsLoaded() || | 4362 if (isolate()->debug()->IsLoaded() || |
4364 isolate()->debug()->has_break_points()) { | 4363 isolate()->debug()->has_break_points()) { |
4365 enable = false; | 4364 enable = false; |
4366 } | 4365 } |
4367 #endif | |
4368 | 4366 |
4369 if (enable) { | 4367 if (enable) { |
4370 if (code_flusher_ != NULL) return; | 4368 if (code_flusher_ != NULL) return; |
4371 code_flusher_ = new CodeFlusher(isolate()); | 4369 code_flusher_ = new CodeFlusher(isolate()); |
4372 } else { | 4370 } else { |
4373 if (code_flusher_ == NULL) return; | 4371 if (code_flusher_ == NULL) return; |
4374 code_flusher_->EvictAllCandidates(); | 4372 code_flusher_->EvictAllCandidates(); |
4375 delete code_flusher_; | 4373 delete code_flusher_; |
4376 code_flusher_ = NULL; | 4374 code_flusher_ = NULL; |
4377 } | 4375 } |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4578 while (buffer != NULL) { | 4576 while (buffer != NULL) { |
4579 SlotsBuffer* next_buffer = buffer->next(); | 4577 SlotsBuffer* next_buffer = buffer->next(); |
4580 DeallocateBuffer(buffer); | 4578 DeallocateBuffer(buffer); |
4581 buffer = next_buffer; | 4579 buffer = next_buffer; |
4582 } | 4580 } |
4583 *buffer_address = NULL; | 4581 *buffer_address = NULL; |
4584 } | 4582 } |
4585 | 4583 |
4586 | 4584 |
4587 } } // namespace v8::internal | 4585 } } // namespace v8::internal |
OLD | NEW |