Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 5d1583142c1d5da49a3201c501a14ec947246615..77cb92900c4e2e021e8e7d5488c3e1a38ce232f8 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -288,9 +288,14 @@ REPLACE_UNIMPLEMENTED(JSDebugger) |
static CallDescriptor::DeoptimizationSupport DeoptimizationSupportForNode( |
Node* node) { |
- return OperatorProperties::CanLazilyDeoptimize(node->op()) |
- ? CallDescriptor::kCanDeoptimize |
- : CallDescriptor::kCannotDeoptimize; |
+ int result = CallDescriptor::kNoDeoptimization; |
+ if (OperatorProperties::CanLazilyDeoptimize(node->op())) { |
+ result |= CallDescriptor::kLazyDeoptimization; |
+ } |
+ if (OperatorProperties::HasFrameStateInput(node->op())) { |
+ result |= CallDescriptor::kNeedsFrameState; |
+ } |
+ return static_cast<CallDescriptor::DeoptimizationSupport>(result); |
} |