Index: src/runtime/runtime-compiler.cc |
diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc |
index 15a3a14156f138e2c87349bcf2eeaea84db76f43..de974a2df505aee31ec1604508e95b362ed3d13e 100644 |
--- a/src/runtime/runtime-compiler.cc |
+++ b/src/runtime/runtime-compiler.cc |
@@ -52,8 +52,7 @@ Object* CompileOptimized(Isolate* isolate, Handle<JSFunction> function, |
if (check.JsHasOverflowed(1 * KB)) return isolate->StackOverflow(); |
Handle<Code> code; |
- Handle<Code> unoptimized(function->shared()->code()); |
- if (Compiler::GetOptimizedCode(function, unoptimized, mode).ToHandle(&code)) { |
+ if (Compiler::GetOptimizedCode(function, mode).ToHandle(&code)) { |
// Optimization succeeded, return optimized code. |
function->ReplaceCode(*code); |
} else { |
@@ -282,7 +281,7 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) { |
PrintF(" at AST id %d]\n", ast_id.ToInt()); |
} |
MaybeHandle<Code> maybe_result = Compiler::GetOptimizedCode( |
- function, caller_code, mode, ast_id, |
+ function, mode, ast_id, |
(mode == Compiler::NOT_CONCURRENT) ? frame : nullptr); |
if (maybe_result.ToHandle(&result) && |
result.is_identical_to(isolate->builtins()->InOptimizationQueue())) { |