| 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 |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // ------------------------------------------------------------------- | 820 // ------------------------------------------------------------------- |
| 821 | 821 |
| 822 %FunctionSetPrototype(TypedArray, new GlobalObject()); | 822 %FunctionSetPrototype(TypedArray, new GlobalObject()); |
| 823 %AddNamedProperty(TypedArray.prototype, | 823 %AddNamedProperty(TypedArray.prototype, |
| 824 "constructor", TypedArray, DONT_ENUM); | 824 "constructor", TypedArray, DONT_ENUM); |
| 825 utils.InstallFunctions(TypedArray, DONT_ENUM, [ | 825 utils.InstallFunctions(TypedArray, DONT_ENUM, [ |
| 826 "from", TypedArrayFrom, | 826 "from", TypedArrayFrom, |
| 827 "of", TypedArrayOf | 827 "of", TypedArrayOf |
| 828 ]); | 828 ]); |
| 829 utils.InstallGetter(TypedArray.prototype, "buffer", TypedArrayGetBuffer); | 829 utils.InstallGetter(TypedArray.prototype, "buffer", TypedArrayGetBuffer); |
| 830 utils.InstallGetter(TypedArray.prototype, "byteOffset", TypedArrayGetByteOffset, | 830 utils.InstallGetter(TypedArray.prototype, "byteOffset", |
| 831 DONT_ENUM | DONT_DELETE); | 831 TypedArrayGetByteOffset); |
| 832 utils.InstallGetter(TypedArray.prototype, "byteLength", | 832 utils.InstallGetter(TypedArray.prototype, "byteLength", |
| 833 TypedArrayGetByteLength, DONT_ENUM | DONT_DELETE); | 833 TypedArrayGetByteLength); |
| 834 utils.InstallGetter(TypedArray.prototype, "length", TypedArrayGetLength, | 834 utils.InstallGetter(TypedArray.prototype, "length", TypedArrayGetLength); |
| 835 DONT_ENUM | DONT_DELETE); | |
| 836 utils.InstallGetter(TypedArray.prototype, toStringTagSymbol, | 835 utils.InstallGetter(TypedArray.prototype, toStringTagSymbol, |
| 837 TypedArrayGetToStringTag); | 836 TypedArrayGetToStringTag); |
| 838 utils.InstallFunctions(TypedArray.prototype, DONT_ENUM, [ | 837 utils.InstallFunctions(TypedArray.prototype, DONT_ENUM, [ |
| 839 "subarray", TypedArraySubArray, | 838 "subarray", TypedArraySubArray, |
| 840 "set", TypedArraySet, | 839 "set", TypedArraySet, |
| 841 "copyWithin", TypedArrayCopyWithin, | 840 "copyWithin", TypedArrayCopyWithin, |
| 842 "every", TypedArrayEvery, | 841 "every", TypedArrayEvery, |
| 843 "fill", TypedArrayFill, | 842 "fill", TypedArrayFill, |
| 844 "filter", TypedArrayFilter, | 843 "filter", TypedArrayFilter, |
| 845 "find", TypedArrayFind, | 844 "find", TypedArrayFind, |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 "setUint32", DataViewSetUint32JS, | 978 "setUint32", DataViewSetUint32JS, |
| 980 | 979 |
| 981 "getFloat32", DataViewGetFloat32JS, | 980 "getFloat32", DataViewGetFloat32JS, |
| 982 "setFloat32", DataViewSetFloat32JS, | 981 "setFloat32", DataViewSetFloat32JS, |
| 983 | 982 |
| 984 "getFloat64", DataViewGetFloat64JS, | 983 "getFloat64", DataViewGetFloat64JS, |
| 985 "setFloat64", DataViewSetFloat64JS | 984 "setFloat64", DataViewSetFloat64JS |
| 986 ]); | 985 ]); |
| 987 | 986 |
| 988 }) | 987 }) |
| OLD | NEW |