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

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

Issue 2916353002: Support locals in compile_from_dill_test. (Closed)
Patch Set: Created 3 years, 7 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: 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 21dd387674a4b7706a669586084e6a12d4adf994..378e6a5814b37227b94d0a9f06e121fce0919239 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -41,7 +41,7 @@ class LocalsHandler {
/// The class that defines the current type environment or null if no type
/// variables are in scope.
- final ClassElement contextClass;
+ final ClassEntity contextClass;
/// The type of the current instance, if concrete.
///
@@ -97,12 +97,10 @@ class LocalsHandler {
type,
builder.types.asInstanceOf(
builder.types.getThisType(contextClass), typeContext));
- //type = type.substByContext(contextClass.asInstanceOf(typeContext));
}
}
if (instanceType != null) {
type = builder.types.substByContext(type, instanceType);
- //type = type.substByContext(instanceType);
}
return type;
}
@@ -258,7 +256,7 @@ class LocalsHandler {
// If this method is an intercepted method, add the extra
// parameter to it, that is the actual receiver for intercepted
// classes, or the same as [:this:] for non-intercepted classes.
- ClassElement cls = element.enclosingClass;
+ ClassEntity cls = element.enclosingClass;
// When the class extends a native class, the instance is pre-constructed
// and passed to the generative constructor factory function as a parameter.
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698