Ignore:
Timestamp:
Nov 22, 2014, 8:37:15 PM (11 years ago)
Author:
[email protected]
Message:

Clean up OwnPtr and PassOwnPtr in some of JS classes
https://bugs.webkit.org/show_bug.cgi?id=138724

Reviewed by Filip Pizlo.

As a step to use std::unique_ptr<> and std::make_unique<>, this patch replaces
OwnPtr with std::unique_ptr<>. Besides create() factory function is removed as well.

  • builtins/BuiltinExecutables.h:

(JSC::BuiltinExecutables::create): Deleted.

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::createRareDataIfNecessary):

  • bytecode/StructureStubInfo.h:
  • bytecode/UnlinkedCodeBlock.h:

(JSC::UnlinkedCodeBlock::hasRareData):
(JSC::UnlinkedCodeBlock::createRareDataIfNecessary):

  • runtime/CodeCache.cpp:

(JSC::CodeCache::getGlobalCodeBlock):

  • runtime/CodeCache.h:

(JSC::CodeCache::create): Deleted.

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::clearRareData):

  • runtime/JSGlobalObject.h:

(JSC::JSGlobalObject::createRareDataIfNeeded):

  • runtime/RegExpConstructor.h:
  • runtime/SmallStrings.cpp:

(JSC::SmallStrings::createSingleCharacterString):
(JSC::SmallStrings::singleCharacterStringRep):

  • runtime/SmallStrings.h:
  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/SmallStrings.h

    r173269 r176508  
    2929#include "WriteBarrier.h"
    3030#include <wtf/Noncopyable.h>
    31 #include <wtf/OwnPtr.h>
    3231
    3332#define JSC_COMMON_STRINGS_EACH_NAME(macro) \
     
    105104    JSString* m_undefinedObjectString;
    106105    JSString* m_singleCharacterStrings[singleCharacterStringCount];
    107     OwnPtr<SmallStringsStorage> m_storage;
     106    std::unique_ptr<SmallStringsStorage> m_storage;
    108107};
    109108
Note: See TracChangeset for help on using the changeset viewer.