Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5b96d1fd464083359c935410293bc96f6bdc4009..b39c8b590b423a5c62e45de664835c9655f6b37b 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8214,7 +8214,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyCompile) { |
// All done. Return the compiled code. |
ASSERT(function->is_compiled()); |
- return function->code(); |
+ return reinterpret_cast<MaybeObject*>(function->code()->entry()); |
} |
@@ -8249,13 +8249,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyRecompile) { |
if (!AllowOptimization(isolate, function)) { |
function->ReplaceCode(function->shared()->code()); |
- return function->code(); |
+ return reinterpret_cast<MaybeObject*>(function->code()->entry()); |
} |
function->shared()->code()->set_profiler_ticks(0); |
if (JSFunction::CompileOptimized(function, |
BailoutId::None(), |
CLEAR_EXCEPTION)) { |
- return function->code(); |
+ return reinterpret_cast<MaybeObject*>(function->code()->entry()); |
} |
if (FLAG_trace_opt) { |
PrintF("[failed to optimize "); |
@@ -8263,7 +8263,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyRecompile) { |
PrintF(": optimized compilation failed]\n"); |
} |
function->ReplaceCode(function->shared()->code()); |
- return function->code(); |
+ return reinterpret_cast<MaybeObject*>(function->code()->entry()); |
} |
@@ -8288,7 +8288,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) { |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
ASSERT(V8::UseCrankshaft() && FLAG_parallel_recompilation); |
isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
- return function->code(); |
+ return reinterpret_cast<MaybeObject*>(function->code()->entry()); |
} |