OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class A { | 5 class A { |
6 int x; | 6 int x; |
7 | 7 |
8 static final A a = new A(); | 8 const A() : this.x = 1; |
9 | 9 |
10 A(){} | 10 static final A a = const A(); |
ngeoffray
2011/10/17 10:59:38
Any reason for reordering the lines?
| |
11 } | 11 } |
12 | 12 |
13 class WillNotOptimizeFieldAccess { | 13 class WillNotOptimizeFieldAccess { |
14 WillNotOptimizeFieldAccess(){} | 14 WillNotOptimizeFieldAccess(){} |
15 int x; | 15 int x; |
16 } | 16 } |
17 | 17 |
18 class WillNotOptimizeFieldAccessSubclass extends WillNotOptimizeFieldAccess { | 18 class WillNotOptimizeFieldAccessSubclass extends WillNotOptimizeFieldAccess { |
19 WillNotOptimizeFieldAccessSubclass() : super() {} | 19 WillNotOptimizeFieldAccessSubclass() : super() {} |
20 | 20 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 | 97 |
98 int _marker_7 = c.XGetter; | 98 int _marker_7 = c.XGetter; |
99 | 99 |
100 int _marker_8 = c.AXGetter; | 100 int _marker_8 = c.AXGetter; |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 main() { | 104 main() { |
105 Main.main(); | 105 Main.main(); |
106 } | 106 } |
OLD | NEW |