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

Unified Diff: src/string-iterator.js

Issue 1293493004: Unify symbols sharing across native scripts and runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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-symbol.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string-iterator.js
diff --git a/src/string-iterator.js b/src/string-iterator.js
index bb392ef10efbaa908e89d466faadfbcd4b68d14b..4e51a12a2eda14e26fda37469d6e9516a95cf0a3 100644
--- a/src/string-iterator.js
+++ b/src/string-iterator.js
@@ -11,9 +11,12 @@
// -------------------------------------------------------------------
// Imports
-var GlobalString = global.String;
-
var ArrayIteratorCreateResultObject;
+var GlobalString = global.String;
+var stringIteratorIteratedStringSymbol =
+ utils.GetPrivateSymbol("string_iterator_iterated_string_symbol");
+var stringIteratorNextIndexSymbol =
+ utils.GetPrivateSymbol("string_iterator_next_index_symbol");
utils.Import(function(from) {
ArrayIteratorCreateResultObject = from.ArrayIteratorCreateResultObject;
@@ -21,11 +24,6 @@ utils.Import(function(from) {
// -------------------------------------------------------------------
-var stringIteratorIteratedStringSymbol =
- GLOBAL_PRIVATE("StringIterator#iteratedString");
-var stringIteratorNextIndexSymbol = GLOBAL_PRIVATE("StringIterator#next");
-
-
function StringIterator() {}
« no previous file with comments | « src/runtime/runtime-symbol.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698