| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 9ed494378a1177bcd4cf369a6ddd27276665c27c..861a34a2ce4522360310a6023daf65b4ad5797b3 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -969,13 +969,6 @@ bool Compiler::EnsureDeoptimizationSupport(CompilationInfo* info) {
|
| MaybeHandle<Code> CompileForDebugging(CompilationInfo* info) {
|
| info->MarkAsDebug();
|
| VMState<COMPILER> state(info->isolate());
|
| - if (info->shared_info()->is_compiled()) {
|
| - if (info->shared_info()->code()->is_compiled_optimizable()) {
|
| - info->EnableDeoptimizationSupport();
|
| - } else {
|
| - info->MarkNonOptimizable();
|
| - }
|
| - }
|
| MaybeHandle<Code> maybe_new_code = GetUnoptimizedCodeCommon(info);
|
| Handle<Code> new_code;
|
| if (!maybe_new_code.ToHandle(&new_code)) {
|
|
|