Ignore:
Timestamp:
Aug 25, 2011, 4:30:14 PM (14 years ago)
Author:
[email protected]
Message:

Unzip initialization lists and constructors in JSCell hierarchy (1/7)
https://bugs.webkit.org/show_bug.cgi?id=66827

Patch by Mark Hahnenberg <[email protected]> on 2011-08-25
Reviewed by Geoffrey Garen.

Added finishCreation() methods to all immediately subclasses of JSCell with
non-empty constructors. Part of a larger refactoring to "unzip" initialization
lists and constructor bodies. Also renamed JSCell's constructorBody() method
to finishCreation().

  • runtime/Executable.h:

(JSC::ExecutableBase::ExecutableBase):
(JSC::ExecutableBase::constructorBody):

  • runtime/GetterSetter.h:

(JSC::GetterSetter::GetterSetter):

  • runtime/JSAPIValueWrapper.h:

(JSC::JSAPIValueWrapper::constructorBody):
(JSC::JSAPIValueWrapper::JSAPIValueWrapper):

  • runtime/JSCell.h:

(JSC::JSCell::JSCell::JSCell):
(JSC::JSCell::JSCell::constructorBody):

  • runtime/JSObject.h:

(JSC::JSObject::constructorBody):
(JSC::JSObject::JSObject):

  • runtime/JSPropertyNameIterator.h:

(JSC::JSPropertyNameIterator::constructorBody):

  • runtime/JSString.h:

(JSC::RopeBuilder::JSString):
(JSC::RopeBuilder::constructorBody):

  • runtime/RegExp.cpp:

(JSC::RegExp::RegExp):
(JSC::RegExp::constructorBody):

  • runtime/RegExp.h:
  • runtime/ScopeChain.h:

(JSC::ScopeChainNode::ScopeChainNode):
(JSC::ScopeChainNode::constructorBody):

  • runtime/Structure.cpp:

(JSC::Structure::Structure):

  • runtime/StructureChain.cpp:

(JSC::StructureChain::StructureChain):

  • runtime/StructureChain.h:

(JSC::StructureChain::create):
(JSC::StructureChain::constructorBody):

File:
1 edited

Legend:

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

    r92706 r93835  
    2525
    2626#include "JSCell.h"
     27#include "JSValue.h"
    2728#include "CallFrame.h"
    2829#include "Structure.h"
     
    5152        }
    5253
     54    protected:
     55        void finishCreation(ExecState* exec, JSValue value)
     56        {
     57            Base::finishCreation(exec->globalData());
     58            m_value.set(exec->globalData(), this, value);
     59            ASSERT(!value.isCell());
     60        }
     61
    5362    private:
    5463        JSAPIValueWrapper(ExecState* exec, JSValue value)
    5564            : JSCell(exec->globalData(), exec->globalData().apiWrapperStructure.get())
    5665        {
    57             m_value.set(exec->globalData(), this, value);
    58             ASSERT(!value.isCell());
     66            finishCreation(exec, value);
    5967        }
    6068
Note: See TracChangeset for help on using the changeset viewer.