Cache bytecode to disk
[WebKit-https.git] / Source / JavaScriptCore / bytecode / InstructionStream.h
index 44b4be7..b40480a 100644 (file)
@@ -39,6 +39,7 @@ class InstructionStream {
     using InstructionBuffer = Vector<uint8_t, 0, UnsafeVectorOverflow>;
 
     friend class InstructionStreamWriter;
+    friend class CachedInstructionStream;
 public:
     size_t sizeInBytes() const;
 
@@ -167,6 +168,8 @@ public:
         return m_instructions.data();
     }
 
+    bool contains(Instruction *) const;
+
 protected:
     explicit InstructionStream(InstructionBuffer&&);