Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 6d03d43652e81a3afd101785800eeb2358e63fde..182b9c33f99ed63632fb646e067153f65807a072 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2655,6 +2655,7 @@ void MarkCompactCollector::ClearAndDeoptimizeDependentCode( |
if (IsMarked(code) && !code->marked_for_deoptimization()) { |
code->set_marked_for_deoptimization(true); |
+ code->InvalidateEmbeddedObjects(); |
have_code_to_deoptimize_ = true; |
} |
entries->clear_at(i); |