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

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

Issue 2669603002: 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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 private: 1256 private:
1257 SharedFunctionInfo* shared_; 1257 SharedFunctionInfo* shared_;
1258 DisallowHeapAllocation no_gc_; 1258 DisallowHeapAllocation no_gc_;
1259 }; 1259 };
1260 1260
1261 1261
1262 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { 1262 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
1263 DCHECK(shared->is_compiled()); 1263 DCHECK(shared->is_compiled());
1264 1264
1265 if (isolate_->concurrent_recompilation_enabled()) { 1265 if (isolate_->concurrent_recompilation_enabled()) {
1266 isolate_->optimizing_compile_dispatcher()->Flush(); 1266 isolate_->optimizing_compile_dispatcher()->Flush(
1267 OptimizingCompileDispatcher::BlockingBehavior::kBlock);
1267 } 1268 }
1268 1269
1269 List<Handle<JSFunction> > functions; 1270 List<Handle<JSFunction> > functions;
1270 List<Handle<JSGeneratorObject> > suspended_generators; 1271 List<Handle<JSGeneratorObject> > suspended_generators;
1271 1272
1272 // Flush all optimized code maps. Note that the below heap iteration does not 1273 // Flush all optimized code maps. Note that the below heap iteration does not
1273 // cover this, because the given function might have been inlined into code 1274 // cover this, because the given function might have been inlined into code
1274 // for which no JSFunction exists. 1275 // for which no JSFunction exists.
1275 { 1276 {
1276 SharedFunctionInfo::Iterator iterator(isolate_); 1277 SharedFunctionInfo::Iterator iterator(isolate_);
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 } 2615 }
2615 2616
2616 2617
2617 void LockingCommandMessageQueue::Clear() { 2618 void LockingCommandMessageQueue::Clear() {
2618 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2619 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2619 queue_.Clear(); 2620 queue_.Clear();
2620 } 2621 }
2621 2622
2622 } // namespace internal 2623 } // namespace internal
2623 } // namespace v8 2624 } // 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