Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Side by Side Diff: src/mark-compact.cc

Issue 298863011: Merge the classes Debug and Debugger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename EnterDebugger Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/liveedit.cc ('k') | src/mips/debug-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698