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

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

Issue 966773002: VM: Better type propagation for string objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comment and fixed MaybeNumber Created 5 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/optimized_identical_test.dart
===================================================================
--- tests/language/vm/optimized_identical_test.dart (revision 44089)
+++ tests/language/vm/optimized_identical_test.dart (working copy)
@@ -18,8 +18,16 @@
throw "fail";
}
+Object Y = 1.0;
+
+test_object_type(x) => identical(x, Y);
+
main() {
for (var i = 0; i < 20; i++) test(0);
Expect.equals("ok", test(0));
+
+ var x = 0.0 + 1.0;
+ for (var i = 0; i < 20; i++) test_object_type(x);
+ Expect.equals(true, test_object_type(x));
}
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698