From f7073d467cfa2a92ae3130dc233f9d13d9c4b871 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Thu, 22 Mar 2012 11:05:33 +0000 Subject: [PATCH] Soften --type-info-threshold by eventually optimizing all functions (but waiting very long if they don't have enough type feedback). Review URL: https://chromiumcodereview.appspot.com/9834005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11108 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime-profiler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc index de9bf40..ed457c6 100644 --- a/src/runtime-profiler.cc +++ b/src/runtime-profiler.cc @@ -290,7 +290,12 @@ void RuntimeProfiler::OptimizeNow() { // If this particular function hasn't had any ICs patched for enough // ticks, optimize it now. Optimize(function, "hot and stable"); + } else if (ticks >= 100) { + // If this function does not have enough type info, but has + // seen a huge number of ticks, optimize it as it is. + Optimize(function, "not much type info but very hot"); } else { + function->shared()->set_profiler_ticks(ticks + 1); if (FLAG_trace_opt_verbose) { PrintF("[not yet optimizing "); function->PrintName(); -- 2.7.4