Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart

Issue 14531008: Added SIMD stubs for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address blois' comments Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/typed_arrays_simd_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
diff --git a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
index 3187a8c810362a1b6c934de4b1376a5d73b0a7cf..593870d61d636f61b70f925c97d05ec9296c5b02 100644
--- a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
+++ b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
@@ -2344,6 +2344,43 @@ class Uint64List extends TypedData implements JavaScriptIndexingBehavior, List<i
}
+abstract class Float32x4List implements List<Float32x4>, TypedData {
+ factory Float32x4List(int length) {
+ throw new UnsupportedError("Float32x4List not supported by dart2js.");
+ }
+
+ factory Float32x4List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError("Float32x4List not supported by dart2js.");
+ }
+
+ static const int BYTES_PER_ELEMENT = 16;
+}
+
+
+abstract class Float32x4 {
+ factory Float32x4(double x, double y, double z, double w) {
+ throw new UnsupportedError("Float32x4 not supported by dart2js.");
+ }
+ factory Float32x4.splat(double v) {
+ throw new UnsupportedError("Float32x4 not supported by dart2js.");
+ }
+ factory Float32x4.zero() {
+ throw new UnsupportedError("Float32x4 not supported by dart2js.");
+ }
+}
+
+
+abstract class Uint32x4 {
+ factory Uint32x4(int x, int y, int z, int w) {
+ throw new UnsupportedError("Uint32x4 not supported by dart2js.");
+ }
+ factory Uint32x4.bool(bool x, bool y, bool z, bool w) {
+ throw new UnsupportedError("Uint32x4 not supported by dart2js.");
+ }
+}
+
+
// TODO(vsm): Eliminate this class and just inline into above.
class _TypedArrayFactoryProvider {
static ByteData createByteData(int length) => _B8(length);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/typed_arrays_simd_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698