X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..HEAD:/jit/JITStubRoutine.h?ds=sidebyside diff --git a/jit/JITStubRoutine.h b/jit/JITStubRoutine.h index 163705d..b2113a6 100644 --- a/jit/JITStubRoutine.h +++ b/jit/JITStubRoutine.h @@ -60,10 +60,10 @@ public: // Use this if you want to pass a CodePtr to someone who insists on taking // a RefPtr. - static PassRefPtr createSelfManagedRoutine( + static Ref createSelfManagedRoutine( MacroAssemblerCodePtr rawCodePointer) { - return adoptRef(new JITStubRoutine(MacroAssemblerCodeRef::createSelfManagedCodeRef(rawCodePointer))); + return adoptRef(*new JITStubRoutine(MacroAssemblerCodeRef::createSelfManagedCodeRef(rawCodePointer))); } virtual ~JITStubRoutine(); @@ -141,6 +141,9 @@ public: return true; } + // Return true if you are still valid after. Return false if you are now invalid. If you return + // false, you will usually not do any clearing because the idea is that you will simply be + // destroyed. virtual bool visitWeak(RepatchBuffer&); protected: