| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |