Unreviewed, rolling out r154804.
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGPlan.h
index 7a71823..7d56d3e 100644 (file)
 #include "CompilationResult.h"
 #include "DFGDesiredIdentifiers.h"
 #include "DFGDesiredStructureChains.h"
+#include "DFGDesiredTransitions.h"
 #include "DFGDesiredWatchpoints.h"
+#include "DFGDesiredWeakReferences.h"
+#include "DFGDesiredWriteBarriers.h"
 #include "DFGFinalizer.h"
 #include "Operands.h"
 #include "ProfilerCompilation.h"
@@ -75,12 +78,20 @@ struct Plan : public ThreadSafeRefCounted<Plan> {
     DesiredWatchpoints watchpoints;
     DesiredIdentifiers identifiers;
     DesiredStructureChains chains;
+    DesiredWeakReferences weakReferences;
+    DesiredWriteBarriers writeBarriers;
+    DesiredTransitions transitions;
+
+    double beforeFTL;
     
     bool isCompiled;
 
 private:
+    enum CompilationPath { FailPath, DFGPath, FTLPath };
+    CompilationPath compileInThreadImpl(LongLivedState&);
+    
     bool isStillValid();
-    void reallyAdd();
+    void reallyAdd(CommonData*);
 };
 
 #else // ENABLE(DFG_JIT)