| 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 import "dart:_internal"; | 7 import "dart:_internal"; |
| 8 import 'dart:math' show Random; | 8 import 'dart:math' show Random; |
| 9 | 9 |
| 10 patch class Int8List { | 10 patch class Int8List { |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 Int32x4 _cmpnequal(Float32x4 other) | 2322 Int32x4 _cmpnequal(Float32x4 other) |
| 2323 native "Float32x4_cmpnequal"; | 2323 native "Float32x4_cmpnequal"; |
| 2324 Float32x4 scale(double s) { | 2324 Float32x4 scale(double s) { |
| 2325 return _scale(s); | 2325 return _scale(s); |
| 2326 } | 2326 } |
| 2327 Float32x4 _scale(double s) native "Float32x4_scale"; | 2327 Float32x4 _scale(double s) native "Float32x4_scale"; |
| 2328 Float32x4 abs() { | 2328 Float32x4 abs() { |
| 2329 return _abs(); | 2329 return _abs(); |
| 2330 } | 2330 } |
| 2331 Float32x4 _abs() native "Float32x4_abs"; | 2331 Float32x4 _abs() native "Float32x4_abs"; |
| 2332 Float32x4 clamp(Float32x4 lowerLimit, | 2332 Float32x4 clamp(Float32x4 lowerLimit, Float32x4 upperLimit) { |
| 2333 Float32x4 upperLimit) { | |
| 2334 return _clamp(lowerLimit, upperLimit); | 2333 return _clamp(lowerLimit, upperLimit); |
| 2335 } | 2334 } |
| 2336 Float32x4 _clamp(Float32x4 lowerLimit, | 2335 Float32x4 _clamp(Float32x4 lowerLimit, Float32x4 upperLimit) |
| 2337 Float32x4 upperLimit) | |
| 2338 native "Float32x4_clamp"; | 2336 native "Float32x4_clamp"; |
| 2339 double get x native "Float32x4_getX"; | 2337 double get x native "Float32x4_getX"; |
| 2340 double get y native "Float32x4_getY"; | 2338 double get y native "Float32x4_getY"; |
| 2341 double get z native "Float32x4_getZ"; | 2339 double get z native "Float32x4_getZ"; |
| 2342 double get w native "Float32x4_getW"; | 2340 double get w native "Float32x4_getW"; |
| 2343 int get signMask native "Float32x4_getSignMask"; | 2341 int get signMask native "Float32x4_getSignMask"; |
| 2344 | 2342 |
| 2345 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; | 2343 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; |
| 2346 Float32x4 shuffleMix(Float32x4 zw, int mask) native "Float32x4_shuffleMix"; | 2344 Float32x4 shuffleMix(Float32x4 zw, int mask) native "Float32x4_shuffleMix"; |
| 2347 | 2345 |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3634 return value; | 3632 return value; |
| 3635 } | 3633 } |
| 3636 return object; | 3634 return object; |
| 3637 } | 3635 } |
| 3638 | 3636 |
| 3639 | 3637 |
| 3640 void _throwRangeError(int index, int length) { | 3638 void _throwRangeError(int index, int length) { |
| 3641 String message = "$index must be in the range [0..$length)"; | 3639 String message = "$index must be in the range [0..$length)"; |
| 3642 throw new RangeError(message); | 3640 throw new RangeError(message); |
| 3643 } | 3641 } |
| OLD | NEW |