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

Side by Side Diff: src/debug.cc

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