Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 0f3ebe0e6726666acba53cb8745366e992aed288..495ba4f6c4d0a6ba4af585182011a8aa642002e7 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -394,7 +394,6 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
} |
if (info()->shared_info()->asm_function()) { |
- if (info()->osr_frame()) info()->MarkAsFrameSpecializing(); |
info()->MarkAsContextSpecializing(); |
} else if (FLAG_turbo_type_feedback) { |
info()->MarkAsTypeFeedbackEnabled(); |
@@ -713,9 +712,7 @@ static void InsertCodeIntoOptimizedCodeMap(CompilationInfo* info) { |
if (code->kind() != Code::OPTIMIZED_FUNCTION) return; // Nothing to do. |
// Context specialization folds-in the context, so no sharing can occur. |
- if (info->is_context_specializing()) return; |
- // Frame specialization implies context specialization. |
- DCHECK(!info->is_frame_specializing()); |
+ if (code->is_turbofanned() && info->is_context_specializing()) return; |
// Do not cache bound functions. |
Handle<JSFunction> function = info->closure(); |
@@ -1472,8 +1469,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo( |
MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function, |
Handle<Code> current_code, |
ConcurrencyMode mode, |
- BailoutId osr_ast_id, |
- JavaScriptFrame* osr_frame) { |
+ BailoutId osr_ast_id) { |
Handle<Code> cached_code; |
if (GetCodeFromOptimizedCodeMap( |
function, osr_ast_id).ToHandle(&cached_code)) { |
@@ -1531,7 +1527,6 @@ MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function, |
return isolate->builtins()->InOptimizationQueue(); |
} |
} else { |
- info->set_osr_frame(osr_frame); |
if (GetOptimizedCodeNow(info.get())) return info->code(); |
} |