Changeset 217808 in webkit


Ignore:
Timestamp:
Jun 5, 2017 5:03:53 PM (7 years ago)
Author:
Joseph Pecoraro
Message:

Remove unused VM members
https://bugs.webkit.org/show_bug.cgi?id=172941

Reviewed by Mark Lam.

  • runtime/HashMapImpl.h:

(JSC::HashMapImpl::selectStructure): Deleted.

  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r217807 r217808  
     12017-06-05  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Remove unused VM members
     4        https://bugs.webkit.org/show_bug.cgi?id=172941
     5
     6        Reviewed by Mark Lam.
     7
     8        * runtime/HashMapImpl.h:
     9        (JSC::HashMapImpl::selectStructure): Deleted.
     10        * runtime/VM.cpp:
     11        (JSC::VM::VM):
     12        * runtime/VM.h:
     13
    1142017-06-05  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/JavaScriptCore/runtime/HashMapImpl.h

    r217525 r217808  
    286286    using HashMapBufferType = HashMapBuffer<HashMapBucketType>;
    287287
    288     template <typename T = HashMapBucketType>
    289     static typename std::enable_if<std::is_same<T, HashMapBucket<HashMapBucketDataKey>>::value, Structure*>::type selectStructure(VM& vm)
    290     {
    291         return vm.hashMapImplSetStructure.get();
    292     }
    293 
    294     template <typename T = HashMapBucketType>
    295     static typename std::enable_if<std::is_same<T, HashMapBucket<HashMapBucketDataKeyValue>>::value, Structure*>::type selectStructure(VM& vm)
    296     {
    297         return vm.hashMapImplMapStructure.get();
    298     }
    299 
    300288public:
    301289    using BucketType = HashMapBucketType;
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r217770 r217808  
    181181    , prototypeMap(*this)
    182182    , interpreter(0)
    183     , jsArrayClassInfo(JSArray::info())
    184     , jsFinalObjectClassInfo(JSFinalObject::info())
    185183    , sizeOfLastScratchBuffer(0)
    186184    , entryScope(0)
     
    225223    scopedArgumentsTableStructure.set(*this, ScopedArgumentsTable::createStructure(*this, 0, jsNull()));
    226224    apiWrapperStructure.set(*this, JSAPIValueWrapper::createStructure(*this, 0, jsNull()));
    227     JSScopeStructure.set(*this, JSScope::createStructure(*this, 0, jsNull()));
    228     executableStructure.set(*this, ExecutableBase::createStructure(*this, 0, jsNull()));
    229225    nativeExecutableStructure.set(*this, NativeExecutable::createStructure(*this, 0, jsNull()));
    230226    evalExecutableStructure.set(*this, EvalExecutable::createStructure(*this, 0, jsNull()));
     
    266262    hashMapBucketMapStructure.set(*this, HashMapBucket<HashMapBucketDataKeyValue>::createStructure(*this, 0, jsNull()));
    267263
    268     iterationTerminator.set(*this, JSFinalObject::create(*this, JSFinalObject::createStructure(*this, 0, jsNull(), 1)));
    269264    nativeStdFunctionCellStructure.set(*this, NativeStdFunctionCell::createStructure(*this, 0, jsNull()));
    270265    smallStrings.initializeCommonStrings(*this);
  • trunk/Source/JavaScriptCore/runtime/VM.h

    r217060 r217808  
    315315    Strong<Structure> scopedArgumentsTableStructure;
    316316    Strong<Structure> apiWrapperStructure;
    317     Strong<Structure> JSScopeStructure;
    318     Strong<Structure> executableStructure;
    319317    Strong<Structure> nativeExecutableStructure;
    320318    Strong<Structure> evalExecutableStructure;
     
    356354    Strong<Structure> hashMapBucketSetStructure;
    357355    Strong<Structure> hashMapBucketMapStructure;
    358     Strong<Structure> hashMapImplSetStructure;
    359     Strong<Structure> hashMapImplMapStructure;
    360 
    361     Strong<JSCell> iterationTerminator;
     356
    362357    Strong<JSCell> emptyPropertyNameEnumerator;
    363358
     
    525520    void* lastStackTop() { return m_lastStackTop; }
    526521    void setLastStackTop(void*);
    527 
    528     const ClassInfo* const jsArrayClassInfo;
    529     const ClassInfo* const jsFinalObjectClassInfo;
    530522
    531523    JSValue hostCallReturnValue;
Note: See TracChangeset for help on using the changeset viewer.