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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 11413184: Create specialized versions of getInterceptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/resolution/members.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 15381)
+++ sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy)
@@ -1808,6 +1808,10 @@
// unqualified.
useElement(node, target);
registerSend(selector, target);
+ if (node.isPropertyAccess) {
+ // It might be the closurization of a method.
+ world.registerInstantiatedClass(compiler.functionClass);
+ }
return node.isPropertyAccess ? target : null;
}
@@ -1926,6 +1930,7 @@
}
visitLiteralBool(LiteralBool node) {
+ world.registerInstantiatedClass(compiler.boolClass);
}
visitLiteralString(LiteralString node) {
@@ -1933,6 +1938,7 @@
}
visitLiteralNull(LiteralNull node) {
+ world.registerInstantiatedClass(compiler.nullClass);
}
visitStringJuxtaposition(StringJuxtaposition node) {
@@ -2779,7 +2785,11 @@
return visit(node.selector);
}
- SourceString visitIdentifier(Identifier node) => node.source;
+ SourceString visitIdentifier(Identifier node) {
+ // The variable is initialized to null.
+ resolver.world.registerInstantiatedClass(compiler.nullClass);
+ return node.source;
+ }
visitNodeList(NodeList node) {
for (Link<Node> link = node.nodes; !link.isEmpty; link = link.tail) {

Powered by Google App Engine
This is Rietveld 408576698