OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library lib1; | |
6 | |
7 class C { | |
8 static foo() { | |
9 () {} (); // Hack to avoid inlining. | |
10 return 1; | |
11 } | |
12 bar() { | |
13 () {} (); // Hack to avoid inlining. | |
14 return 1; | |
15 } | |
16 } | |
17 | |
18 class C1 { | |
19 static var foo = const {}; | |
floitsch
2014/12/16 12:19:45
use different compile time constants for every fie
sigurdm
2014/12/16 13:02:51
Done.
| |
20 var bar = const {}; | |
21 } | |
22 | |
23 class C2 { | |
24 static var foo = new Map(); | |
25 var bar = new Map(); | |
26 } | |
27 | |
28 class C3 { | |
29 static final foo = const {}; | |
30 final bar = const {}; | |
31 } | |
32 | |
33 class C4 { | |
34 static final foo = new Map(); | |
35 final bar = new Map(); | |
36 } | |
37 | |
38 class C5 { | |
39 static const foo = const {}; | |
40 bar() { | |
41 () {} (); // Hack to avoid inlining. | |
42 return 1; | |
43 } | |
44 } | |
OLD | NEW |