Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 92d7728b599708761bf7e58f209f916f46680c4b..978a39378ab2a6142a980c9c84b9fc2738f897bc 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1056,9 +1056,8 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) { |
if (FLAG_always_opt) { |
Handle<Code> opt_code; |
- if (Compiler::GetOptimizedCode( |
- function, result, |
- Compiler::NOT_CONCURRENT).ToHandle(&opt_code)) { |
+ if (Compiler::GetOptimizedCode(function, Compiler::NOT_CONCURRENT) |
+ .ToHandle(&opt_code)) { |
result = opt_code; |
} |
} |
@@ -1692,7 +1691,6 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo( |
MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function, |
- Handle<Code> current_code, |
ConcurrencyMode mode, |
BailoutId osr_ast_id, |
JavaScriptFrame* osr_frame) { |
@@ -1716,6 +1714,7 @@ MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function, |
DCHECK(AllowCompilation::IsAllowed(isolate)); |
+ Handle<Code> current_code(shared->code()); |
if (!shared->is_compiled() || |
shared->scope_info() == ScopeInfo::Empty(isolate)) { |
// The function was never compiled. Compile it unoptimized first. |