Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index 284919d5f228e2a92b531eb579b905389bce2355..743d3336881a760894a6fabfe0a0855d86508b93 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -1070,10 +1070,7 @@ static Handle<Code> GetCodeFromOptimizedCodeMap(Handle<JSFunction> function, |
| } |
| FixedArray* literals = shared->GetLiteralsFromOptimizedCodeMap(index); |
| if (literals != NULL) function->set_literals(literals); |
| - Handle<Code> code(shared->GetCodeFromOptimizedCodeMap(index)); |
| - if (!code->marked_for_deoptimization()) return code; |
| - shared->EvictFromOptimizedCodeMap(function->context()->native_context(), |
| - "code was already marked for deopt"); |
| + return Handle<Code>(shared->GetCodeFromOptimizedCodeMap(index)); |
|
ulan
2014/03/01 13:59:43
Revert change from r19603
|
| } |
| } |
| return Handle<Code>::null(); |