]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - dfg/DFGToFTLDeferredCompilationCallback.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / dfg / DFGToFTLDeferredCompilationCallback.cpp
index d0162b79e5f461a588a9b2cfd4f0d026f1f65b0f..dd8108a76099f8a67fd3fb7dde3311f759599732 100644 (file)
@@ -43,10 +43,9 @@ ToFTLDeferredCompilationCallback::ToFTLDeferredCompilationCallback(
 
 ToFTLDeferredCompilationCallback::~ToFTLDeferredCompilationCallback() { }
 
-PassRefPtr<ToFTLDeferredCompilationCallback> ToFTLDeferredCompilationCallback::create(
-    PassRefPtr<CodeBlock> dfgCodeBlock)
+Ref<ToFTLDeferredCompilationCallback> ToFTLDeferredCompilationCallback::create(PassRefPtr<CodeBlock> dfgCodeBlock)
 {
-    return adoptRef(new ToFTLDeferredCompilationCallback(dfgCodeBlock));
+    return adoptRef(*new ToFTLDeferredCompilationCallback(dfgCodeBlock));
 }
 
 void ToFTLDeferredCompilationCallback::compilationDidBecomeReadyAsynchronously(