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

Side by Side Diff: tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart

Issue 1227643003: dart2js: Move most of the code_emitter_task code into the program-builder. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Upload Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test of the graph segmentation algorithm used by deferred loading 5 // Test of the graph segmentation algorithm used by deferred loading
6 // to determine which elements can be deferred and which libraries 6 // to determine which elements can be deferred and which libraries
7 // much be included in the initial download (loaded eagerly). 7 // much be included in the initial download (loaded eagerly).
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import "package:async_helper/async_helper.dart"; 10 import "package:async_helper/async_helper.dart";
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 var inputElement = classes.where((e) => e.name == 'InputElement').single; 54 var inputElement = classes.where((e) => e.name == 'InputElement').single;
55 var lib1 = lookupLibrary("memory:lib1.dart"); 55 var lib1 = lookupLibrary("memory:lib1.dart");
56 var foo1 = lib1.find("foo1"); 56 var foo1 = lib1.find("foo1");
57 var lib2 = lookupLibrary("memory:lib2.dart"); 57 var lib2 = lookupLibrary("memory:lib2.dart");
58 var foo2 = lib2.find("foo2"); 58 var foo2 = lib2.find("foo2");
59 var lib3 = lookupLibrary("memory:lib3.dart"); 59 var lib3 = lookupLibrary("memory:lib3.dart");
60 var foo3 = lib3.find("foo3"); 60 var foo3 = lib3.find("foo3");
61 var lib4 = lookupLibrary("memory:lib4.dart"); 61 var lib4 = lookupLibrary("memory:lib4.dart");
62 var bar1 = lib4.find("bar1"); 62 var bar1 = lib4.find("bar1");
63 var bar2 = lib4.find("bar2"); 63 var bar2 = lib4.find("bar2");
64 var outputClassLists = backend.emitter.outputClassLists;
65 64
66 OutputUnit ou_lib1 = outputUnitForElement(foo1); 65 OutputUnit ou_lib1 = outputUnitForElement(foo1);
67 OutputUnit ou_lib2 = outputUnitForElement(foo2); 66 OutputUnit ou_lib2 = outputUnitForElement(foo2);
68 OutputUnit ou_lib1_lib2 = outputUnitForElement(foo3); 67 OutputUnit ou_lib1_lib2 = outputUnitForElement(foo3);
69 OutputUnit ou_lib4_1 = outputUnitForElement(bar1); 68 OutputUnit ou_lib4_1 = outputUnitForElement(bar1);
70 OutputUnit ou_lib4_2 = outputUnitForElement(bar2); 69 OutputUnit ou_lib4_2 = outputUnitForElement(bar2);
71 70
72 Expect.equals(mainOutputUnit, outputUnitForElement(main)); 71 Expect.equals(mainOutputUnit, outputUnitForElement(main));
73 Expect.notEquals(mainOutputUnit, outputUnitForElement(foo1)); 72 Expect.notEquals(mainOutputUnit, outputUnitForElement(foo1));
74 Expect.notEquals(ou_lib1, ou_lib1_lib2); 73 Expect.notEquals(ou_lib1, ou_lib1_lib2);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 162
164 bar1() { 163 bar1() {
165 return "hello"; 164 return "hello";
166 } 165 }
167 166
168 bar2() { 167 bar2() {
169 return 2; 168 return 2;
170 } 169 }
171 """, 170 """,
172 }; 171 };
OLDNEW
« no previous file with comments | « pkg/dart2js_incremental/lib/caching_compiler.dart ('k') | tests/compiler/dart2js/deferred_not_in_main_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698