Index: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
index 5ae62cbaaffb935e163fa76b6c6740c41f539220..9f30b7b9221930180014f981ec39aaf4f45fa49b 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
@@ -1063,6 +1063,12 @@ class SsaBuilder extends ResolvedVisitor implements Visitor { |
Selector selector, |
Link<Node> arguments, |
Node currentNode) { |
+ // We cannot inline a method from a deferred library into a method |
+ // which isn't deferred. |
+ // TODO(ahe): But we shold still inline into the same |
sra1
2013/02/12 01:44:47
shold -> should
ahe
2013/02/18 20:19:01
Done.
|
+ // connected-component of the deferred library. |
+ if (compiler.deferredLoadTask.isDeferred(element)) return false; |
+ |
if (compiler.disableInlining) return false; |
// Ensure that [element] is an implementation element. |
element = element.implementation; |