Chromium Code Reviews| Index: src/arm/deoptimizer-arm.cc |
| diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
| index 41379d53e92f0045d609e4ec8b00227870dd32e9..e453836cde7e7c5068e111f186d31a80e9e585f3 100644 |
| --- a/src/arm/deoptimizer-arm.cc |
| +++ b/src/arm/deoptimizer-arm.cc |
| @@ -53,14 +53,14 @@ void Deoptimizer::DeoptimizeFunctionWithPreparedFunctionList( |
| ASSERT(function->IsOptimized()); |
| ASSERT(function->FunctionsInFunctionListShareSameCode()); |
| - // The optimized code is going to be patched, so we cannot use it |
| - // any more. Play safe and reset the whole cache. |
| - function->shared()->ClearOptimizedCodeMap("deoptimized function"); |
| - |
| // Get the optimized code. |
| Code* code = function->code(); |
| Address code_start_address = code->instruction_start(); |
| + // The optimized code is going to be patched, so we cannot use it |
| + // any more. Play safe and reset the whole cache. |
|
Michael Starzinger
2013/05/13 14:26:46
The second sentence of the comment is out-dated, l
danno
2013/05/13 15:23:10
Done.
|
| + function->shared()->EvictFromOptimizedCodeMap(code, "deoptimized function"); |
| + |
| // Invalidate the relocation information, as it will become invalid by the |
| // code patching below, and is not needed any more. |
| code->InvalidateRelocation(); |