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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/universe.dart

Issue 11958009: Do not track parameter types of closures, since closure calls can be generated during the emitter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/universe/universe.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/universe/universe.dart (revision 17130)
+++ sdk/lib/_internal/compiler/implementation/universe/universe.dart (working copy)
@@ -215,6 +215,10 @@
bool isGetter() => identical(kind, SelectorKind.GETTER);
bool isSetter() => identical(kind, SelectorKind.SETTER);
bool isCall() => identical(kind, SelectorKind.CALL);
+ bool isClosureCall() {
+ SourceString callName = Compiler.CALL_OPERATOR_NAME;
+ return isCall() && name == callName;
+ }
bool isIndex() => identical(kind, SelectorKind.INDEX) && argumentCount == 1;
bool isIndexSet() => identical(kind, SelectorKind.INDEX) && argumentCount == 2;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | tests/language/closure_parameter_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698