Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 47eaeea3bcbe9231ae1cee1ae97a9085dc5034d8..38252871eabfd112b1f4ce8702cb69d34382beef 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -168,6 +168,9 @@ class CompilationInfo BASE_EMBEDDED { |
return V8::UseCrankshaft() && !closure_.is_null(); |
} |
+ // Determines whether or not to insert a self-optimization header. |
+ bool ShouldSelfOptimize(); |
+ |
// Disable all optimization attempts of this info for the rest of the |
// current compilation pipeline. |
void AbortOptimization(); |
@@ -280,6 +283,9 @@ class Compiler : public AllStatic { |
static const int kMaxInliningLevels = 3; |
+ // Call count before primitive functions trigger their own optimization. |
+ static const int kCallsUntilPrimitiveOpt = 200; |
+ |
// All routines return a SharedFunctionInfo. |
// If an error occurs an exception is raised and the return handle |
// contains NULL. |