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

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

Issue 722163002: Add support for static calls to the cps pipeline code generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 6 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: 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 2eaad68c6cbf6998afc6dbbe0425909ba64ff31f..6c023a50b65a5e6f64be5e690e31ef3e76f4e020 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -1638,10 +1638,9 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
visitInvokeStatic(HInvokeStatic node) {
Element element = node.element;
- ClassElement cls = element.enclosingClass;
List<DartType> instantiatedTypes = node.instantiatedTypes;
- registry.registerStaticUse(element);
+ registry.registerStaticInvocation(element);
if (instantiatedTypes != null && !instantiatedTypes.isEmpty) {
instantiatedTypes.forEach((type) {
@@ -1655,7 +1654,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
visitInvokeSuper(HInvokeSuper node) {
Element superMethod = node.element;
- registry.registerStaticUse(superMethod);
+ registry.registerSuperInvocation(superMethod);
ClassElement superClass = superMethod.enclosingClass;
if (superMethod.kind == ElementKind.FIELD) {
String fieldName = backend.namer.instanceFieldPropertyName(superMethod);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/glue.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698