Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index ebd608b94428efb10863d67eb8bbbbc299fab355..51d561048431dfe6fdd7d10dfda85b16bab1139f 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -37,6 +37,7 @@ class Compiler : public AllStatic { |
public: |
enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |
enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; |
+ enum CompilationTier { INTERPRETED, BASELINE, OPTIMIZED }; |
// =========================================================================== |
// The following family of methods ensures a given function is compiled. The |
@@ -65,6 +66,12 @@ class Compiler : public AllStatic { |
static bool Analyze(ParseInfo* info); |
// Adds deoptimization support, requires ParseAndAnalyze. |
static bool EnsureDeoptimizationSupport(CompilationInfo* info); |
+ // Ensures that bytecode is generated, calls ParseAndAnalyze internally. |
+ static bool EnsureBytecode(CompilationInfo* info); |
+ |
+ // The next compilation tier which the function should be compiled to for |
+ // optimization. This is used as a hint by the runtime profiler. |
+ static CompilationTier NextCompilationTier(JSFunction* function); |
// =========================================================================== |
// The following family of methods instantiates new functions for scripts or |