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

Unified Diff: src/runtime.cc

Issue 10103035: Share optimized code for closures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: added x64 and ARM ports Created 8 years, 7 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
Index: src/runtime.cc
===================================================================
--- src/runtime.cc (revision 11527)
+++ src/runtime.cc (working copy)
@@ -8251,8 +8251,12 @@
PrintF("]\n");
}
function->ReplaceCode(function->shared()->code());
+ // Flush optimized code cache for this function.
+ function->shared()->set_optimized_code_map(Smi::FromInt(0));
Michael Starzinger 2012/05/23 11:16:29 It seems we can hoist that out of the condition.
fschneider 2012/06/14 11:08:23 Done.
} else {
Deoptimizer::DeoptimizeFunction(*function);
+ // Flush optimized code cache for this function.
+ function->shared()->set_optimized_code_map(Smi::FromInt(0));
}
return isolate->heap()->undefined_value();
}
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698