Unreviewed, rolling out r222791 and r222873.
[WebKit-https.git] / Source / JavaScriptCore / wasm / WasmWorklist.h
index 748a9ec..6b69352 100644 (file)
@@ -27,6 +27,8 @@
 
 #if ENABLE(WEBASSEMBLY)
 
+#include "VM.h"
+
 #include <queue>
 
 #include <wtf/AutomaticThread.h>
 
 namespace JSC {
 
+class JSPromiseDeferred;
+
 namespace Wasm {
 
-struct Context;
 class Plan;
 
 class Worklist {
@@ -47,10 +50,13 @@ public:
     ~Worklist();
 
     JS_EXPORT_PRIVATE void enqueue(Ref<Plan>);
-    void stopAllPlansForContext(Context&);
+    void stopAllPlansForVM(VM&);
 
     JS_EXPORT_PRIVATE void completePlanSynchronously(Plan&);
 
+    void activatePlan(JSPromiseDeferred*, Plan*);
+    void deactivePlan(JSPromiseDeferred*, Plan*);
+
     enum class Priority {
         Shutdown,
         Synchronous,