| 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 library dart.typed_data; | 5 library dart.typed_data; |
| 6 | 6 |
| 7 import "dart:_internal"; | 7 import "dart:_internal"; |
| 8 import "dart:collection" show ListBase; | 8 import "dart:collection" show ListBase; |
| 9 import 'dart:math' show Random; | 9 import 'dart:math' show Random; |
| 10 | 10 |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2879 Int32x4 withZ(int z) native "Int32x4_setZ"; | 2879 Int32x4 withZ(int z) native "Int32x4_setZ"; |
| 2880 Int32x4 withW(int w) native "Int32x4_setW"; | 2880 Int32x4 withW(int w) native "Int32x4_setW"; |
| 2881 bool get flagX native "Int32x4_getFlagX"; | 2881 bool get flagX native "Int32x4_getFlagX"; |
| 2882 bool get flagY native "Int32x4_getFlagY"; | 2882 bool get flagY native "Int32x4_getFlagY"; |
| 2883 bool get flagZ native "Int32x4_getFlagZ"; | 2883 bool get flagZ native "Int32x4_getFlagZ"; |
| 2884 bool get flagW native "Int32x4_getFlagW"; | 2884 bool get flagW native "Int32x4_getFlagW"; |
| 2885 Int32x4 withFlagX(bool x) native "Int32x4_setFlagX"; | 2885 Int32x4 withFlagX(bool x) native "Int32x4_setFlagX"; |
| 2886 Int32x4 withFlagY(bool y) native "Int32x4_setFlagY"; | 2886 Int32x4 withFlagY(bool y) native "Int32x4_setFlagY"; |
| 2887 Int32x4 withFlagZ(bool z) native "Int32x4_setFlagZ"; | 2887 Int32x4 withFlagZ(bool z) native "Int32x4_setFlagZ"; |
| 2888 Int32x4 withFlagW(bool w) native "Int32x4_setFlagW"; | 2888 Int32x4 withFlagW(bool w) native "Int32x4_setFlagW"; |
| 2889 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue) { | 2889 Float32x4 select(Float32x4 trueValue, |
| 2890 Float32x4 falseValue) { |
| 2890 return _select(trueValue, falseValue); | 2891 return _select(trueValue, falseValue); |
| 2891 } | 2892 } |
| 2892 Float32x4 _select(Float32x4 trueValue, Float32x4 falseValue) | 2893 Float32x4 _select(Float32x4 trueValue, |
| 2894 Float32x4 falseValue) |
| 2893 native "Int32x4_select"; | 2895 native "Int32x4_select"; |
| 2894 | 2896 |
| 2895 /// Mask passed to [shuffle] or [shuffleMix]. | 2897 /// Mask passed to [shuffle] or [shuffleMix]. |
| 2896 static const int XXXX = 0x0; | 2898 static const int XXXX = 0x0; |
| 2897 static const int XXXY = 0x40; | 2899 static const int XXXY = 0x40; |
| 2898 static const int XXXZ = 0x80; | 2900 static const int XXXZ = 0x80; |
| 2899 static const int XXXW = 0xC0; | 2901 static const int XXXW = 0xC0; |
| 2900 static const int XXYX = 0x10; | 2902 static const int XXYX = 0x10; |
| 2901 static const int XXYY = 0x50; | 2903 static const int XXYY = 0x50; |
| 2902 static const int XXYZ = 0x90; | 2904 static const int XXYZ = 0x90; |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4302 } | 4304 } |
| 4303 } | 4305 } |
| 4304 | 4306 |
| 4305 | 4307 |
| 4306 int _defaultIfNull(object, value) { | 4308 int _defaultIfNull(object, value) { |
| 4307 if (object == null) { | 4309 if (object == null) { |
| 4308 return value; | 4310 return value; |
| 4309 } | 4311 } |
| 4310 return object; | 4312 return object; |
| 4311 } | 4313 } |
| OLD | NEW |