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

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

Issue 2615223003: Use MemberElement instead of Element in function sets and selectors. (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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 void _registerCallForLaterAnalysis(CallSiteTypeInformation info) { 44 void _registerCallForLaterAnalysis(CallSiteTypeInformation info) {
45 _callsToAnalyze.add(info); 45 _callsToAnalyze.add(info);
46 } 46 }
47 47
48 void _analyzeCall(CallSiteTypeInformation info) { 48 void _analyzeCall(CallSiteTypeInformation info) {
49 Selector selector = info.selector; 49 Selector selector = info.selector;
50 TypeMask mask = info.mask; 50 TypeMask mask = info.mask;
51 tracedElements.forEach((FunctionElement functionElement) { 51 tracedElements.forEach((FunctionElement functionElement) {
52 if (!selector.signatureApplies(functionElement)) return; 52 if (!selector.callStructure.signatureApplies(functionElement.functionSigna ture)) {
Siggi Cherem (dart-lang) 2017/01/06 20:49:43 dartfmt
Johnni Winther 2017/01/09 09:55:11 Done.
53 return;
54 }
53 inferrer.updateParameterAssignments( 55 inferrer.updateParameterAssignments(
54 info, functionElement, info.arguments, selector, mask, 56 info, functionElement, info.arguments, selector, mask,
55 remove: false, addToQueue: false); 57 remove: false, addToQueue: false);
56 }); 58 });
57 } 59 }
58 60
59 @override 61 @override
60 visitClosureCallSiteTypeInformation(ClosureCallSiteTypeInformation info) { 62 visitClosureCallSiteTypeInformation(ClosureCallSiteTypeInformation info) {
61 super.visitClosureCallSiteTypeInformation(info); 63 super.visitClosureCallSiteTypeInformation(info);
62 if (info.closure == currentUser) { 64 if (info.closure == currentUser) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 @override 128 @override
127 visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) { 129 visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) {
128 super.visitStaticCallSiteTypeInformation(info); 130 super.visitStaticCallSiteTypeInformation(info);
129 if (info.calledElement == tracedElements.first && 131 if (info.calledElement == tracedElements.first &&
130 info.selector != null && 132 info.selector != null &&
131 info.selector.isGetter) { 133 info.selector.isGetter) {
132 addNewEscapeInformation(info); 134 addNewEscapeInformation(info);
133 } 135 }
134 } 136 }
135 } 137 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698