mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:56:57 +00:00
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:
parent
226ffe6e88
commit
a1f5474f80
|
@ -4280,11 +4280,6 @@ class KernelSsaGraphBuilder extends ir.Visitor
|
||||||
ir.Node currentNode,
|
ir.Node currentNode,
|
||||||
SourceInformation sourceInformation,
|
SourceInformation sourceInformation,
|
||||||
{InterfaceType instanceType}) {
|
{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) {
|
if (function.isExternal) {
|
||||||
// Don't inline external methods; these should just fail at runtime.
|
// Don't inline external methods; these should just fail at runtime.
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue