Index: src/a64/deoptimizer-a64.cc |
diff --git a/src/a64/deoptimizer-a64.cc b/src/a64/deoptimizer-a64.cc |
index 66e501aeeba27bc6144882b0891e724ae1ada455..8ef37e26abbd8a277d2498f5e8b0c9646c764a33 100644 |
--- a/src/a64/deoptimizer-a64.cc |
+++ b/src/a64/deoptimizer-a64.cc |
@@ -57,6 +57,9 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
// deoptimization entry. |
DeoptimizationInputData* deopt_data = |
DeoptimizationInputData::cast(code->deoptimization_data()); |
+ SharedFunctionInfo* shared = |
+ SharedFunctionInfo::cast(deopt_data->SharedFunctionInfo()); |
+ shared->EvictFromOptimizedCodeMap(code, "deoptimized code"); |
Address code_start_address = code->instruction_start(); |
#ifdef DEBUG |
Address prev_call_address = NULL; |