Index: src/mips/deoptimizer-mips.cc |
diff --git a/src/mips/deoptimizer-mips.cc b/src/mips/deoptimizer-mips.cc |
index 9d7dbc654857bac8b981ba24138b790660319d82..d66acb00ba4c0802eae36161152588b81fba176f 100644 |
--- a/src/mips/deoptimizer-mips.cc |
+++ b/src/mips/deoptimizer-mips.cc |
@@ -69,13 +69,16 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
} |
} |
- // For each LLazyBailout instruction insert a call to the corresponding |
- // deoptimization entry. |
DeoptimizationInputData* deopt_data = |
DeoptimizationInputData::cast(code->deoptimization_data()); |
+ SharedFunctionInfo* shared = |
+ SharedFunctionInfo::cast(deopt_data->SharedFunctionInfo()); |
+ shared->EvictFromOptimizedCodeMap(code, "deoptimized code"); |
#ifdef DEBUG |
Address prev_call_address = NULL; |
#endif |
+ // For each LLazyBailout instruction insert a call to the corresponding |
+ // deoptimization entry. |
for (int i = 0; i < deopt_data->DeoptCount(); i++) { |
if (deopt_data->Pc(i)->value() == -1) continue; |
Address call_address = code_start_address + deopt_data->Pc(i)->value(); |