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

Unified Diff: src/string.js

Issue 1318043002: Native context: do not put public symbols and flags on the js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix and rebase Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/string-iterator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string.js
diff --git a/src/string.js b/src/string.js
index 8e7fc6c01c6889a8a5ccecf399ef7a538bafdac4..08129584c2b5a1d6739daead4a6d95e33ecb0d7d 100644
--- a/src/string.js
+++ b/src/string.js
@@ -20,6 +20,7 @@ var MathMin;
var RegExpExec;
var RegExpExecNoTests;
var RegExpLastMatchInfo;
+var SymbolToString;
var ToNumber;
var ToString;
@@ -31,6 +32,7 @@ utils.Import(function(from) {
RegExpExec = from.RegExpExec;
RegExpExecNoTests = from.RegExpExecNoTests;
RegExpLastMatchInfo = from.RegExpLastMatchInfo;
+ SymbolToString = from.SymbolToString;
ToNumber = from.ToNumber;
ToString = from.ToString;
});
@@ -43,7 +45,7 @@ function StringConstructor(x) {
%_SetValueOf(this, TO_STRING_INLINE(x));
} else {
return IS_SYMBOL(x) ?
- %_CallFunction(x, $symbolToString) : TO_STRING_INLINE(x);
+ %_CallFunction(x, SymbolToString) : TO_STRING_INLINE(x);
}
}
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/string-iterator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698