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

Unified Diff: src/array-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 | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array-iterator.js
diff --git a/src/array-iterator.js b/src/array-iterator.js
index 9698a07b0442eb5e83b330fd73206963fa5619d1..7c71e2810008b841eadb7320d365e7f00854b341 100644
--- a/src/array-iterator.js
+++ b/src/array-iterator.js
@@ -10,6 +10,15 @@ var $arrayValues;
%CheckIsBootstrapping();
+// -----------------------------------------------------------------------
+// Imports
+
+var arrayIterationKindSymbol =
+ utils.GetPrivateSymbol("array_iteration_kind_symbol");
+var arrayIteratorNextIndexSymbol =
+ utils.GetPrivateSymbol("array_iterator_next_symbol");
+var arrayIteratorObjectSymbol =
+ utils.GetPrivateSymbol("array_iterator_object_symbol");
var GlobalArray = global.Array;
macro TYPED_ARRAYS(FUNCTION)
@@ -30,10 +39,7 @@ endmacro
TYPED_ARRAYS(COPY_FROM_GLOBAL)
-var arrayIteratorObjectSymbol = GLOBAL_PRIVATE("ArrayIterator#object");
-var arrayIteratorNextIndexSymbol = GLOBAL_PRIVATE("ArrayIterator#next");
-var arrayIterationKindSymbol = GLOBAL_PRIVATE("ArrayIterator#kind");
-
+// -----------------------------------------------------------------------
function ArrayIterator() {}
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698