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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/testClosureOpt.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/testClosureOpt.dart
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testClosureOpt.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testClosureOpt.dart
deleted file mode 100644
index c94653582fc56b02745b136e69b28c5b50bcc08a..0000000000000000000000000000000000000000
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testClosureOpt.dart
+++ /dev/null
@@ -1,66 +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 {
- A(this.x);
-
- int x;
-
- testMethod(int arg1) {
- int s1 = 1;
- {
- int s2 = 2;
- {
- int s3 = 3;
- {
- int s4 = 4;
-
- var _fn_0 = int _() => 0; // hoisted
-
- var _fn_1 = int _(p1) => p1; // hoisted
-
- var _fn_2 = int _(p1, p2) => p1 + p2; // hoisted
-
- var _fn_3 = int _(p1, p2, p3) => p1 + p2 + p3; // hoisted
-
- var _fn_4 = int _(p1, p2, p3, p4) => p1 + p2 + p3 + p4; // hoisted
-
-
- var _fn_5 = int _() => s1; // bind 1-0
-
- var _fn_6 = int _() => s1 + s2; // bind 2-0
-
- var _fn_7 = int _() => s1 + s2 + s3; // bind 3-0
-
- var _fn_8 = int _() => s1 + s2 + s3 + s4; // bind
-
-
- var _fn_9 = int _(p1) => p1 + s1; // bind 1-1
-
- var _fn_A = int _(p1, p2) => p1 + p2 + s1 + s2; // bind 2-2
-
- var _fn_B = int _(p1, p2, p3) => p1 + p2 + p3 + s1 + s2 + s3; // bind 3-3
-
- // bind
- var _fn_C = int _(p1, p2, p3, p4) => p1 + p2 + p3 + p4 + s1 + s2 + s3 + s4;
-
-
- // cannot inline - named args
- var _fn_D = int _(p1, [n1 = 20]) => p1 + s1 + n1;
-
- var _fn_E = int _(p1) => p1 + s1 + this.x;
-
- var _fn_F = int _(p1) => p1 + s1 + arg1;
- }
- }
- }
- }
-}
-
-class Main {
- static void main() {
- A a = new A(1);
- a.testMethod(1);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698