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

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

Issue 2685783003: Fix access to returnTypeOf (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index d5c9ea19937d48dc7d4e56e7e26a793582d52b28..974f5616b6b3d1fc00013fa34400c5585e43d9cb 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -2751,12 +2751,18 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
inputs.add(receiver);
inputs.addAll(arguments);
+ TypeMask typeMask;
+ if (interfaceTarget is ir.Procedure) {
+ typeMask = astAdapter.returnTypeOf(interfaceTarget);
+ } else {
+ typeMask = closedWorld.commonMasks.dynamicType;
+ }
HInstruction instruction = new HInvokeSuper(
astAdapter.getMember(interfaceTarget),
astAdapter.getClass(containingClass),
selector,
inputs,
- astAdapter.returnTypeOf(interfaceTarget),
+ typeMask,
null,
isSetter: selector.isSetter || selector.isIndexSet);
instruction.sideEffects =
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698