Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 5b478241237bfe64b25eee1d911a2a0dbe64e77c..5d0b22fd0c7d12433fe7d1e6d2e5ab84e9ff7752 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -892,7 +892,7 @@ |
VMState<COMPILER> state(isolate); |
PostponeInterruptsScope postpone(isolate); |
Zone zone(isolate->allocator()); |
- ParseInfo parse_info(&zone, handle(function->shared())); |
+ ParseInfo parse_info(&zone, function); |
CompilationInfo info(&parse_info, function); |
// Reset profiler ticks, function is no longer considered hot. |
@@ -1013,7 +1013,7 @@ |
} |
Zone zone(isolate->allocator()); |
- ParseInfo parse_info(&zone, handle(function->shared())); |
+ ParseInfo parse_info(&zone, function); |
CompilationInfo info(&parse_info, function); |
Handle<Code> result; |
ASSIGN_RETURN_ON_EXCEPTION(isolate, result, GetUnoptimizedCode(&info), Code); |
@@ -1243,7 +1243,7 @@ |
function->shared()->ReplaceCode(*code); |
} else { |
Zone zone(isolate->allocator()); |
- ParseInfo parse_info(&zone, handle(function->shared())); |
+ ParseInfo parse_info(&zone, function); |
CompilationInfo info(&parse_info, function); |
if (!GetUnoptimizedCode(&info).ToHandle(&code)) { |
return false; |
@@ -1268,7 +1268,7 @@ |
// Start a compilation. |
Zone zone(isolate->allocator()); |
- ParseInfo parse_info(&zone, handle(function->shared())); |
+ ParseInfo parse_info(&zone, function); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
if (IsEvalToplevel(handle(function->shared()))) { |
parse_info.set_eval(); |