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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 return has_break_points_at_all; | 700 return has_break_points_at_all; |
701 } | 701 } |
702 | 702 |
703 | 703 |
704 MaybeHandle<Object> Debug::CallFunction(const char* name, int argc, | 704 MaybeHandle<Object> Debug::CallFunction(const char* name, int argc, |
705 Handle<Object> args[]) { | 705 Handle<Object> args[]) { |
706 PostponeInterruptsScope no_interrupts(isolate_); | 706 PostponeInterruptsScope no_interrupts(isolate_); |
707 AssertDebugContext(); | 707 AssertDebugContext(); |
708 Handle<Object> holder = isolate_->natives_utils_object(); | 708 Handle<Object> holder = isolate_->natives_utils_object(); |
709 Handle<JSFunction> fun = Handle<JSFunction>::cast( | 709 Handle<JSFunction> fun = Handle<JSFunction>::cast( |
710 Object::GetProperty(isolate_, holder, name, STRICT).ToHandleChecked()); | 710 Object::GetProperty(isolate_, holder, name).ToHandleChecked()); |
711 Handle<Object> undefined = isolate_->factory()->undefined_value(); | 711 Handle<Object> undefined = isolate_->factory()->undefined_value(); |
712 return Execution::TryCall(isolate_, fun, undefined, argc, args); | 712 return Execution::TryCall(isolate_, fun, undefined, argc, args); |
713 } | 713 } |
714 | 714 |
715 | 715 |
716 // Check whether a single break point object is triggered. | 716 // Check whether a single break point object is triggered. |
717 bool Debug::CheckBreakPoint(Handle<Object> break_point_object) { | 717 bool Debug::CheckBreakPoint(Handle<Object> break_point_object) { |
718 Factory* factory = isolate_->factory(); | 718 Factory* factory = isolate_->factory(); |
719 HandleScope scope(isolate_); | 719 HandleScope scope(isolate_); |
720 | 720 |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 } | 2569 } |
2570 | 2570 |
2571 | 2571 |
2572 void LockingCommandMessageQueue::Clear() { | 2572 void LockingCommandMessageQueue::Clear() { |
2573 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2573 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
2574 queue_.Clear(); | 2574 queue_.Clear(); |
2575 } | 2575 } |
2576 | 2576 |
2577 } // namespace internal | 2577 } // namespace internal |
2578 } // namespace v8 | 2578 } // namespace v8 |
OLD | NEW |