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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 111553003: Fix regression on side effects of tdiv. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
Index: tests/compiler/dart2js/mock_compiler.dart
===================================================================
--- tests/compiler/dart2js/mock_compiler.dart (revision 31023)
+++ tests/compiler/dart2js/mock_compiler.dart (working copy)
@@ -151,7 +151,9 @@
operator ==(other) => true;
get hashCode => throw "JSNumber.hashCode not implemented.";
- _tdivFast(other) => 42;
+ // Force side effects on _tdivFast to ensure the optimizers do the
+ // right thing.
sra1 2013/12/11 09:45:24 I'm not sure 'do the right thing' is what we reall
ngeoffray 2013/12/16 13:31:41 No, that's correct. I improved the comment.
+ _tdivFast(other) => new List()..length = 42;
_shlPositive(other) => 42;
_shrBothPositive(other) => 42;
_shrReceiverPositive(other) => 42;

Powered by Google App Engine
This is Rietveld 408576698