| 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 "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 List<Handle<JSFunction> > functions; | 1304 List<Handle<JSFunction> > functions; |
| 1305 List<Handle<JSGeneratorObject> > suspended_generators; | 1305 List<Handle<JSGeneratorObject> > suspended_generators; |
| 1306 | 1306 |
| 1307 if (!shared->optimized_code_map()->IsSmi()) { | 1307 if (!shared->optimized_code_map()->IsSmi()) { |
| 1308 shared->ClearOptimizedCodeMap(); | 1308 shared->ClearOptimizedCodeMap(); |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 // Make sure we abort incremental marking. | 1311 // Make sure we abort incremental marking. |
| 1312 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask, | 1312 isolate_->heap()->CollectAllGarbage("prepare for break points", |
| 1313 "prepare for break points"); | 1313 Heap::kMakeHeapIterableMask); |
| 1314 | 1314 |
| 1315 { | 1315 { |
| 1316 HeapIterator iterator(isolate_->heap()); | 1316 HeapIterator iterator(isolate_->heap()); |
| 1317 HeapObject* obj; | 1317 HeapObject* obj; |
| 1318 bool include_generators = shared->is_generator(); | 1318 bool include_generators = shared->is_generator(); |
| 1319 | 1319 |
| 1320 while ((obj = iterator.next())) { | 1320 while ((obj = iterator.next())) { |
| 1321 if (obj->IsJSFunction()) { | 1321 if (obj->IsJSFunction()) { |
| 1322 JSFunction* function = JSFunction::cast(obj); | 1322 JSFunction* function = JSFunction::cast(obj); |
| 1323 if (!function->Inlines(*shared)) continue; | 1323 if (!function->Inlines(*shared)) continue; |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2613 } | 2613 } |
| 2614 | 2614 |
| 2615 | 2615 |
| 2616 void LockingCommandMessageQueue::Clear() { | 2616 void LockingCommandMessageQueue::Clear() { |
| 2617 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2617 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2618 queue_.Clear(); | 2618 queue_.Clear(); |
| 2619 } | 2619 } |
| 2620 | 2620 |
| 2621 } // namespace internal | 2621 } // namespace internal |
| 2622 } // namespace v8 | 2622 } // namespace v8 |
| OLD | NEW |