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

Side by Side Diff: compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698