Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 1060583008: Port CallSite methods to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 2763
2764 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) { 2764 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) {
2765 SealHandleScope shs(isolate); 2765 SealHandleScope shs(isolate);
2766 DCHECK(args.length() == 1); 2766 DCHECK(args.length() == 1);
2767 2767
2768 CONVERT_ARG_CHECKED(JSFunction, f, 0); 2768 CONVERT_ARG_CHECKED(JSFunction, f, 0);
2769 return f->shared()->inferred_name(); 2769 return f->shared()->inferred_name();
2770 } 2770 }
2771 2771
2772 2772
2773 RUNTIME_FUNCTION(Runtime_FunctionGetDebugName) {
2774 HandleScope scope(isolate);
2775 DCHECK(args.length() == 1);
2776
2777 CONVERT_ARG_HANDLE_CHECKED(JSFunction, f, 0);
2778 return *JSFunction::GetDebugName(f);
2779 }
2780
2781
2782 // A testing entry. Returns statement position which is the closest to 2773 // A testing entry. Returns statement position which is the closest to
2783 // source_position. 2774 // source_position.
2784 RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) { 2775 RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) {
2785 HandleScope scope(isolate); 2776 HandleScope scope(isolate);
2786 CHECK(isolate->debug()->live_edit_enabled()); 2777 CHECK(isolate->debug()->live_edit_enabled());
2787 DCHECK(args.length() == 2); 2778 DCHECK(args.length() == 2);
2788 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 2779 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
2789 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]); 2780 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]);
2790 2781
2791 Handle<Code> code(function->code(), isolate); 2782 Handle<Code> code(function->code(), isolate);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2985 return Smi::FromInt(isolate->debug()->is_active()); 2976 return Smi::FromInt(isolate->debug()->is_active());
2986 } 2977 }
2987 2978
2988 2979
2989 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 2980 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
2990 UNIMPLEMENTED(); 2981 UNIMPLEMENTED();
2991 return NULL; 2982 return NULL;
2992 } 2983 }
2993 } 2984 }
2994 } // namespace v8::internal 2985 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698