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

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

Issue 9479013: Remove backends. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More clean up Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
deleted file mode 100644
index a336a743a54d417c2e3b7688472b0cfdf0f4362c..0000000000000000000000000000000000000000
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
+++ /dev/null
@@ -1,109 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class A {
- final int x;
-
- const A() : this.x = 1;
-
- static final A a = const A();
-}
-
-class WillNotOptimizeFieldAccess {
- WillNotOptimizeFieldAccess(){}
- int x;
-}
-
-class WillNotOptimizeFieldAccessSubclass extends WillNotOptimizeFieldAccess {
- WillNotOptimizeFieldAccessSubclass() : super() {}
-
- int get x() {
- return this.x;
- }
-
- void set x(v) {
- }
-}
-
-class B extends A {
- B() : super() { }
-
- // can be inlined.
- int get x_Getter_WithoutSideEffect() {
- return x;
- }
-
- // cannot be inlined - getter has side effect.
- int get x_Getter_WithSideEffect() {
- return x + 1;
- }
-
- // cannot be inlined - underlying value is not a field.
- int get x_Getter_WithSomeExpression() {
- return foo() * 2;
- }
-
- static foo() { return 123; }
-
- // cannot be inlined - underlying field is static.
- A get A_Getter() {
- return a;
- }
-
- // cannot be inlined - cycle.
- int get X_Getter() {
- return this.X_Getter;
- }
-}
-
-class C {
- C() { }
-
- int x;
- A a;
-
- int get XGetter() {
- return this.x;
- }
-
- int get AXGetter() {
- return a.x;
- }
-}
-
-class Main {
- static void main() {
-
- A _marker_0 = new A();
-
- _marker_0.x = 1;
-
- int x = _marker_0.x;
-
- WillNotOptimizeFieldAccessSubclass _marker_1 = new WillNotOptimizeFieldAccessSubclass();
- _marker_1.x = 1;
- int y = _marker_1.x;
-
- B b = new B();
- int _marker_2 = b.x_Getter_WithoutSideEffect;
-
- int _marker_3 = b.x_Getter_WithSideEffect;
-
- int _marker_4 = b.x_Getter_WithSomeExpression;
-
- A _marker_5 = b.A_Getter;
-
- int _marker_6 = b.X_Getter;
-
- C c = new C();
-
- int _marker_7 = c.XGetter;
-
- int _marker_8 = c.AXGetter;
- }
-}
-
-main() {
- Main.main();
-}

Powered by Google App Engine
This is Rietveld 408576698