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

Unified Diff: tests/compiler/dart2js/simple_inferrer_callers_test.dart

Issue 2559373004: Remove Compiler.inferenceWorld (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/simple_inferrer_callers_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_callers_test.dart b/tests/compiler/dart2js/simple_inferrer_callers_test.dart
index 41b94572874fc96b5a51e65ccbcd2db496155ef3..a6ca00e58e3eb1d658c16aa81750c5d4f7791fd6 100644
--- a/tests/compiler/dart2js/simple_inferrer_callers_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_callers_test.dart
@@ -8,6 +8,7 @@
import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
import 'package:compiler/src/inferrer/type_graph_inferrer.dart';
+import 'package:compiler/src/world.dart' show ClosedWorldRefiner;
import 'compiler_helper.dart';
@@ -29,7 +30,8 @@ main() {
// Create our own type inferrer to avoid clearing out the internal
// data structures.
class MyInferrer extends TypeGraphInferrer {
- MyInferrer(compiler, commonMasks) : super(compiler, commonMasks);
+ MyInferrer(compiler, closedWorld, closedWorldRefiner)
+ : super(compiler, closedWorld, closedWorldRefiner);
clear() {}
}
@@ -37,11 +39,12 @@ void main() {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(TEST, uri, analyzeOnly: true);
asyncTest(() => compiler.run(uri).then((_) {
- compiler.closeResolution();
+ ClosedWorldRefiner closedWorldRefiner = compiler.closeResolution();
var inferrer =
- new MyInferrer(compiler, compiler.closedWorld.commonMasks);
+ new MyInferrer(compiler, compiler.closedWorld, closedWorldRefiner);
compiler.globalInference.typesInferrerInternal = inferrer;
- compiler.globalInference.runGlobalTypeInference(compiler.mainFunction);
+ compiler.globalInference.runGlobalTypeInference(
+ compiler.mainFunction, compiler.closedWorld, closedWorldRefiner);
var mainElement = findElement(compiler, 'main');
var classA = findElement(compiler, 'A');
var fieldA = classA.lookupLocalMember('field');
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698