Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 1d33bfa6126c7ed6ed889440934b0835616f1fde..eec5de3a0c23004efeeec5ad0d206dfc37ea157e 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7931,6 +7931,11 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
return false; |
} |
+ if (target_info.scope()->HasIllegalRedeclaration()) { |
+ TraceInline(target, caller, "target has illegal redeclaration"); |
+ return false; |
+ } |
+ |
if (target_info.scope()->num_heap_slots() > 0) { |
TraceInline(target, caller, "target has context-allocated variables"); |
return false; |