Ignore:
Timestamp:
May 23, 2009, 9:39:20 AM (16 years ago)
Author:
[email protected]
Message:

Part 1 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr

<https://bugs.webkit.org/show_bug.cgi?id=25495>

Reviewed by Oliver Hunt.

JavaScriptCore:

  • GNUmakefile.am: Added OwnPtrCommon.h and PassOwnPtr.h.
  • JavaScriptCore.vcproj/WTF/WTF.vcproj: Ditto.
  • JavaScriptCore.xcodeproj/project.pbxproj: Ditto.
  • wtf/OwnPtr.h: (WTF::OwnPtr::OwnPtr): Added constructors that take a PassOwnPtr. Also added a copy constructor declaration that's required when assigning a PassOwnPtr to a stack-based OwnPtr. (WTF::operator=): Added assignment operator methods that take a PassOwnPtr. (WTF::swap): Reformatted. (WTF::operator==): Whitespace changes. (WTF::operator!=): Ditto.
  • wtf/OwnPtrCommon.h: Added. (WTF::deleteOwnedPtr):
  • wtf/PassOwnPtr.h: Added. (WTF::PassOwnPtr::PassOwnPtr): (WTF::PassOwnPtr::~PassOwnPtr): (WTF::PassOwnPtr::get): (WTF::PassOwnPtr::clear): (WTF::PassOwnPtr::release): (WTF::PassOwnPtr::operator*): (WTF::PassOwnPtr::operator->): (WTF::PassOwnPtr::operator!): (WTF::PassOwnPtr::operator UnspecifiedBoolType): (WTF::::operator): (WTF::operator==): (WTF::operator!=): (WTF::static_pointer_cast): (WTF::const_pointer_cast): (WTF::getPtr):

JavaScriptGlue:

  • ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
  • ForwardingHeaders/wtf/PassOwnPtr.h: Added.

WebCore:

  • ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
  • ForwardingHeaders/wtf/PassOwnPtr.h: Added.
  • WebCore.vcproj/WebCore.vcproj: Added OwnPtrCommon.h and PassOwnPtr.h.

WebKit/mac:

  • ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
  • ForwardingHeaders/wtf/PassOwnPtr.h: Added.

WebKitTools:

  • DumpRenderTree/ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
  • DumpRenderTree/ForwardingHeaders/wtf/PassOwnPtr.h: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r44030 r44095  
    9999                1C61516C0EBAC7A00031376F /* ProfilerServer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1C61516A0EBAC7A00031376F /* ProfilerServer.mm */; settings = {COMPILER_FLAGS = "-fno-strict-aliasing"; }; };
    100100                1C61516D0EBAC7A00031376F /* ProfilerServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C61516B0EBAC7A00031376F /* ProfilerServer.h */; };
     101                4409D8470FAF80A200523B87 /* OwnPtrCommon.h in Headers */ = {isa = PBXBuildFile; fileRef = 440B7AED0FAF7FCB0073323E /* OwnPtrCommon.h */; settings = {ATTRIBUTES = (Private, ); }; };
     102                44DD48530FAEA85000D6B4EB /* PassOwnPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = 44DD48520FAEA85000D6B4EB /* PassOwnPtr.h */; settings = {ATTRIBUTES = (Private, ); }; };
    101103                5D53726F0E1C54880021E549 /* Tracing.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D53726E0E1C54880021E549 /* Tracing.h */; };
    102104                5D5D8AB60E0D0A7200F9C692 /* jsc in Copy Into Framework */ = {isa = PBXBuildFile; fileRef = 932F5BE10822A1C700736975 /* jsc */; };
     
    544546                1CAA8B4A0D32C39A0041BCFF /* JavaScript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavaScript.h; sourceTree = "<group>"; };
    545547                1CAA8B4B0D32C39A0041BCFF /* JavaScriptCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavaScriptCore.h; sourceTree = "<group>"; };
     548                440B7AED0FAF7FCB0073323E /* OwnPtrCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OwnPtrCommon.h; sourceTree = "<group>"; };
    546549                449097EE0F8F81B50076A327 /* FeatureDefines.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = FeatureDefines.xcconfig; sourceTree = "<group>"; };
     550                44DD48520FAEA85000D6B4EB /* PassOwnPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PassOwnPtr.h; sourceTree = "<group>"; };
    547551                45E12D8806A49B0F00E9DF84 /* jsc.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsc.cpp; sourceTree = "<group>"; tabWidth = 4; };
    548552                5186111D0CC824830081412B /* Deque.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Deque.h; sourceTree = "<group>"; };
     
    11901194                                9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
    11911195                                9303F567099118FA00AD71B8 /* OwnPtr.h */,
     1196                                440B7AED0FAF7FCB0073323E /* OwnPtrCommon.h */,
     1197                                44DD48520FAEA85000D6B4EB /* PassOwnPtr.h */,
    11921198                                6580F795094070560082C219 /* PassRefPtr.h */,
    11931199                                65D6D87E09B5A32E0002E4D7 /* Platform.h */,
     
    17211727                                BC18C4490E16F5CD00B34460 /* OwnArrayPtr.h in Headers */,
    17221728                                BC18C44A0E16F5CD00B34460 /* OwnPtr.h in Headers */,
     1729                                4409D8470FAF80A200523B87 /* OwnPtrCommon.h in Headers */,
    17231730                                BC18C44B0E16F5CD00B34460 /* Parser.h in Headers */,
     1731                                44DD48530FAEA85000D6B4EB /* PassOwnPtr.h in Headers */,
    17241732                                BC18C44C0E16F5CD00B34460 /* PassRefPtr.h in Headers */,
    17251733                                BC18C44F0E16F5CD00B34460 /* Platform.h in Headers */,
Note: See TracChangeset for help on using the changeset viewer.