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

Unified Diff: tests/language/vm/load_to_load_forwarding_vm_test.dart

Issue 189543013: Add alias identity information to array allocations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/load_to_load_forwarding_vm_test.dart
===================================================================
--- tests/language/vm/load_to_load_forwarding_vm_test.dart (revision 33493)
+++ tests/language/vm/load_to_load_forwarding_vm_test.dart (working copy)
@@ -266,6 +266,24 @@
}
return a[0] + a[1];
}
+
+
+testIndexedAliasedStore3(i) {
+ var a = new List(2);
+ a[0] = 1;
+ a[i] = 3;
+ return a[0];
+}
+
+
+testIndexedAliasedStore4(b) {
+ var a = new List(2);
+ a[0] = 1;
+ b[0] = 3;
+ return a[0];
+}
+
+
var indices = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
class Z {
@@ -349,7 +367,17 @@
for (var i = 0; i < 20; i++) {
Expect.equals(4, testIndexedAliasedStore2(array, array, indices[1]));
}
+ for (var i = 0; i < 20; i++) {
+ Expect.equals(3, testIndexedAliasedStore3(indices[0]));
+ }
+ for (var i = 0; i < 20; i++) {
+ Expect.equals(1, testIndexedAliasedStore3(indices[1]));
+ }
+ for (var i = 0; i < 20; i++) {
+ Expect.equals(1, testIndexedAliasedStore4(array));
+ }
+
var test_array = new List(1);
for (var i = 0; i < 20; i++) {
Expect.equals(43, testAliasingStoreIndexed(global_array));
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698