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

Side by Side Diff: src/debug/mirrors.js

Issue 1449473005: [V8] Unify get function name for debugging purpose (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/api.cc ('k') | src/heap/heap.h » ('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 2006-2012 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 (function(global, utils) { 5 (function(global, utils) {
6 "use strict"; 6 "use strict";
7 7
8 // ---------------------------------------------------------------------------- 8 // ----------------------------------------------------------------------------
9 // Imports 9 // Imports
10 10
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 /** 980 /**
981 * Returns the name of the function. 981 * Returns the name of the function.
982 * @return {string} Name of the function 982 * @return {string} Name of the function
983 */ 983 */
984 FunctionMirror.prototype.name = function() { 984 FunctionMirror.prototype.name = function() {
985 return %FunctionGetName(this.value_); 985 return %FunctionGetName(this.value_);
986 }; 986 };
987 987
988 988
989 /** 989 /**
990 * Returns the displayName if it is set, otherwise name, otherwise inferred name .
Yang 2015/11/17 06:23:45 Comment goes over 80-char limit.
kozy 2015/11/17 17:15:53 Done.
991 */
992 FunctionMirror.prototype.debugName = function() {
993 return %FunctionGetDebugName(this.value_);
994 }
995
996
997 /**
990 * Returns the inferred name of the function. 998 * Returns the inferred name of the function.
991 * @return {string} Name of the function 999 * @return {string} Name of the function
992 */ 1000 */
993 FunctionMirror.prototype.inferredName = function() { 1001 FunctionMirror.prototype.inferredName = function() {
994 return %FunctionGetInferredName(this.value_); 1002 return %FunctionGetInferredName(this.value_);
995 }; 1003 };
996 1004
997 1005
998 /** 1006 /**
999 * Returns the source code for the function. 1007 * Returns the source code for the function.
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 // Functions needed by the debugger runtime. 3130 // Functions needed by the debugger runtime.
3123 utils.InstallFunctions(utils, DONT_ENUM, [ 3131 utils.InstallFunctions(utils, DONT_ENUM, [
3124 "ClearMirrorCache", ClearMirrorCache 3132 "ClearMirrorCache", ClearMirrorCache
3125 ]); 3133 ]);
3126 3134
3127 // Export to debug.js 3135 // Export to debug.js
3128 utils.Export(function(to) { 3136 utils.Export(function(to) {
3129 to.MirrorType = MirrorType; 3137 to.MirrorType = MirrorType;
3130 }); 3138 });
3131 }) 3139 })
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698