Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index c9fcc8c1001dddb36e28a2b210d150d4b579aaef..697f97dda5e99dc37828c31794050f3a5a6dcb83 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8426,7 +8426,8 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
ZoneList<Declaration*>* decls = target_info.scope()->declarations(); |
int decl_count = decls->length(); |
for (int i = 0; i < decl_count; ++i) { |
- if (!decls->at(i)->IsInlineable()) { |
+ if (decls->at(i)->IsFunctionDeclaration() || |
+ !decls->at(i)->proxy()->var()->IsStackAllocated()) { |
TraceInline(target, caller, "target has non-trivial declaration"); |
return false; |
} |