Chromium Code Reviews| 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; |