]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - jit/JITWriteBarrier.h
JavaScriptCore-1097.3.tar.gz
[apple/javascriptcore.git] / jit / JITWriteBarrier.h
index 10e07100186eeddacf34a3603da6918ec8a42881..81a3653a0c0bb5d3a7fbf1c64d180f713c75606b 100644 (file)
@@ -69,6 +69,7 @@ public:
     }
     
     void clear() { clear(0); }
+    void clearToMaxUnsigned() { clear(reinterpret_cast<void*>(-1)); }
 
 protected:
     JITWriteBarrierBase()
@@ -121,6 +122,10 @@ public:
         validateCell(value);
         JITWriteBarrierBase::set(globalData, location, owner, value);
     }
+    void set(JSGlobalData& globalData, JSCell* owner, T* value)
+    {
+        set(globalData, location(), owner, value);
+    }
     T* get() const
     {
         T* result = static_cast<T*>(JITWriteBarrierBase::get());