Allow inlining of platform library functions

Change-Id: I2803d66f54d2e1052ca8af5fb719bded8f400171
Reviewed-on: https://dart-review.googlesource.com/28563
Reviewed-by: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Johnni Winther 2017-12-13 09:35:59 +00:00
parent 226ffe6e88
commit a1f5474f80

View file

@ -4280,11 +4280,6 @@ class KernelSsaGraphBuilder extends ir.Visitor
ir.Node currentNode,
SourceInformation sourceInformation,
{InterfaceType instanceType}) {
// TODO(johnniwinther,sra): Remove this when inlining is more mature.
if (function.library.canonicalUri.scheme == 'dart') {
// Temporarily disable inlining of platform libraries.
return false;
}
if (function.isExternal) {
// Don't inline external methods; these should just fail at runtime.
return false;