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

Unified Diff: pkg/compiler/lib/src/ssa/locals_handler.dart

Issue 2569733002: Even less reliance on Compiler.closedWorld (Closed)
Patch Set: Updated cf. comments. 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/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index d6e6745cb56d88a8e451a607bf3af4b855412611..1d9fdde9982fb4146858f4ac668e813321829338 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -74,6 +74,9 @@ class LocalsHandler {
CommonMasks get commonMasks => closedWorld.commonMasks;
+ GlobalTypeInferenceResults get _globalInferenceResults =>
+ _compiler.globalInference.results;
+
/// Substituted type variables occurring in [type] into the context of
/// [contextClass].
DartType substInContext(DartType type) {
@@ -206,7 +209,7 @@ class LocalsHandler {
HInstruction parameter = builder.addParameter(
parameterElement,
TypeMaskFactory.inferredTypeForElement(
- parameterElement, _compiler));
+ parameterElement, _globalInferenceResults));
builder.parameters[parameterElement] = parameter;
directLocals[parameterElement] = parameter;
});
@@ -640,7 +643,8 @@ class LocalsHandler {
TypeMask getTypeOfCapturedVariable(Element element) {
assert(element.isField);
return cachedTypesOfCapturedVariables.putIfAbsent(element, () {
- return TypeMaskFactory.inferredTypeForElement(element, _compiler);
+ return TypeMaskFactory.inferredTypeForElement(
+ element, _globalInferenceResults);
});
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698