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

Side by Side Diff: pkg/compiler/lib/src/inferrer/closure_tracer.dart

Issue 2630743002: Remove use of FunctionSignature et al from call_structure.dart (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library compiler.src.inferrer.closure_tracer; 5 library compiler.src.inferrer.closure_tracer;
6 6
7 import '../common/names.dart' show Names; 7 import '../common/names.dart' show Names;
8 import '../elements/elements.dart'; 8 import '../elements/elements.dart';
9 import '../js_backend/backend_helpers.dart'; 9 import '../js_backend/backend_helpers.dart';
10 import '../types/types.dart' show TypeMask; 10 import '../types/types.dart' show TypeMask;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 void _registerCallForLaterAnalysis(CallSiteTypeInformation info) { 48 void _registerCallForLaterAnalysis(CallSiteTypeInformation info) {
49 _callsToAnalyze.add(info); 49 _callsToAnalyze.add(info);
50 } 50 }
51 51
52 void _analyzeCall(CallSiteTypeInformation info) { 52 void _analyzeCall(CallSiteTypeInformation info) {
53 Selector selector = info.selector; 53 Selector selector = info.selector;
54 TypeMask mask = info.mask; 54 TypeMask mask = info.mask;
55 tracedElements.forEach((FunctionElement functionElement) { 55 tracedElements.forEach((FunctionElement functionElement) {
56 if (!selector.callStructure 56 if (!selector.callStructure.signatureApplies(functionElement.type)) {
57 .signatureApplies(functionElement.functionSignature)) {
58 return; 57 return;
59 } 58 }
60 inferrer.updateParameterAssignments( 59 inferrer.updateParameterAssignments(
61 info, functionElement, info.arguments, selector, mask, 60 info, functionElement, info.arguments, selector, mask,
62 remove: false, addToQueue: false); 61 remove: false, addToQueue: false);
63 }); 62 });
64 } 63 }
65 64
66 @override 65 @override
67 visitClosureCallSiteTypeInformation(ClosureCallSiteTypeInformation info) { 66 visitClosureCallSiteTypeInformation(ClosureCallSiteTypeInformation info) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 @override 132 @override
134 visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) { 133 visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) {
135 super.visitStaticCallSiteTypeInformation(info); 134 super.visitStaticCallSiteTypeInformation(info);
136 if (info.calledElement == tracedElements.first && 135 if (info.calledElement == tracedElements.first &&
137 info.selector != null && 136 info.selector != null &&
138 info.selector.isGetter) { 137 info.selector.isGetter) {
139 addNewEscapeInformation(info); 138 addNewEscapeInformation(info);
140 } 139 }
141 } 140 }
142 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698