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

Unified Diff: tools/dom/src/dart2js_Platform.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 | « tests/html/typed_arrays_simd_test.dart ('k') | tools/dom/src/dartium_Platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dart2js_Platform.dart
diff --git a/tools/dom/src/dart2js_Platform.dart b/tools/dom/src/dart2js_Platform.dart
index 90570f004991ddb2e87080fe4ac66e4b525b72be..5988011c0cd3c1c048605dcb22c0a3c7360ff25e 100644
--- a/tools/dom/src/dart2js_Platform.dart
+++ b/tools/dom/src/dart2js_Platform.dart
@@ -5,5 +5,17 @@
part of html;
class Platform {
+ /**
+ * Returns true if dart:typed_data types are supported on this
+ * browser. If false, using these types will generate a runtime
+ * error.
+ */
static final supportsTypedData = JS('bool', '!!(window.ArrayBuffer)');
+
+ /**
+ * Returns true if SIMD types in dart:typed_data types are supported
+ * on this browser. If false, using these types will generate a runtime
+ * error.
+ */
+ static final supportsSimd = false;
}
« no previous file with comments | « tests/html/typed_arrays_simd_test.dart ('k') | tools/dom/src/dartium_Platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698