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

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

Issue 2658313002: 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 return v8::Utils::ToLocal(callback_data_); 2428 return v8::Utils::ToLocal(callback_data_);
2428 } 2429 }
2429 2430
2430 2431
2431 v8::Isolate* EventDetailsImpl::GetIsolate() const { 2432 v8::Isolate* EventDetailsImpl::GetIsolate() const {
2432 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); 2433 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate());
2433 } 2434 }
2434 2435
2435 } // namespace internal 2436 } // namespace internal
2436 } // namespace v8 2437 } // 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