| 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 GetIterator; |
| 15 var GetMethod; |
| 14 var GlobalArray = global.Array; | 16 var GlobalArray = global.Array; |
| 15 var GlobalSymbol = global.Symbol; | 17 var GlobalSymbol = global.Symbol; |
| 16 | |
| 17 var GetIterator; | |
| 18 var GetMethod; | |
| 19 var MathMax; | 18 var MathMax; |
| 20 var MathMin; | 19 var MathMin; |
| 21 var ObjectIsFrozen; | 20 var ObjectIsFrozen; |
| 22 var ObjectDefineProperty; | 21 var ObjectDefineProperty; |
| 22 var ToNumber; |
| 23 | 23 |
| 24 utils.Import(function(from) { | 24 utils.Import(function(from) { |
| 25 GetIterator = from.GetIterator; | 25 GetIterator = from.GetIterator; |
| 26 GetMethod = from.GetMethod; | 26 GetMethod = from.GetMethod; |
| 27 MathMax = from.MathMax; | 27 MathMax = from.MathMax; |
| 28 MathMin = from.MathMin; | 28 MathMin = from.MathMin; |
| 29 ObjectIsFrozen = from.ObjectIsFrozen; | 29 ObjectIsFrozen = from.ObjectIsFrozen; |
| 30 ObjectDefineProperty = from.ObjectDefineProperty; | 30 ObjectDefineProperty = from.ObjectDefineProperty; |
| 31 ToNumber = from.ToNumber; |
| 31 }); | 32 }); |
| 32 | 33 |
| 33 // ------------------------------------------------------------------- | 34 // ------------------------------------------------------------------- |
| 34 | 35 |
| 35 function InnerArrayCopyWithin(target, start, end, array, length) { | 36 function InnerArrayCopyWithin(target, start, end, array, length) { |
| 36 target = TO_INTEGER(target); | 37 target = TO_INTEGER(target); |
| 37 var to; | 38 var to; |
| 38 if (target < 0) { | 39 if (target < 0) { |
| 39 to = MathMax(length + target, 0); | 40 to = MathMax(length + target, 0); |
| 40 } else { | 41 } else { |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 313 |
| 313 utils.Export(function(to) { | 314 utils.Export(function(to) { |
| 314 to.ArrayFrom = ArrayFrom; | 315 to.ArrayFrom = ArrayFrom; |
| 315 to.InnerArrayCopyWithin = InnerArrayCopyWithin; | 316 to.InnerArrayCopyWithin = InnerArrayCopyWithin; |
| 316 to.InnerArrayFill = InnerArrayFill; | 317 to.InnerArrayFill = InnerArrayFill; |
| 317 to.InnerArrayFind = InnerArrayFind; | 318 to.InnerArrayFind = InnerArrayFind; |
| 318 to.InnerArrayFindIndex = InnerArrayFindIndex; | 319 to.InnerArrayFindIndex = InnerArrayFindIndex; |
| 319 }); | 320 }); |
| 320 | 321 |
| 321 }) | 322 }) |
| OLD | NEW |