Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1191)

Unified Diff: src/runtime.cc

Issue 24792002: Thumb2 Backend: Enable Crankshaft to compile all Optimized Functions in Thumb2 mode Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.js ('k') | test/mjsunit/regress/regress-1122.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « src/messages.js ('k') | test/mjsunit/regress/regress-1122.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698