| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |