Index: pkg/compiler/lib/src/resolution/registry.dart |
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart |
index ed6db6ca2a122896fe82b00638776d3baee6c695..bbad81baf9dbee3199c331c6ad82912192289c90 100644 |
--- a/pkg/compiler/lib/src/resolution/registry.dart |
+++ b/pkg/compiler/lib/src/resolution/registry.dart |
@@ -324,8 +324,11 @@ class ResolutionRegistry extends Registry { |
void registerForeignCall(Node node, Element element, |
CallStructure callStructure, ResolverVisitor visitor) { |
- backend.registerForeignCall(node, element, callStructure, |
+ var nativeData = backend.resolveForeignCall(node, element, callStructure, |
new ForeignResolutionResolver(visitor, this)); |
+ if (nativeData != null) { |
+ mapping.registerNativeData(node, nativeData); |
+ } |
} |
void registerDynamicUse(DynamicUse dynamicUse) { |