Revision: 11108
Author:   [email protected]
Date:     Thu Mar 22 04:05:33 2012
Log: 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
http://code.google.com/p/v8/source/detail?r=11108

Modified:
 /branches/bleeding_edge/src/runtime-profiler.cc

=======================================
--- /branches/bleeding_edge/src/runtime-profiler.cc     Tue Mar 20 08:27:33 2012
+++ /branches/bleeding_edge/src/runtime-profiler.cc     Thu Mar 22 04:05:33 2012
@@ -290,7 +290,12 @@
// 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();

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to