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

Side by Side Diff: src/debug/debug.cc

Issue 2660403003: Merged: Only flush not yet started and finished compile jobs from gc (Closed)
Patch Set: Created 3 years, 10 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/compiler-dispatcher/optimizing-compile-dispatcher.cc ('k') | src/heap/heap.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/debug/debug.h" 5 #include "src/debug/debug.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 private: 1261 private:
1262 SharedFunctionInfo* shared_; 1262 SharedFunctionInfo* shared_;
1263 DisallowHeapAllocation no_gc_; 1263 DisallowHeapAllocation no_gc_;
1264 }; 1264 };
1265 1265
1266 1266
1267 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { 1267 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
1268 DCHECK(shared->is_compiled()); 1268 DCHECK(shared->is_compiled());
1269 1269
1270 if (isolate_->concurrent_recompilation_enabled()) { 1270 if (isolate_->concurrent_recompilation_enabled()) {
1271 isolate_->optimizing_compile_dispatcher()->Flush(); 1271 isolate_->optimizing_compile_dispatcher()->Flush(
1272 OptimizingCompileDispatcher::BlockingBehavior::kBlock);
1272 } 1273 }
1273 1274
1274 List<Handle<JSFunction> > functions; 1275 List<Handle<JSFunction> > functions;
1275 1276
1276 // Flush all optimized code maps. Note that the below heap iteration does not 1277 // Flush all optimized code maps. Note that the below heap iteration does not
1277 // cover this, because the given function might have been inlined into code 1278 // cover this, because the given function might have been inlined into code
1278 // for which no JSFunction exists. 1279 // for which no JSFunction exists.
1279 { 1280 {
1280 SharedFunctionInfo::GlobalIterator iterator(isolate_); 1281 SharedFunctionInfo::GlobalIterator iterator(isolate_);
1281 while (SharedFunctionInfo* shared = iterator.Next()) { 1282 while (SharedFunctionInfo* shared = iterator.Next()) {
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2653 logger_->DebugEvent("Put", message.text()); 2654 logger_->DebugEvent("Put", message.text());
2654 } 2655 }
2655 2656
2656 void LockingCommandMessageQueue::Clear() { 2657 void LockingCommandMessageQueue::Clear() {
2657 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2658 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2658 queue_.Clear(); 2659 queue_.Clear();
2659 } 2660 }
2660 2661
2661 } // namespace internal 2662 } // namespace internal
2662 } // namespace v8 2663 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/optimizing-compile-dispatcher.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698