OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 |
(...skipping 30 matching lines...) Expand all Loading... |
41 var InnerArrayFindIndex; | 41 var InnerArrayFindIndex; |
42 var InnerArrayForEach; | 42 var InnerArrayForEach; |
43 var InnerArrayIndexOf; | 43 var InnerArrayIndexOf; |
44 var InnerArrayJoin; | 44 var InnerArrayJoin; |
45 var InnerArrayLastIndexOf; | 45 var InnerArrayLastIndexOf; |
46 var InnerArrayMap; | 46 var InnerArrayMap; |
47 var InnerArraySome; | 47 var InnerArraySome; |
48 var InnerArraySort; | 48 var InnerArraySort; |
49 var InnerArrayToLocaleString; | 49 var InnerArrayToLocaleString; |
50 var IsNaN; | 50 var IsNaN; |
| 51 var MakeTypeError; |
51 var MaxSimple; | 52 var MaxSimple; |
52 var MinSimple; | 53 var MinSimple; |
53 var PackedArrayReverse; | 54 var PackedArrayReverse; |
54 | 55 |
55 utils.Import(function(from) { | 56 utils.Import(function(from) { |
56 ArrayFrom = from.ArrayFrom; | 57 ArrayFrom = from.ArrayFrom; |
57 ArrayToString = from.ArrayToString; | 58 ArrayToString = from.ArrayToString; |
58 InnerArrayCopyWithin = from.InnerArrayCopyWithin; | 59 InnerArrayCopyWithin = from.InnerArrayCopyWithin; |
59 InnerArrayEvery = from.InnerArrayEvery; | 60 InnerArrayEvery = from.InnerArrayEvery; |
60 InnerArrayFill = from.InnerArrayFill; | 61 InnerArrayFill = from.InnerArrayFill; |
61 InnerArrayFilter = from.InnerArrayFilter; | 62 InnerArrayFilter = from.InnerArrayFilter; |
62 InnerArrayFind = from.InnerArrayFind; | 63 InnerArrayFind = from.InnerArrayFind; |
63 InnerArrayFindIndex = from.InnerArrayFindIndex; | 64 InnerArrayFindIndex = from.InnerArrayFindIndex; |
64 InnerArrayForEach = from.InnerArrayForEach; | 65 InnerArrayForEach = from.InnerArrayForEach; |
65 InnerArrayIndexOf = from.InnerArrayIndexOf; | 66 InnerArrayIndexOf = from.InnerArrayIndexOf; |
66 InnerArrayJoin = from.InnerArrayJoin; | 67 InnerArrayJoin = from.InnerArrayJoin; |
67 InnerArrayLastIndexOf = from.InnerArrayLastIndexOf; | 68 InnerArrayLastIndexOf = from.InnerArrayLastIndexOf; |
68 InnerArrayMap = from.InnerArrayMap; | 69 InnerArrayMap = from.InnerArrayMap; |
69 InnerArrayReduce = from.InnerArrayReduce; | 70 InnerArrayReduce = from.InnerArrayReduce; |
70 InnerArrayReduceRight = from.InnerArrayReduceRight; | 71 InnerArrayReduceRight = from.InnerArrayReduceRight; |
71 InnerArraySome = from.InnerArraySome; | 72 InnerArraySome = from.InnerArraySome; |
72 InnerArraySort = from.InnerArraySort; | 73 InnerArraySort = from.InnerArraySort; |
73 InnerArrayToLocaleString = from.InnerArrayToLocaleString; | 74 InnerArrayToLocaleString = from.InnerArrayToLocaleString; |
74 IsNaN = from.IsNaN; | 75 IsNaN = from.IsNaN; |
| 76 MakeTypeError = from.MakeTypeError; |
75 MaxSimple = from.MaxSimple; | 77 MaxSimple = from.MaxSimple; |
76 MinSimple = from.MinSimple; | 78 MinSimple = from.MinSimple; |
77 PackedArrayReverse = from.PackedArrayReverse; | 79 PackedArrayReverse = from.PackedArrayReverse; |
78 }); | 80 }); |
79 | 81 |
80 // ------------------------------------------------------------------- | 82 // ------------------------------------------------------------------- |
81 | 83 |
82 function ConstructTypedArray(constructor, arg) { | 84 function ConstructTypedArray(constructor, arg) { |
83 // TODO(littledan): This is an approximation of the spec, which requires | 85 // TODO(littledan): This is an approximation of the spec, which requires |
84 // that only real TypedArray classes should be accepted (22.2.2.1.1) | 86 // that only real TypedArray classes should be accepted (22.2.2.1.1) |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 "some", TypedArraySome, | 405 "some", TypedArraySome, |
404 "sort", TypedArraySort, | 406 "sort", TypedArraySort, |
405 "toString", TypedArrayToString, | 407 "toString", TypedArrayToString, |
406 "toLocaleString", TypedArrayToLocaleString | 408 "toLocaleString", TypedArrayToLocaleString |
407 ]); | 409 ]); |
408 endmacro | 410 endmacro |
409 | 411 |
410 TYPED_ARRAYS(EXTEND_TYPED_ARRAY) | 412 TYPED_ARRAYS(EXTEND_TYPED_ARRAY) |
411 | 413 |
412 }) | 414 }) |
OLD | NEW |