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

Unified Diff: src/debug/mirrors.js

Issue 1540953004: [runtime] Rewrite Function.prototype.toString in C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typos. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/elements.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index b03f5125eb865bf031da4f93604abc772214a338..1fd5fa9ecd7222dca3026e5c48e848f3127d33b2 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -9,7 +9,6 @@
// Imports
var ErrorToString;
-var FunctionSourceString;
var GlobalArray = global.Array;
var IsNaN = global.isNaN;
var JSONStringify = global.JSON.stringify;
@@ -25,7 +24,6 @@ var SymbolToString;
utils.Import(function(from) {
ErrorToString = from.ErrorToString;
- FunctionSourceString = from.FunctionSourceString;
MakeError = from.MakeError;
MapEntries = from.MapEntries;
MapIteratorNext = from.MapIteratorNext;
@@ -938,7 +936,7 @@ FunctionMirror.prototype.source = function() {
// Return source if function is resolved. Otherwise just fall through to
// return undefined.
if (this.resolved()) {
- return FunctionSourceString(this.value_);
+ return %FunctionToString(this.value_);
Yang 2015/12/22 06:19:22 Alternatively, you could import global.Function.pr
Benedikt Meurer 2015/12/22 06:30:35 As per offline discussion: This doesn't work with
}
};
« no previous file with comments | « src/builtins.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698