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

Unified Diff: src/crankshaft/hydrogen.h

Issue 1872483002: [compiler] Make OptimizedCompileJob agnostic from backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Prevent endless recompile. Created 4 years, 8 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 | « src/compiler/pipeline.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.h
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h
index 1475374d83537dc04478215ec1e6c59d1e728651..30700bf41b17baa46065ee85f81b815ec909dbf7 100644
--- a/src/crankshaft/hydrogen.h
+++ b/src/crankshaft/hydrogen.h
@@ -30,6 +30,20 @@ class LAllocator;
class LChunk;
class LiveRange;
+class HCompilationJob final : public OptimizedCompileJob {
+ public:
+ explicit HCompilationJob(CompilationInfo* info)
+ : OptimizedCompileJob(info), graph_(nullptr), chunk_(nullptr) {}
+
+ protected:
+ virtual Status CreateGraphImpl();
+ virtual Status OptimizeGraphImpl();
+ virtual Status GenerateCodeImpl();
+
+ private:
+ HGraph* graph_;
+ LChunk* chunk_;
+};
class HBasicBlock final : public ZoneObject {
public:
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698