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

Side by Side Diff: src/debug.cc

Issue 1059853004: Reland "Remove support for thread-based recompilation" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/cpu-profiler.h ('k') | src/execution.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 static inline bool HasDebugBreakSlots(Code* code) { 1835 static inline bool HasDebugBreakSlots(Code* code) {
1836 return code->kind() == Code::FUNCTION && code->has_debug_break_slots(); 1836 return code->kind() == Code::FUNCTION && code->has_debug_break_slots();
1837 } 1837 }
1838 1838
1839 1839
1840 void Debug::PrepareForBreakPoints() { 1840 void Debug::PrepareForBreakPoints() {
1841 // If preparing for the first break point make sure to deoptimize all 1841 // If preparing for the first break point make sure to deoptimize all
1842 // functions as debugging does not work with optimized code. 1842 // functions as debugging does not work with optimized code.
1843 if (!has_break_points_) { 1843 if (!has_break_points_) {
1844 if (isolate_->concurrent_recompilation_enabled()) { 1844 if (isolate_->concurrent_recompilation_enabled()) {
1845 isolate_->optimizing_compiler_thread()->Flush(); 1845 isolate_->optimizing_compile_dispatcher()->Flush();
1846 } 1846 }
1847 1847
1848 Deoptimizer::DeoptimizeAll(isolate_); 1848 Deoptimizer::DeoptimizeAll(isolate_);
1849 1849
1850 Handle<Code> lazy_compile = isolate_->builtins()->CompileLazy(); 1850 Handle<Code> lazy_compile = isolate_->builtins()->CompileLazy();
1851 1851
1852 // There will be at least one break point when we are done. 1852 // There will be at least one break point when we are done.
1853 has_break_points_ = true; 1853 has_break_points_ = true;
1854 1854
1855 // Keep the list of activated functions in a handlified list as it 1855 // Keep the list of activated functions in a handlified list as it
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
3402 logger_->DebugEvent("Put", message.text()); 3402 logger_->DebugEvent("Put", message.text());
3403 } 3403 }
3404 3404
3405 3405
3406 void LockingCommandMessageQueue::Clear() { 3406 void LockingCommandMessageQueue::Clear() {
3407 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3407 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3408 queue_.Clear(); 3408 queue_.Clear();
3409 } 3409 }
3410 3410
3411 } } // namespace v8::internal 3411 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698