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

Side by Side Diff: src/js/harmony-array.js

Issue 1411653002: Install iterator meta objects via utils object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/js/generator.js ('k') | src/js/harmony-array-includes.js » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 6
7 'use strict'; 7 'use strict';
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ------------------------------------------------------------------- 11 // -------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var FLAG_harmony_tolength;
14 var GetIterator; 15 var GetIterator;
15 var GetMethod; 16 var GetMethod;
16 var GlobalArray = global.Array; 17 var GlobalArray = global.Array;
17 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 18 var iteratorSymbol = utils.ImportNow("iterator_symbol");
18 var MathMax; 19 var MathMax;
19 var MathMin; 20 var MathMin;
20 var ObjectIsFrozen; 21 var ObjectIsFrozen;
21 var ObjectDefineProperty; 22 var ObjectDefineProperty;
22 23
23 utils.Import(function(from) { 24 utils.Import(function(from) {
25 FLAG_harmony_tolength = from.FLAG_harmony_tolength;
24 GetIterator = from.GetIterator; 26 GetIterator = from.GetIterator;
25 GetMethod = from.GetMethod; 27 GetMethod = from.GetMethod;
26 MathMax = from.MathMax; 28 MathMax = from.MathMax;
27 MathMin = from.MathMin; 29 MathMin = from.MathMin;
28 ObjectIsFrozen = from.ObjectIsFrozen; 30 ObjectIsFrozen = from.ObjectIsFrozen;
29 ObjectDefineProperty = from.ObjectDefineProperty; 31 ObjectDefineProperty = from.ObjectDefineProperty;
30 }); 32 });
31 33
32 // ------------------------------------------------------------------- 34 // -------------------------------------------------------------------
33 35
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 291
290 utils.Export(function(to) { 292 utils.Export(function(to) {
291 to.ArrayFrom = ArrayFrom; 293 to.ArrayFrom = ArrayFrom;
292 to.InnerArrayCopyWithin = InnerArrayCopyWithin; 294 to.InnerArrayCopyWithin = InnerArrayCopyWithin;
293 to.InnerArrayFill = InnerArrayFill; 295 to.InnerArrayFill = InnerArrayFill;
294 to.InnerArrayFind = InnerArrayFind; 296 to.InnerArrayFind = InnerArrayFind;
295 to.InnerArrayFindIndex = InnerArrayFindIndex; 297 to.InnerArrayFindIndex = InnerArrayFindIndex;
296 }); 298 });
297 299
298 }) 300 })
OLDNEW
« no previous file with comments | « src/js/generator.js ('k') | src/js/harmony-array-includes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698