Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: src/compiler.h

Issue 2156753002: [Intepreter] Always use BytecodeGraphBuilder when --turbo-from-bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix regress-446389 and remove DCHECK from ast-graph-builder. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/runtime-profiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index e2f71479407bccbd139518236500017f7ae0f121..f1742ad571736105136df4b752dbbf24302c9bab 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.
Michael Starzinger 2016/07/19 16:00:07 nit: We could add "..., calls ParseAndAnalyze inte
rmcilroy 2016/07/20 21:48:40 Done.
+ static bool EnsureBytecode(CompilationInfo* info);
+
+ // The next compilation tier which the function should be compiled to for
+ // optimization.
Michael Starzinger 2016/07/19 16:00:07 nit: We could add "This is used as a hint by the p
rmcilroy 2016/07/20 21:48:40 Done.
+ static CompilationTier NextCompilationTier(JSFunction* function);
// ===========================================================================
// The following family of methods instantiates new functions for scripts or
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/runtime-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698