Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 1df7df84d03e4dbb0a2ecb6a7c44c51493c3b235..5209a51611915952c8ec44af98bfff76bdc581ce 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -378,7 +378,8 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) { |
CHECK_EQ(code->kind(), Code::OPTIMIZED_FUNCTION); |
Object* next = code->next_code_link(); |
- if (code->marked_for_deoptimization()) { |
+ if (code->marked_for_deoptimization() && |
+ (!code->is_turbofanned() || FLAG_turbo_deoptimization)) { |
// Put the code into the list for later patching. |
codes.Add(code, &zone); |