Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 0697ba73dcc8d29858e760432440ddb350d80b8b..bd7412907b68ce61f6974b19c4e1d31b64d3848d 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8564,6 +8564,10 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
TraceInline(target, caller, "parse failure"); |
return false; |
} |
+ if (target_shared->dont_crankshaft()) { |
+ TraceInline(target, caller, "ParseAndAnalyze found incompatibility"); |
+ return false; |
+ } |
if (target_info.scope()->num_heap_slots() > 0) { |
TraceInline(target, caller, "target has context-allocated variables"); |