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

Side by Side Diff: tests/lib/mirrors/hot_get_field_test.dart

Issue 2727323002: Add @MirrorsUsed annotations to speed up tests. (Closed)
Patch Set: Minor fixes. Created 3 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 unified diff | Download patch
« no previous file with comments | « tests/lib/mirrors/generics_test.dart ('k') | tests/lib/mirrors/hot_set_field_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.hot_get_field; 5 library test.hot_get_field;
6 6
7 @MirrorsUsed(targets: "test.hot_get_field")
7 import 'dart:mirrors'; 8 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
9 10
10 class C { 11 class C {
11 var field; 12 var field;
12 var _field; 13 var _field;
13 operator +(other) => field + other; 14 operator +(other) => field + other;
14 } 15 }
15 16
16 const int optimizationThreshold = 20; 17 const int optimizationThreshold = 20;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 Expect.equals(2 * i, closurizedPlus(i)); 58 Expect.equals(2 * i, closurizedPlus(i));
58 } 59 }
59 } 60 }
60 61
61 main() { 62 main() {
62 testPublic(); 63 testPublic();
63 testPrivate(); 64 testPrivate();
64 testPrivateWrongLibrary(); 65 testPrivateWrongLibrary();
65 testOperator(); 66 testOperator();
66 } 67 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/generics_test.dart ('k') | tests/lib/mirrors/hot_set_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698