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

Unified Diff: tests/compiler/dart2js/serialization/native_data_test.dart

Issue 2936233003: Remove Compiler.mainApp and Compiler.mainFunction (Closed)
Patch Set: Created 3 years, 6 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: tests/compiler/dart2js/serialization/native_data_test.dart
diff --git a/tests/compiler/dart2js/serialization/native_data_test.dart b/tests/compiler/dart2js/serialization/native_data_test.dart
index e6d89ad48b31fff27972704a693aaf576fd8194b..9343e178e3baa9cf5e2ebe47e67eb6e6a69bca7f 100644
--- a/tests/compiler/dart2js/serialization/native_data_test.dart
+++ b/tests/compiler/dart2js/serialization/native_data_test.dart
@@ -36,7 +36,9 @@ Future checkNativeData(Uri uri, {bool verbose: false}) async {
SerializationResult result = await serialize(uri);
Compiler compiler1 = result.compiler;
SerializedData serializedData = result.serializedData;
- ClosedWorld closedWorld1 = compiler1.closeResolution().closedWorld;
+ var elementEnvironment1 = compiler1.frontendStrategy.elementEnvironment;
+ ClosedWorld closedWorld1 =
+ compiler1.closeResolution(elementEnvironment1.mainFunction).closedWorld;
print('------------------------------------------------------------------');
print('analyze deserialized: $uri');
@@ -46,7 +48,9 @@ Future checkNativeData(Uri uri, {bool verbose: false}) async {
resolutionInputs: serializedData.toUris(),
options: [Flags.analyzeAll]);
await compiler2.run(uri);
- ClosedWorld closedWorld2 = compiler2.closeResolution().closedWorld;
+ var elementEnvironment2 = compiler2.frontendStrategy.elementEnvironment;
+ ClosedWorld closedWorld2 =
+ compiler2.closeResolution(elementEnvironment2.mainFunction).closedWorld;
JavaScriptBackend backend1 = compiler1.backend;
JavaScriptBackend backend2 = compiler2.backend;
« no previous file with comments | « tests/compiler/dart2js/serialization/model_test_helper.dart ('k') | tests/compiler/dart2js/simple_inferrer_callers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698