| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // patch classes for Int8List ..... Float64List and ByteData implementations. | 5 // patch classes for Int8List ..... Float64List and ByteData implementations. |
| 6 | 6 |
| 7 patch class Int8List { | 7 patch class Int8List { |
| 8 /* patch */ factory Int8List(int length) { | 8 /* patch */ factory Int8List(int length) { |
| 9 return new _Int8Array(length); | 9 return new _Int8Array(length); |
| 10 } | 10 } |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 Float32x4 upperLimit) { | 2015 Float32x4 upperLimit) { |
| 2016 return _clamp(lowerLimit, upperLimit); | 2016 return _clamp(lowerLimit, upperLimit); |
| 2017 } | 2017 } |
| 2018 Float32x4 _clamp(Float32x4 lowerLimit, | 2018 Float32x4 _clamp(Float32x4 lowerLimit, |
| 2019 Float32x4 upperLimit) | 2019 Float32x4 upperLimit) |
| 2020 native "Float32x4_clamp"; | 2020 native "Float32x4_clamp"; |
| 2021 double get x native "Float32x4_getX"; | 2021 double get x native "Float32x4_getX"; |
| 2022 double get y native "Float32x4_getY"; | 2022 double get y native "Float32x4_getY"; |
| 2023 double get z native "Float32x4_getZ"; | 2023 double get z native "Float32x4_getZ"; |
| 2024 double get w native "Float32x4_getW"; | 2024 double get w native "Float32x4_getW"; |
| 2025 int get signMask native "Float32x4_getSignMask"; |
| 2025 | 2026 |
| 2026 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; | 2027 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; |
| 2027 | 2028 |
| 2028 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY"; | 2029 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY"; |
| 2029 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY"; | 2030 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY"; |
| 2030 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW"; | 2031 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW"; |
| 2031 Float32x4 interleaveXYPairs(Float32x4 other) | 2032 Float32x4 interleaveXYPairs(Float32x4 other) |
| 2032 native "Float32x4_interleaveXYPairs"; | 2033 native "Float32x4_interleaveXYPairs"; |
| 2033 Float32x4 interleaveZWPairs(Float32x4 other) | 2034 Float32x4 interleaveZWPairs(Float32x4 other) |
| 2034 native "Float32x4_interleaveZWPairs"; | 2035 native "Float32x4_interleaveZWPairs"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 } | 2087 } |
| 2087 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add"; | 2088 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add"; |
| 2088 Uint32x4 operator -(Uint32x4 other) { | 2089 Uint32x4 operator -(Uint32x4 other) { |
| 2089 return _sub(other); | 2090 return _sub(other); |
| 2090 } | 2091 } |
| 2091 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub"; | 2092 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub"; |
| 2092 int get x native "Uint32x4_getX"; | 2093 int get x native "Uint32x4_getX"; |
| 2093 int get y native "Uint32x4_getY"; | 2094 int get y native "Uint32x4_getY"; |
| 2094 int get z native "Uint32x4_getZ"; | 2095 int get z native "Uint32x4_getZ"; |
| 2095 int get w native "Uint32x4_getW"; | 2096 int get w native "Uint32x4_getW"; |
| 2097 int get signMask native "Uint32x4_getSignMask"; |
| 2096 Uint32x4 withX(int x) native "Uint32x4_setX"; | 2098 Uint32x4 withX(int x) native "Uint32x4_setX"; |
| 2097 Uint32x4 withY(int y) native "Uint32x4_setY"; | 2099 Uint32x4 withY(int y) native "Uint32x4_setY"; |
| 2098 Uint32x4 withZ(int z) native "Uint32x4_setZ"; | 2100 Uint32x4 withZ(int z) native "Uint32x4_setZ"; |
| 2099 Uint32x4 withW(int w) native "Uint32x4_setW"; | 2101 Uint32x4 withW(int w) native "Uint32x4_setW"; |
| 2100 bool get flagX native "Uint32x4_getFlagX"; | 2102 bool get flagX native "Uint32x4_getFlagX"; |
| 2101 bool get flagY native "Uint32x4_getFlagY"; | 2103 bool get flagY native "Uint32x4_getFlagY"; |
| 2102 bool get flagZ native "Uint32x4_getFlagZ"; | 2104 bool get flagZ native "Uint32x4_getFlagZ"; |
| 2103 bool get flagW native "Uint32x4_getFlagW"; | 2105 bool get flagW native "Uint32x4_getFlagW"; |
| 2104 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; | 2106 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; |
| 2105 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; | 2107 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3138 return value; | 3140 return value; |
| 3139 } | 3141 } |
| 3140 return object; | 3142 return object; |
| 3141 } | 3143 } |
| 3142 | 3144 |
| 3143 | 3145 |
| 3144 void _throwRangeError(int index, int length) { | 3146 void _throwRangeError(int index, int length) { |
| 3145 String message = "$index must be in the range [0..$length)"; | 3147 String message = "$index must be in the range [0..$length)"; |
| 3146 throw new RangeError(message); | 3148 throw new RangeError(message); |
| 3147 } | 3149 } |
| OLD | NEW |