Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 731d9484d2fa6fe76f6a663e42d4732b4b2ed228..9374e516b058ff928c87367d5b388c0553db2625 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -7966,7 +7966,7 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) { |
if (target_shared->force_inline()) { |
return 0; |
} |
- if (target->shared()->IsBuiltin()) { |
+ if (!target->shared()->IsUserJavaScript()) { |
return kNotInlinable; |
} |