OLD | NEW |
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 Loading... |
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 }) |
OLD | NEW |