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

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 1211223002: Mark static function getters as used in codegen. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: add test Created 5 years, 6 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/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index c588a000114a2f43a0456e72bc2e398a06605685..2524fdfcaf0e785fb0e1eff368976aecc6e7a96a 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -2136,9 +2136,10 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
Element element = node.element;
assert(element.isFunction || element.isField);
if (element.isFunction) {
- push(backend.emitter.isolateStaticClosureAccess(node.element));
+ push(backend.emitter.isolateStaticClosureAccess(element));
+ registry.registerGetOfStaticFunction(element);
} else {
- push(backend.emitter.staticFieldAccess(node.element));
+ push(backend.emitter.staticFieldAccess(element));
}
registry.registerStaticUse(element);
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js/top_level_closure_tree_shake_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698