Revision: 10858 Author: [email protected] Date: Tue Feb 28 04:59:00 2012 Log: Add code kind check before preparing for OSR.
BUG=v8:1900, 115073 Review URL: https://chromiumcodereview.appspot.com/9495005 http://code.google.com/p/v8/source/detail?r=10858 Modified: /branches/bleeding_edge/src/runtime-profiler.cc ======================================= --- /branches/bleeding_edge/src/runtime-profiler.cc Mon Feb 20 04:57:23 2012 +++ /branches/bleeding_edge/src/runtime-profiler.cc Tue Feb 28 04:59:00 2012 @@ -257,7 +257,8 @@ } } - if (function->IsMarkedForLazyRecompilation()) { + if (function->IsMarkedForLazyRecompilation() && + function->shared()->code()->kind() == Code::FUNCTION) { Code* unoptimized = function->shared()->code(); int nesting = unoptimized->allow_osr_at_loop_nesting_level(); if (nesting == 0) AttemptOnStackReplacement(function); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
