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 2592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2603 | 2603 |
2604 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) { | 2604 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) { |
2605 SealHandleScope shs(isolate); | 2605 SealHandleScope shs(isolate); |
2606 DCHECK(args.length() == 1); | 2606 DCHECK(args.length() == 1); |
2607 | 2607 |
2608 CONVERT_ARG_CHECKED(JSFunction, f, 0); | 2608 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
2609 return f->shared()->inferred_name(); | 2609 return f->shared()->inferred_name(); |
2610 } | 2610 } |
2611 | 2611 |
2612 | 2612 |
| 2613 RUNTIME_FUNCTION(Runtime_FunctionGetDebugName) { |
| 2614 SealHandleScope shs(isolate); |
| 2615 DCHECK(args.length() == 1); |
| 2616 |
| 2617 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| 2618 return f->shared()->DebugName(); |
| 2619 } |
| 2620 |
| 2621 |
2613 // A testing entry. Returns statement position which is the closest to | 2622 // A testing entry. Returns statement position which is the closest to |
2614 // source_position. | 2623 // source_position. |
2615 RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) { | 2624 RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) { |
2616 HandleScope scope(isolate); | 2625 HandleScope scope(isolate); |
2617 CHECK(isolate->debug()->live_edit_enabled()); | 2626 CHECK(isolate->debug()->live_edit_enabled()); |
2618 DCHECK(args.length() == 2); | 2627 DCHECK(args.length() == 2); |
2619 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); | 2628 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
2620 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]); | 2629 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]); |
2621 | 2630 |
2622 Handle<Code> code(function->code(), isolate); | 2631 Handle<Code> code(function->code(), isolate); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 return Smi::FromInt(isolate->debug()->is_active()); | 2817 return Smi::FromInt(isolate->debug()->is_active()); |
2809 } | 2818 } |
2810 | 2819 |
2811 | 2820 |
2812 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 2821 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
2813 UNIMPLEMENTED(); | 2822 UNIMPLEMENTED(); |
2814 return NULL; | 2823 return NULL; |
2815 } | 2824 } |
2816 } | 2825 } |
2817 } // namespace v8::internal | 2826 } // namespace v8::internal |
OLD | NEW |