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

Unified Diff: tests/standalone/byte_array_test.dart

Issue 12263010: Optimize stores to ExternalUint8Array and ExternalUint8ClampedArray in the optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/byte_array_test.dart
===================================================================
--- tests/standalone/byte_array_test.dart (revision 18309)
+++ tests/standalone/byte_array_test.dart (working copy)
@@ -54,7 +54,12 @@
for (int i = 0; i < 10; i++) {
Expect.equals(0, externalClampedByteArray[i]);
}
-
+ for (int i = 0; i < 10; i++) {
+ externalClampedByteArray[i] = i + 250;
+ }
+ for (int i = 0; i < 10; i++) {
+ Expect.equals(i + 250 > 255 ? 255 : i + 250, externalClampedByteArray[i]);
+ }
}
void testUnsignedByteArrayRange(bool check_throws) {
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698