| 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 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2161 Float32x4 _clamp(Float32x4 lowerLimit, | 2161 Float32x4 _clamp(Float32x4 lowerLimit, |
| 2162 Float32x4 upperLimit) | 2162 Float32x4 upperLimit) |
| 2163 native "Float32x4_clamp"; | 2163 native "Float32x4_clamp"; |
| 2164 double get x native "Float32x4_getX"; | 2164 double get x native "Float32x4_getX"; |
| 2165 double get y native "Float32x4_getY"; | 2165 double get y native "Float32x4_getY"; |
| 2166 double get z native "Float32x4_getZ"; | 2166 double get z native "Float32x4_getZ"; |
| 2167 double get w native "Float32x4_getW"; | 2167 double get w native "Float32x4_getW"; |
| 2168 int get signMask native "Float32x4_getSignMask"; | 2168 int get signMask native "Float32x4_getSignMask"; |
| 2169 | 2169 |
| 2170 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; | 2170 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; |
| 2171 | 2171 Float32x4 shuffleMix(Float32x4 zw, int mask) native "Float32x4_shuffleMix"; |
| 2172 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY"; | |
| 2173 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY"; | |
| 2174 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW"; | |
| 2175 Float32x4 interleaveXYPairs(Float32x4 other) | |
| 2176 native "Float32x4_interleaveXYPairs"; | |
| 2177 Float32x4 interleaveZWPairs(Float32x4 other) | |
| 2178 native "Float32x4_interleaveZWPairs"; | |
| 2179 | 2172 |
| 2180 Float32x4 withX(double x) native "Float32x4_setX"; | 2173 Float32x4 withX(double x) native "Float32x4_setX"; |
| 2181 Float32x4 withY(double y) native "Float32x4_setY"; | 2174 Float32x4 withY(double y) native "Float32x4_setY"; |
| 2182 Float32x4 withZ(double z) native "Float32x4_setZ"; | 2175 Float32x4 withZ(double z) native "Float32x4_setZ"; |
| 2183 Float32x4 withW(double w) native "Float32x4_setW"; | 2176 Float32x4 withW(double w) native "Float32x4_setW"; |
| 2184 Float32x4 min(Float32x4 other) { | 2177 Float32x4 min(Float32x4 other) { |
| 2185 return _min(other); | 2178 return _min(other); |
| 2186 } | 2179 } |
| 2187 Float32x4 _min(Float32x4 other) native "Float32x4_min"; | 2180 Float32x4 _min(Float32x4 other) native "Float32x4_min"; |
| 2188 Float32x4 max(Float32x4 other) { | 2181 Float32x4 max(Float32x4 other) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2229 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add"; | 2222 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add"; |
| 2230 Uint32x4 operator -(Uint32x4 other) { | 2223 Uint32x4 operator -(Uint32x4 other) { |
| 2231 return _sub(other); | 2224 return _sub(other); |
| 2232 } | 2225 } |
| 2233 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub"; | 2226 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub"; |
| 2234 int get x native "Uint32x4_getX"; | 2227 int get x native "Uint32x4_getX"; |
| 2235 int get y native "Uint32x4_getY"; | 2228 int get y native "Uint32x4_getY"; |
| 2236 int get z native "Uint32x4_getZ"; | 2229 int get z native "Uint32x4_getZ"; |
| 2237 int get w native "Uint32x4_getW"; | 2230 int get w native "Uint32x4_getW"; |
| 2238 int get signMask native "Uint32x4_getSignMask"; | 2231 int get signMask native "Uint32x4_getSignMask"; |
| 2232 Uint32x4 shuffle(int mask) native "Uint32x4_shuffle"; |
| 2233 Uint32x4 shuffleMix(Uint32x4 zw, int mask) native "Uint32x4_shuffleMix"; |
| 2239 Uint32x4 withX(int x) native "Uint32x4_setX"; | 2234 Uint32x4 withX(int x) native "Uint32x4_setX"; |
| 2240 Uint32x4 withY(int y) native "Uint32x4_setY"; | 2235 Uint32x4 withY(int y) native "Uint32x4_setY"; |
| 2241 Uint32x4 withZ(int z) native "Uint32x4_setZ"; | 2236 Uint32x4 withZ(int z) native "Uint32x4_setZ"; |
| 2242 Uint32x4 withW(int w) native "Uint32x4_setW"; | 2237 Uint32x4 withW(int w) native "Uint32x4_setW"; |
| 2243 bool get flagX native "Uint32x4_getFlagX"; | 2238 bool get flagX native "Uint32x4_getFlagX"; |
| 2244 bool get flagY native "Uint32x4_getFlagY"; | 2239 bool get flagY native "Uint32x4_getFlagY"; |
| 2245 bool get flagZ native "Uint32x4_getFlagZ"; | 2240 bool get flagZ native "Uint32x4_getFlagZ"; |
| 2246 bool get flagW native "Uint32x4_getFlagW"; | 2241 bool get flagW native "Uint32x4_getFlagW"; |
| 2247 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; | 2242 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; |
| 2248 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; | 2243 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3346 return value; | 3341 return value; |
| 3347 } | 3342 } |
| 3348 return object; | 3343 return object; |
| 3349 } | 3344 } |
| 3350 | 3345 |
| 3351 | 3346 |
| 3352 void _throwRangeError(int index, int length) { | 3347 void _throwRangeError(int index, int length) { |
| 3353 String message = "$index must be in the range [0..$length)"; | 3348 String message = "$index must be in the range [0..$length)"; |
| 3354 throw new RangeError(message); | 3349 throw new RangeError(message); |
| 3355 } | 3350 } |
| OLD | NEW |