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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_engine.dart

Issue 3009633002: Add tests for list and async marker (Closed)
Patch Set: Created 3 years, 4 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/inferrer/inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
index 3fa9269d29c5d3d0968a3a04e8646087cf00314b..be53f53742eba2d64b5931cc370eafed05fbb28a 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
@@ -493,7 +493,7 @@ abstract class InferrerEngineImpl<T> extends InferrerEngine<T> {
if (debug.VERBOSE) {
print("traced closure $element as ${true} (bail)");
}
- forEachParameter(element, (Local parameter) {
+ types.strategy.forEachParameter(element, (Local parameter) {
types
.getInferredTypeOfParameter(parameter)
.giveUp(this, clearAssignments: false);
@@ -505,7 +505,7 @@ abstract class InferrerEngineImpl<T> extends InferrerEngine<T> {
elements
.where((e) => !bailedOutOn.contains(e))
.forEach((FunctionEntity element) {
- forEachParameter(element, (Local parameter) {
+ types.strategy.forEachParameter(element, (Local parameter) {
ParameterTypeInformation info =
types.getInferredTypeOfParameter(parameter);
info.maybeResume();
@@ -649,9 +649,6 @@ abstract class InferrerEngineImpl<T> extends InferrerEngine<T> {
/// Returns the body node for [member].
T computeMemberBody(MemberEntity member);
- /// Calls [f] for each parameter of [method].
- void forEachParameter(FunctionEntity method, void f(Local parameter));
-
/// Returns the `call` method on [cls] or the `noSuchMethod` if [cls] doesn't
/// implement `call`.
FunctionEntity lookupCallMethod(ClassEntity cls);
@@ -817,7 +814,7 @@ abstract class InferrerEngineImpl<T> extends InferrerEngine<T> {
// can benefit from further refinement of the selector.
types.allocatedClosures.add(caller);
}
- forEachParameter(callee, (Local parameter) {
+ types.strategy.forEachParameter(callee, (Local parameter) {
ParameterTypeInformation info =
types.getInferredTypeOfParameter(parameter);
info.tagAsTearOffClosureParameter(this);
@@ -828,7 +825,7 @@ abstract class InferrerEngineImpl<T> extends InferrerEngine<T> {
FunctionEntity method = callee;
ParameterStructure parameterStructure = method.parameterStructure;
int parameterIndex = 0;
- forEachParameter(callee, (Local parameter) {
+ types.strategy.forEachParameter(callee, (Local parameter) {
TypeInformation type;
if (parameterIndex < parameterStructure.requiredParameters) {
type = arguments.positional[parameterIndex];
« no previous file with comments | « pkg/compiler/lib/src/inferrer/closure_tracer.dart ('k') | pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698