OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/debug.h" | 9 #include "src/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 2785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 | 2796 |
2797 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { | 2797 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { |
2798 DCHECK(args.length() == 1); | 2798 DCHECK(args.length() == 1); |
2799 HandleScope scope(isolate); | 2799 HandleScope scope(isolate); |
2800 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); | 2800 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); |
2801 isolate->debug()->OnAsyncTaskEvent(data); | 2801 isolate->debug()->OnAsyncTaskEvent(data); |
2802 return isolate->heap()->undefined_value(); | 2802 return isolate->heap()->undefined_value(); |
2803 } | 2803 } |
2804 | 2804 |
2805 | 2805 |
2806 RUNTIME_FUNCTION(RuntimeReference_DebugIsActive) { | 2806 RUNTIME_FUNCTION(Runtime_DebugIsActive) { |
2807 SealHandleScope shs(isolate); | 2807 SealHandleScope shs(isolate); |
2808 return Smi::FromInt(isolate->debug()->is_active()); | 2808 return Smi::FromInt(isolate->debug()->is_active()); |
2809 } | 2809 } |
2810 | 2810 |
2811 | 2811 |
2812 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { | 2812 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
2813 UNIMPLEMENTED(); | 2813 UNIMPLEMENTED(); |
2814 return NULL; | 2814 return NULL; |
2815 } | 2815 } |
2816 } | 2816 } |
2817 } // namespace v8::internal | 2817 } // namespace v8::internal |
OLD | NEW |