Commit 980c614d authored by darin@apple.com's avatar darin@apple.com

JavaScriptCore:

2008-06-15  Darin Adler  <darin@apple.com>

        Rubber stamped by Sam.

        - use JS prefix and simpler names for basic JavaScriptCore types,
          to complement JSValue and JSObject

        * JavaScriptCore.exp:
        * VM/Machine.cpp:
        (KJS::jsLess):
        (KJS::jsLessEq):
        (KJS::jsAdd):
        (KJS::callEval):
        (KJS::Machine::execute):
        (KJS::Machine::retrieveArguments):
        (KJS::Machine::retrieveCaller):
        (KJS::Machine::getCallFrame):
        (KJS::Machine::getFunctionAndArguments):
        * VM/Machine.h:
        * VM/Register.h:
        * kjs/DebuggerCallFrame.cpp:
        (KJS::DebuggerCallFrame::functionName):
        * kjs/ExecState.h:
        * kjs/JSActivation.cpp:
        (KJS::JSActivation::createArgumentsObject):
        * kjs/array_instance.cpp:
        (KJS::):
        (KJS::JSArray::checkConsistency):
        (KJS::JSArray::JSArray):
        (KJS::JSArray::~JSArray):
        (KJS::JSArray::getItem):
        (KJS::JSArray::lengthGetter):
        (KJS::JSArray::inlineGetOwnPropertySlot):
        (KJS::JSArray::getOwnPropertySlot):
        (KJS::JSArray::put):
        (KJS::JSArray::deleteProperty):
        (KJS::JSArray::getPropertyNames):
        (KJS::JSArray::increaseVectorLength):
        (KJS::JSArray::setLength):
        (KJS::JSArray::mark):
        (KJS::JSArray::sort):
        (KJS::JSArray::compactForSorting):
        (KJS::JSArray::lazyCreationData):
        (KJS::JSArray::setLazyCreationData):
        * kjs/array_instance.h:
        * kjs/array_object.cpp:
        (KJS::):
        (KJS::ArrayPrototype::ArrayPrototype):
        (KJS::ArrayPrototype::getOwnPropertySlot):
        (KJS::arrayProtoFuncToString):
        (KJS::arrayProtoFuncToLocaleString):
        (KJS::arrayProtoFuncConcat):
        (KJS::arrayProtoFuncSort):
        (KJS::ArrayObjectImp::construct):
        * kjs/array_object.h:
        * kjs/completion.h:
        * kjs/function.cpp:
        (KJS::):
        (KJS::JSFunction::JSFunction):
        (KJS::JSFunction::mark):
        (KJS::JSFunction::getCallData):
        (KJS::JSFunction::callAsFunction):
        (KJS::JSFunction::argumentsGetter):
        (KJS::JSFunction::callerGetter):
        (KJS::JSFunction::lengthGetter):
        (KJS::JSFunction::getOwnPropertySlot):
        (KJS::JSFunction::put):
        (KJS::JSFunction::deleteProperty):
        (KJS::JSFunction::getParameterName):
        (KJS::JSFunction::getConstructData):
        (KJS::JSFunction::construct):
        (KJS::IndexToNameMap::IndexToNameMap):
        (KJS::Arguments::Arguments):
        * kjs/function.h:
        * kjs/function_object.cpp:
        (KJS::functionProtoFuncToString):
        (KJS::functionProtoFuncApply):
        (KJS::FunctionObjectImp::construct):
        * kjs/internal.cpp:
        (KJS::JSString::toPrimitive):
        (KJS::JSString::getPrimitiveNumber):
        (KJS::JSString::toBoolean):
        (KJS::JSString::toNumber):
        (KJS::JSString::toString):
        (KJS::StringInstance::create):
        (KJS::JSString::toObject):
        (KJS::JSString::toThisObject):
        (KJS::JSString::lengthGetter):
        (KJS::JSString::indexGetter):
        (KJS::JSString::indexNumericPropertyGetter):
        (KJS::JSString::getOwnPropertySlot):
        (KJS::JSNumberCell::type):
        (KJS::JSNumberCell::toPrimitive):
        (KJS::JSNumberCell::getPrimitiveNumber):
        (KJS::JSNumberCell::toBoolean):
        (KJS::JSNumberCell::toNumber):
        (KJS::JSNumberCell::toString):
        (KJS::JSNumberCell::toObject):
        (KJS::JSNumberCell::toThisObject):
        (KJS::JSNumberCell::getUInt32):
        (KJS::JSNumberCell::getTruncatedInt32):
        (KJS::JSNumberCell::getTruncatedUInt32):
        (KJS::GetterSetter::mark):
        (KJS::GetterSetter::toPrimitive):
        (KJS::GetterSetter::getPrimitiveNumber):
        (KJS::GetterSetter::toBoolean):
        (KJS::GetterSetter::toNumber):
        (KJS::GetterSetter::toString):
        (KJS::GetterSetter::toObject):
        (KJS::GetterSetter::getOwnPropertySlot):
        (KJS::GetterSetter::put):
        (KJS::GetterSetter::toThisObject):
        * kjs/internal.h:
        (KJS::JSString::JSString):
        (KJS::JSString::getStringPropertySlot):
        * kjs/nodes.cpp:
        (KJS::FuncDeclNode::makeFunction):
        (KJS::FuncExprNode::makeFunction):
        * kjs/nodes.h:
        * kjs/object.cpp:
        (KJS::JSObject::put):
        (KJS::JSObject::deleteProperty):
        (KJS::JSObject::defineGetter):
        (KJS::JSObject::defineSetter):
        (KJS::JSObject::lookupGetter):
        (KJS::JSObject::lookupSetter):
        (KJS::JSObject::fillGetterPropertySlot):
        * kjs/object.h:
        (KJS::):
        (KJS::GetterSetter::GetterSetter):
        * kjs/operations.cpp:
        (KJS::equal):
        (KJS::strictEqual):
        * kjs/property_map.cpp:
        (KJS::PropertyMap::containsGettersOrSetters):
        * kjs/regexp_object.cpp:
        (KJS::RegExpMatchesArray::getOwnPropertySlot):
        (KJS::RegExpMatchesArray::put):
        (KJS::RegExpMatchesArray::deleteProperty):
        (KJS::RegExpMatchesArray::getPropertyNames):
        (KJS::RegExpMatchesArray::RegExpMatchesArray):
        (KJS::RegExpMatchesArray::fillArrayInstance):
        * kjs/string_object.cpp:
        (KJS::StringInstance::StringInstance):
        (KJS::replace):
        (KJS::stringProtoFuncReplace):
        (KJS::stringProtoFuncToLowerCase):
        (KJS::stringProtoFuncToUpperCase):
        (KJS::stringProtoFuncToLocaleLowerCase):
        (KJS::stringProtoFuncToLocaleUpperCase):
        * kjs/string_object.h:
        (KJS::StringInstance::internalValue):
        * kjs/value.cpp:
        (KJS::JSCell::getNumber):
        (KJS::JSCell::getString):
        (KJS::JSCell::getObject):
        (KJS::jsString):
        (KJS::jsOwnedString):
        * kjs/value.h:
        (KJS::JSNumberCell::JSNumberCell):
        (KJS::jsNumberCell):
        (KJS::JSValue::uncheckedGetNumber):
        * profiler/Profiler.cpp:
        (KJS::createCallIdentifier):
        (KJS::createCallIdentifierFromFunctionImp):

WebCore:

2008-06-15  Darin Adler  <darin@apple.com>

        Rubber stamped by Sam.

        - use JS prefix and simpler names for basic JavaScriptCore types,
          to complement JSValue and JSObject

        * bindings/js/JSNavigatorCustom.cpp:
        (WebCore::needsYouTubeQuirk):
        * bindings/js/kjs_events.cpp:
        (WebCore::JSLazyEventListener::parseCode):
        * bridge/jni/jni_utility.cpp:
        (KJS::Bindings::convertArrayInstanceToJavaArray):
        (KJS::Bindings::convertValueToJValue):
        * bridge/qt/qt_runtime.cpp:
        (KJS::Bindings::valueRealType):
        (KJS::Bindings::convertValueToQVariant):
        (KJS::Bindings::QtConnectionObject::execute):
        * bridge/runtime_array.cpp:

WebKit/mac:

2008-06-15  Darin Adler  <darin@apple.com>

        Rubber stamped by Sam.

        - use JS prefix and simpler names for basic JavaScriptCore types,
          to complement JSValue and JSObject

        * WebView/WebView.mm:
        (aeDescFromJSValue):

WebKit/win:

2008-06-15  Darin Adler  <darin@apple.com>

        Rubber stamped by Sam.

        - use JS prefix and simpler names for basic JavaScriptCore types,
          to complement JSValue and JSObject

        * WebScriptCallFrame.cpp:
        (WebScriptCallFrame::functionName):

WebKitTools:

2008-06-15  Darin Adler  <darin@apple.com>

        * Scripts/do-webcore-rename: Updated for the latest round of renaming.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 611be9e9
2008-06-15 Darin Adler <darin@apple.com>
Rubber stamped by Sam.
- use JS prefix and simpler names for basic JavaScriptCore types,
to complement JSValue and JSObject
* JavaScriptCore.exp:
* VM/Machine.cpp:
(KJS::jsLess):
(KJS::jsLessEq):
(KJS::jsAdd):
(KJS::callEval):
(KJS::Machine::execute):
(KJS::Machine::retrieveArguments):
(KJS::Machine::retrieveCaller):
(KJS::Machine::getCallFrame):
(KJS::Machine::getFunctionAndArguments):
* VM/Machine.h:
* VM/Register.h:
* kjs/DebuggerCallFrame.cpp:
(KJS::DebuggerCallFrame::functionName):
* kjs/ExecState.h:
* kjs/JSActivation.cpp:
(KJS::JSActivation::createArgumentsObject):
* kjs/array_instance.cpp:
(KJS::):
(KJS::JSArray::checkConsistency):
(KJS::JSArray::JSArray):
(KJS::JSArray::~JSArray):
(KJS::JSArray::getItem):
(KJS::JSArray::lengthGetter):
(KJS::JSArray::inlineGetOwnPropertySlot):
(KJS::JSArray::getOwnPropertySlot):
(KJS::JSArray::put):
(KJS::JSArray::deleteProperty):
(KJS::JSArray::getPropertyNames):
(KJS::JSArray::increaseVectorLength):
(KJS::JSArray::setLength):
(KJS::JSArray::mark):
(KJS::JSArray::sort):
(KJS::JSArray::compactForSorting):
(KJS::JSArray::lazyCreationData):
(KJS::JSArray::setLazyCreationData):
* kjs/array_instance.h:
* kjs/array_object.cpp:
(KJS::):
(KJS::ArrayPrototype::ArrayPrototype):
(KJS::ArrayPrototype::getOwnPropertySlot):
(KJS::arrayProtoFuncToString):
(KJS::arrayProtoFuncToLocaleString):
(KJS::arrayProtoFuncConcat):
(KJS::arrayProtoFuncSort):
(KJS::ArrayObjectImp::construct):
* kjs/array_object.h:
* kjs/completion.h:
* kjs/function.cpp:
(KJS::):
(KJS::JSFunction::JSFunction):
(KJS::JSFunction::mark):
(KJS::JSFunction::getCallData):
(KJS::JSFunction::callAsFunction):
(KJS::JSFunction::argumentsGetter):
(KJS::JSFunction::callerGetter):
(KJS::JSFunction::lengthGetter):
(KJS::JSFunction::getOwnPropertySlot):
(KJS::JSFunction::put):
(KJS::JSFunction::deleteProperty):
(KJS::JSFunction::getParameterName):
(KJS::JSFunction::getConstructData):
(KJS::JSFunction::construct):
(KJS::IndexToNameMap::IndexToNameMap):
(KJS::Arguments::Arguments):
* kjs/function.h:
* kjs/function_object.cpp:
(KJS::functionProtoFuncToString):
(KJS::functionProtoFuncApply):
(KJS::FunctionObjectImp::construct):
* kjs/internal.cpp:
(KJS::JSString::toPrimitive):
(KJS::JSString::getPrimitiveNumber):
(KJS::JSString::toBoolean):
(KJS::JSString::toNumber):
(KJS::JSString::toString):
(KJS::StringInstance::create):
(KJS::JSString::toObject):
(KJS::JSString::toThisObject):
(KJS::JSString::lengthGetter):
(KJS::JSString::indexGetter):
(KJS::JSString::indexNumericPropertyGetter):
(KJS::JSString::getOwnPropertySlot):
(KJS::JSNumberCell::type):
(KJS::JSNumberCell::toPrimitive):
(KJS::JSNumberCell::getPrimitiveNumber):
(KJS::JSNumberCell::toBoolean):
(KJS::JSNumberCell::toNumber):
(KJS::JSNumberCell::toString):
(KJS::JSNumberCell::toObject):
(KJS::JSNumberCell::toThisObject):
(KJS::JSNumberCell::getUInt32):
(KJS::JSNumberCell::getTruncatedInt32):
(KJS::JSNumberCell::getTruncatedUInt32):
(KJS::GetterSetter::mark):
(KJS::GetterSetter::toPrimitive):
(KJS::GetterSetter::getPrimitiveNumber):
(KJS::GetterSetter::toBoolean):
(KJS::GetterSetter::toNumber):
(KJS::GetterSetter::toString):
(KJS::GetterSetter::toObject):
(KJS::GetterSetter::getOwnPropertySlot):
(KJS::GetterSetter::put):
(KJS::GetterSetter::toThisObject):
* kjs/internal.h:
(KJS::JSString::JSString):
(KJS::JSString::getStringPropertySlot):
* kjs/nodes.cpp:
(KJS::FuncDeclNode::makeFunction):
(KJS::FuncExprNode::makeFunction):
* kjs/nodes.h:
* kjs/object.cpp:
(KJS::JSObject::put):
(KJS::JSObject::deleteProperty):
(KJS::JSObject::defineGetter):
(KJS::JSObject::defineSetter):
(KJS::JSObject::lookupGetter):
(KJS::JSObject::lookupSetter):
(KJS::JSObject::fillGetterPropertySlot):
* kjs/object.h:
(KJS::):
(KJS::GetterSetter::GetterSetter):
* kjs/operations.cpp:
(KJS::equal):
(KJS::strictEqual):
* kjs/property_map.cpp:
(KJS::PropertyMap::containsGettersOrSetters):
* kjs/regexp_object.cpp:
(KJS::RegExpMatchesArray::getOwnPropertySlot):
(KJS::RegExpMatchesArray::put):
(KJS::RegExpMatchesArray::deleteProperty):
(KJS::RegExpMatchesArray::getPropertyNames):
(KJS::RegExpMatchesArray::RegExpMatchesArray):
(KJS::RegExpMatchesArray::fillArrayInstance):
* kjs/string_object.cpp:
(KJS::StringInstance::StringInstance):
(KJS::replace):
(KJS::stringProtoFuncReplace):
(KJS::stringProtoFuncToLowerCase):
(KJS::stringProtoFuncToUpperCase):
(KJS::stringProtoFuncToLocaleLowerCase):
(KJS::stringProtoFuncToLocaleUpperCase):
* kjs/string_object.h:
(KJS::StringInstance::internalValue):
* kjs/value.cpp:
(KJS::JSCell::getNumber):
(KJS::JSCell::getString):
(KJS::JSCell::getObject):
(KJS::jsString):
(KJS::jsOwnedString):
* kjs/value.h:
(KJS::JSNumberCell::JSNumberCell):
(KJS::jsNumberCell):
(KJS::JSValue::uncheckedGetNumber):
* profiler/Profiler.cpp:
(KJS::createCallIdentifier):
(KJS::createCallIdentifierFromFunctionImp):
2008-06-15 Maciej Stachowiak <mjs@apple.com>
Reviewed by Alexey.
......
......@@ -92,17 +92,14 @@ __ZN3KJS11JSImmediate8toObjectEPKNS_7JSValueEPNS_9ExecStateE
__ZN3KJS11JSImmediate8toStringEPKNS_7JSValueE
__ZN3KJS11ProfileNode4sortEPFbRKN3WTF6RefPtrIS0_EES5_E
__ZN3KJS11ProfileNode5focusERKNS_14CallIdentifierEb
__ZN3KJS11ProfileNode7excludeERKNS_14CallIdentifierE
__ZN3KJS11ProgramNode6createEPNS_14SourceElementsEPN3WTF6VectorISt4pairINS_10IdentifierEjELm16EEEPNS4_INS3_6RefPtrINS_12FuncDeclNodeEEELm16EEEbb
__ZN3KJS11PropertyMap11getLocationERKNS_10IdentifierE
__ZN3KJS11PropertyMap11getLocationERKNS_10IdentifierERb
__ZN3KJS11PropertyMap3putERKNS_10IdentifierEPNS_7JSValueEjb
__ZN3KJS11PropertyMap5clearEv
__ZN3KJS11PropertyMapD1Ev
__ZN3KJS12DateInstance4infoE
__ZN3KJS12PropertySlot15undefinedGetterEPNS_9ExecStateERKNS_10IdentifierERKS0_
__ZN3KJS12RegisterFile14addGlobalSlotsEm
__ZN3KJS13ArrayInstance4infoE
__ZN3KJS13CodeGenerator21setDumpsGeneratedCodeEb
__ZN3KJS13StatementNode6setLocEii
__ZN3KJS13jsOwnedStringERKNS_7UStringE
......@@ -115,7 +112,6 @@ __ZN3KJS14JSGlobalObject17startTimeoutCheckEv
__ZN3KJS14JSGlobalObject3putEPNS_9ExecStateERKNS_10IdentifierEPNS_7JSValueE
__ZN3KJS14JSGlobalObject4initEPNS_8JSObjectE
__ZN3KJS14JSGlobalObject4markEv
__ZN3KJS14JSGlobalObject5resetEPNS_7JSValueE
__ZN3KJS14JSGlobalObjectD2Ev
__ZN3KJS14StringInstance14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS14StringInstance16getPropertyNamesEPNS_9ExecStateERNS_17PropertyNameArrayE
......@@ -123,7 +119,6 @@ __ZN3KJS14StringInstance18getOwnPropertySlotEPNS_9ExecStateERKNS_10IdentifierERN
__ZN3KJS14StringInstance18getOwnPropertySlotEPNS_9ExecStateEjRNS_12PropertySlotE
__ZN3KJS14StringInstance3putEPNS_9ExecStateERKNS_10IdentifierEPNS_7JSValueE
__ZN3KJS14StringInstance4infoE
__ZN3KJS14StringInstanceC1EPNS_8JSObjectERKNS_7UStringE
__ZN3KJS14StringInstanceC2EPNS_8JSObjectERKNS_7UStringE
__ZN3KJS15JSWrapperObject4markEv
__ZN3KJS16JSVariableObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
......@@ -159,10 +154,9 @@ __ZN3KJS6Parser5parseEPNS_9ExecStateERKNS_7UStringEiN3WTF10PassRefPtrINS_14Sourc
__ZN3KJS6strtodEPKcPPc
__ZN3KJS7CStringD1Ev
__ZN3KJS7CStringaSERKS0_
__ZN3KJS7Machine13dumpCallFrameEPKNS_9CodeBlockEPNS_14ScopeChainNodeEPNS_12RegisterFileEPKNS_8RegisterE
__ZN3KJS7Profile7excludeEPKNS_11ProfileNodeE
__ZN3KJS7Profile7forEachEPFvPNS_11ProfileNodeEE
__ZN3KJS7JSArray4infoE
__ZN3KJS7Profile10restoreAllEv
__ZN3KJS7Profile7excludeEPKNS_11ProfileNodeE
__ZN3KJS7Profile7forEachEPFvPNS_11ProfileNodeEE
__ZN3KJS7UString3Rep11computeHashEPKti
__ZN3KJS7UString3Rep4nullE
......@@ -172,7 +166,6 @@ __ZN3KJS7UString6appendEPKc
__ZN3KJS7UString6appendERKS0_
__ZN3KJS7UStringC1EPKc
__ZN3KJS7UStringC1EPKti
__ZN3KJS7UStringC1ERKS0_S2_
__ZN3KJS7UStringaSEPKc
__ZN3KJS8Debugger6attachEPNS_14JSGlobalObjectE
__ZN3KJS8Debugger6detachEPNS_14JSGlobalObjectE
......@@ -183,7 +176,6 @@ __ZN3KJS8JSObject12defineGetterEPNS_9ExecStateERKNS_10IdentifierEPS0_
__ZN3KJS8JSObject12defineSetterEPNS_9ExecStateERKNS_10IdentifierEPS0_
__ZN3KJS8JSObject12lookupGetterEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject12lookupSetterEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject12removeDirectERKNS_10IdentifierE
__ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_4ListE
__ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateEj
......@@ -216,7 +208,6 @@ __ZN3KJS9Collector4sizeEv
__ZN3KJS9Collector7collectEv
__ZN3KJS9Collector7protectEPNS_7JSValueE
__ZN3KJS9Collector9unprotectEPNS_7JSValueE
__ZN3KJS9ExecStateC1EPNS_14JSGlobalObjectEPNS_8JSObjectEPNS_14ScopeChainNodeE
__ZN3KJSeqERKNS_7UStringEPKc
__ZN3KJSgtERKNS_7UStringES2_
__ZN3KJSltERKNS_7UStringES2_
......@@ -230,15 +221,12 @@ __ZN3WTF13currentThreadEv
__ZN3WTF15ThreadCondition4waitERNS_5MutexE
__ZN3WTF15ThreadCondition6signalEv
__ZN3WTF15ThreadCondition9broadcastEv
__ZN3WTF15ThreadCondition9timedWaitERNS_5MutexEd
__ZN3WTF15ThreadConditionC1Ev
__ZN3WTF15ThreadConditionD1Ev
__ZN3WTF16callOnMainThreadEPFvPvES0_
__ZN3WTF16fastZeroedMallocEm
__ZN3WTF19initializeThreadingEv
__ZN3WTF23waitForThreadCompletionEjPPv
__ZN3WTF28setMainThreadCallbacksPausedEb
__ZN3WTF32atomicallyInitializedStaticMutexE
__ZN3WTF5Mutex4lockEv
__ZN3WTF5Mutex6unlockEv
__ZN3WTF5Mutex7tryLockEv
......@@ -251,7 +239,6 @@ __ZN3WTF8CollatorD1Ev
__ZN3WTF8fastFreeEPv
__ZNK3KJS11PropertyMap3getERKNS_10IdentifierE
__ZNK3KJS12DateInstance7getTimeERdRi
__ZNK3KJS13ArrayInstance7getItemEj
__ZNK3KJS14JSGlobalObject14isDynamicScopeEv
__ZNK3KJS14JSGlobalObject14toGlobalObjectEPNS_9ExecStateE
__ZNK3KJS16JSVariableObject16isVariableObjectEv
......@@ -265,11 +252,11 @@ __ZNK3KJS4Node8toStringEv
__ZNK3KJS6JSCell12toThisObjectEPNS_9ExecStateE
__ZNK3KJS6JSCell17getTruncatedInt32ERi
__ZNK3KJS6JSCell18getTruncatedUInt32ERj
__ZNK3KJS6JSCell9getNumberERd
__ZNK3KJS6JSCell9getNumberEv
__ZNK3KJS6JSCell9getStringERNS_7UStringE
__ZNK3KJS6JSCell9getStringEv
__ZNK3KJS6JSCell9getUInt32ERj
__ZNK3KJS7JSArray7getItemEj
__ZNK3KJS7JSValue15toInt32SlowCaseEPNS_9ExecStateERb
__ZNK3KJS7JSValue16toUInt32SlowCaseEPNS_9ExecStateERb
__ZNK3KJS7JSValue7toFloatEPNS_9ExecStateE
......@@ -295,16 +282,15 @@ __ZNK3KJS8JSObject8toStringEPNS_9ExecStateE
__ZNK3KJS8JSObject9classInfoEv
__ZNK3KJS8JSObject9classNameEv
__ZNK3KJS8JSObject9toBooleanEPNS_9ExecStateE
__ZNK3KJS9ExecState14isGlobalObjectEPNS_8JSObjectE
__ZNK3KJS9HashTable11createTableEv
__ZNK3WTF8Collator7collateEPKtmS2_m
__ZTVN3KJS12JSNumberCellE
__ZTVN3KJS14JSGlobalObjectE
__ZTVN3KJS14StringInstanceE
__ZTVN3KJS15JSWrapperObjectE
__ZTVN3KJS16JSVariableObjectE
__ZTVN3KJS19InternalFunctionImpE
__ZTVN3KJS8JSObjectE
__ZTVN3KJS9NumberImpE
_jscore_collector_introspection
_jscore_fastmalloc_introspection
_kJSClassDefinitionEmpty
......
......@@ -103,7 +103,7 @@ static inline bool jsLess(ExecState* exec, JSValue* v1, JSValue* v2)
if (wasNotString1 | wasNotString2)
return n1 < n2;
return static_cast<const StringImp*>(p1)->value() < static_cast<const StringImp*>(p2)->value();
return static_cast<const JSString*>(p1)->value() < static_cast<const JSString*>(p2)->value();
}
static inline bool jsLessEq(ExecState* exec, JSValue* v1, JSValue* v2)
......@@ -118,7 +118,7 @@ static inline bool jsLessEq(ExecState* exec, JSValue* v1, JSValue* v2)
if (wasNotString1 | wasNotString2)
return n1 <= n2;
return !(static_cast<const StringImp*>(p2)->value() < static_cast<const StringImp*>(p1)->value());
return !(static_cast<const JSString*>(p2)->value() < static_cast<const JSString*>(p1)->value());
}
static JSValue* jsAddSlowCase(ExecState* exec, JSValue* v1, JSValue* v2)
......@@ -155,7 +155,7 @@ static inline JSValue* jsAdd(ExecState* exec, JSValue* v1, JSValue* v2)
if (bothTypes == ((NumberType << 3) | NumberType))
return jsNumber(v1->uncheckedGetNumber() + v2->uncheckedGetNumber());
if (bothTypes == ((StringType << 3) | StringType)) {
UString value = static_cast<StringImp*>(v1)->value() + static_cast<StringImp*>(v2)->value();
UString value = static_cast<JSString*>(v1)->value() + static_cast<JSString*>(v2)->value();
if (value.isNull())
return throwOutOfMemoryError(exec);
return jsString(value);
......@@ -449,7 +449,7 @@ static NEVER_INLINE JSValue* callEval(ExecState* exec, JSObject* thisObj, ScopeC
int sourceId;
int errLine;
UString errMsg;
RefPtr<EvalNode> evalNode = exec->parser()->parse<EvalNode>(exec, UString(), 1, UStringSourceProvider::create(static_cast<StringImp*>(program)->value()), &sourceId, &errLine, &errMsg);
RefPtr<EvalNode> evalNode = exec->parser()->parse<EvalNode>(exec, UString(), 1, UStringSourceProvider::create(static_cast<JSString*>(program)->value()), &sourceId, &errLine, &errMsg);
if (!evalNode) {
exceptionValue = Error::create(exec, SyntaxError, errMsg, errLine, sourceId, NULL);
......@@ -684,7 +684,7 @@ JSValue* Machine::execute(ProgramNode* programNode, ExecState* exec, ScopeChainN
return result;
}
JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, FunctionImp* function, JSObject* thisObj, const List& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception)
JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, JSFunction* function, JSObject* thisObj, const List& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception)
{
if (m_reentryDepth >= MaxReentryDepth) {
*exception = createStackOverflowError(exec);
......@@ -2538,7 +2538,7 @@ JSValue* Machine::privateExecute(ExecutionFlag flag, ExecState* exec, RegisterFi
#undef VM_CHECK_EXCEPTION
}
JSValue* Machine::retrieveArguments(ExecState* exec, FunctionImp* function) const
JSValue* Machine::retrieveArguments(ExecState* exec, JSFunction* function) const
{
Register** registerBase;
int callFrameOffset;
......@@ -2557,7 +2557,7 @@ JSValue* Machine::retrieveArguments(ExecState* exec, FunctionImp* function) cons
return activation->get(exec, exec->propertyNames().arguments);
}
JSValue* Machine::retrieveCaller(ExecState* exec, FunctionImp* function) const
JSValue* Machine::retrieveCaller(ExecState* exec, JSFunction* function) const
{
Register** registerBase;
int callFrameOffset;
......@@ -2574,7 +2574,7 @@ JSValue* Machine::retrieveCaller(ExecState* exec, FunctionImp* function) const
return callerFrame[Callee].u.jsValue;
}
bool Machine::getCallFrame(ExecState* exec, FunctionImp* function, Register**& registerBase, int& callFrameOffset) const
bool Machine::getCallFrame(ExecState* exec, JSFunction* function, Register**& registerBase, int& callFrameOffset) const
{
callFrameOffset = exec->m_callFrameOffset;
......@@ -2596,10 +2596,10 @@ bool Machine::getCallFrame(ExecState* exec, FunctionImp* function, Register**& r
}
}
void Machine::getFunctionAndArguments(Register** registerBase, Register* callFrame, FunctionImp*& function, Register*& argv, int& argc)
void Machine::getFunctionAndArguments(Register** registerBase, Register* callFrame, JSFunction*& function, Register*& argv, int& argc)
{
function = static_cast<FunctionImp*>(callFrame[Callee].u.jsValue);
ASSERT(function->inherits(&FunctionImp::info));
function = static_cast<JSFunction*>(callFrame[Callee].u.jsValue);
ASSERT(function->inherits(&JSFunction::info));
argv = (*registerBase) + callFrame[CallerRegisterOffset].u.i + callFrame[ArgumentStartRegister].u.i + 1; // skip "this"
argc = callFrame[ArgumentCount].u.i - 1; // skip "this"
......
......@@ -99,14 +99,14 @@ namespace KJS {
bool isOpcode(Opcode opcode);
JSValue* execute(ProgramNode*, ExecState*, ScopeChainNode*, JSObject* thisObj, RegisterFileStack*, JSValue** exception);
JSValue* execute(FunctionBodyNode*, ExecState*, FunctionImp*, JSObject* thisObj, const List& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
JSValue* execute(FunctionBodyNode*, ExecState*, JSFunction*, JSObject* thisObj, const List& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFile*, int registerOffset, ScopeChainNode*, JSValue** exception);
JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
JSValue* retrieveArguments(ExecState*, FunctionImp*) const;
JSValue* retrieveCaller(ExecState*, FunctionImp*) const;
JSValue* retrieveArguments(ExecState*, JSFunction*) const;
JSValue* retrieveCaller(ExecState*, JSFunction*) const;
void getFunctionAndArguments(Register** registerBase, Register* callFrame, FunctionImp*&, Register*& argv, int& argc);
void getFunctionAndArguments(Register** registerBase, Register* callFrame, JSFunction*&, Register*& argv, int& argc);
private:
enum ExecutionFlag { Normal, InitializeAndReturn };
......@@ -117,7 +117,7 @@ namespace KJS {
NEVER_INLINE bool unwindCallFrame(ExecState*, JSValue*, Register**, const Instruction*&, CodeBlock*&, JSValue**&, ScopeChainNode*&, Register*&);
NEVER_INLINE Instruction* throwException(ExecState*, JSValue*, Register**, const Instruction*, CodeBlock*&, JSValue**&, ScopeChainNode*&, Register*&);
bool getCallFrame(ExecState*, FunctionImp*, Register**& registerBase, int& callFrameOffset) const;
bool getCallFrame(ExecState*, JSFunction*, Register**& registerBase, int& callFrameOffset) const;
JSValue* privateExecute(ExecutionFlag, ExecState* = 0, RegisterFile* = 0, Register* = 0, ScopeChainNode* = 0, CodeBlock* = 0, JSValue** exception = 0);
......
......@@ -34,7 +34,7 @@
namespace KJS {
class CodeBlock;
class FunctionImp;
class JSFunction;
class JSObject;
class JSPropertyNameIterator;
class JSValue;
......
......@@ -46,7 +46,7 @@ const UString* DebuggerCallFrame::functionName() const
return 0;
Register* callFrame = *m_registerBase + callFrameOffset;
FunctionImp* function = static_cast<FunctionImp*>(callFrame[Machine::Callee].u.jsValue);
JSFunction* function = static_cast<JSFunction*>(callFrame[Machine::Callee].u.jsValue);
if (!function)
return 0;
return &function->functionName().ustring();
......
......@@ -35,7 +35,7 @@ namespace KJS {
class EvalNode;
class FunctionBodyNode;
class FunctionImp;
class JSFunction;
class GlobalFuncImp;
class Interpreter;
class JSGlobalObject;
......
......@@ -181,7 +181,7 @@ JSObject* JSActivation::createArgumentsObject(ExecState* exec)
{
Register* callFrame = registers() - d()->functionBody->generatedCode().numLocals - Machine::CallFrameHeaderSize;
FunctionImp* function;
JSFunction* function;
Register* argv;
int argc;
exec->machine()->getFunctionAndArguments(registerBase(), callFrame, function, argv, argc);
......
......@@ -38,7 +38,7 @@ typedef HashMap<unsigned, JSValue*> SparseArrayValueMap;
struct ArrayStorage {
unsigned m_numValuesInVector;
SparseArrayValueMap* m_sparseValueMap;
void* lazyCreationData; // An ArrayInstance subclass can use this to fill the vector lazily.
void* lazyCreationData; // An JSArray subclass can use this to fill the vector lazily.
JSValue* m_vector[1];
};
......@@ -54,7 +54,7 @@ static const unsigned maxArrayIndex = 0xFFFFFFFEU;
#define sparseArrayCutoff 10000U
static const unsigned minDensityMultiplier = 8;
const ClassInfo ArrayInstance::info = {"Array", 0, 0, 0};
const ClassInfo JSArray::info = {"Array", 0, 0, 0};
static inline size_t storageSize(unsigned vectorLength)
{
......@@ -73,13 +73,13 @@ static inline bool isDenseEnoughForVector(unsigned length, unsigned numValues)
#if !CHECK_ARRAY_CONSISTENCY
inline void ArrayInstance::checkConsistency(ConsistencyCheckType)
inline void JSArray::checkConsistency(ConsistencyCheckType)
{
}
#endif
ArrayInstance::ArrayInstance(JSObject* prototype, unsigned initialLength)
JSArray::JSArray(JSObject* prototype, unsigned initialLength)
: JSObject(prototype)
{
unsigned initialCapacity = min(initialLength, sparseArrayCutoff);
......@@ -93,7 +93,7 @@ ArrayInstance::ArrayInstance(JSObject* prototype, unsigned initialLength)
checkConsistency();
}
ArrayInstance::ArrayInstance(JSObject* prototype, const List& list)
JSArray::JSArray(JSObject* prototype, const List& list)
: JSObject(prototype)
{
unsigned length = list.size();
......@@ -119,7 +119,7 @@ ArrayInstance::ArrayInstance(JSObject* prototype, const List& list)
checkConsistency();
}
ArrayInstance::~ArrayInstance()
JSArray::~JSArray()
{
checkConsistency(DestructorConsistencyCheck);
......@@ -127,7 +127,7 @@ ArrayInstance::~ArrayInstance()
fastFree(m_storage);
}
JSValue* ArrayInstance::getItem(unsigned i) const
JSValue* JSArray::getItem(unsigned i) const
{
ASSERT(i <= maxArrayIndex);
......@@ -146,12 +146,12 @@ JSValue* ArrayInstance::getItem(unsigned i) const
return value ? value : jsUndefined();
}
JSValue* ArrayInstance::lengthGetter(ExecState*, const Identifier&, const PropertySlot& slot)
JSValue* JSArray::lengthGetter(ExecState*, const Identifier&, const PropertySlot& slot)
{
return jsNumber(static_cast<ArrayInstance*>(slot.slotBase())->m_length);
return jsNumber(static_cast<JSArray*>(slot.slotBase())->m_length);
}
ALWAYS_INLINE bool ArrayInstance::inlineGetOwnPropertySlot(ExecState* exec, unsigned i, PropertySlot& slot)
ALWAYS_INLINE bool JSArray::inlineGetOwnPropertySlot(ExecState* exec, unsigned i, PropertySlot& slot)
{
ArrayStorage* storage = m_storage;
......@@ -180,7 +180,7 @@ ALWAYS_INLINE bool ArrayInstance::inlineGetOwnPropertySlot(ExecState* exec, unsi
return false;
}
bool ArrayInstance::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
bool JSArray::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
if (propertyName == exec->propertyNames().length) {
slot.setCustom(this, lengthGetter);
......@@ -195,13 +195,13 @@ bool ArrayInstance::getOwnPropertySlot(ExecState* exec, const Identifier& proper
return JSObject::getOwnPropertySlot(exec, propertyName, slot);
}
bool ArrayInstance::getOwnPropertySlot(ExecState* exec, unsigned i, PropertySlot& slot)
bool JSArray::getOwnPropertySlot(ExecState* exec, unsigned i, PropertySlot& slot)
{
return inlineGetOwnPropertySlot(exec, i, slot);
}
// ECMA 15.4.5.1
void ArrayInstance::put(ExecState* exec, const Identifier& propertyName, JSValue* value)
void JSArray::put(ExecState* exec, const Identifier& propertyName, JSValue* value)
{
bool isArrayIndex;
unsigned i = propertyName.toArrayIndex(&isArrayIndex);
......@@ -223,7 +223,7 @@ void ArrayInstance::put(ExecState* exec, const Identifier& propertyName, JSValue
JSObject::put(exec, propertyName, value);
}
void ArrayInstance::put(ExecState* exec, unsigned i, JSValue* value)
void JSArray::put(ExecState* exec, unsigned i, JSValue* value)
{
checkConsistency();
......@@ -318,7 +318,7 @@ void ArrayInstance::put(ExecState* exec, unsigned i, JSValue* value)
checkConsistency();
}
bool ArrayInstance::deleteProperty(ExecState* exec, const Identifier& propertyName)
bool JSArray::deleteProperty(ExecState* exec, const Identifier& propertyName)
{
bool isArrayIndex;
unsigned i = propertyName.toArrayIndex(&isArrayIndex);
......@@ -331,7 +331,7 @@ bool ArrayInstance::deleteProperty(ExecState* exec, const Identifier& propertyNa
return JSObject::deleteProperty(exec, propertyName);
}
bool ArrayInstance::deleteProperty(ExecState* exec, unsigned i)
bool JSArray::deleteProperty(ExecState* exec, unsigned i)
{
checkConsistency();
......@@ -365,7 +365,7 @@ bool ArrayInstance::deleteProperty(ExecState* exec, unsigned i)
return false;
}
void ArrayInstance::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
void JSArray::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
{
// FIXME: Filling PropertyNameArray with an identifier for every integer
// is incredibly inefficient for large arrays. We need a different approach,
......@@ -388,7 +388,7 @@ void ArrayInstance::getPropertyNames(ExecState* exec, PropertyNameArray& propert
JSObject::getPropertyNames(exec, propertyNames);
}
bool ArrayInstance::increaseVectorLength(unsigned newLength)
bool JSArray::increaseVectorLength(unsigned newLength)
{
// This function leaves the array in an internally inconsistent state, because it does not move any values from sparse value map
// to the vector. Callers have to account for that, because they can do it more efficiently.
......@@ -412,7 +412,7 @@ bool ArrayInstance::increaseVectorLength(unsigned newLength)
return true;
}
void ArrayInstance::setLength(unsigned newLength)
void JSArray::setLength(unsigned newLength)
{
checkConsistency();
......@@ -448,7 +448,7 @@ void ArrayInstance::setLength(unsigned newLength)
checkConsistency();
}
void ArrayInstance::mark()
void JSArray::mark()
{
JSObject::mark();
......@@ -480,7 +480,7 @@ static int compareByStringPairForQSort(const void* a, const void* b)
return compare(va->second, vb->second);
}
void ArrayInstance::sort(ExecState* exec)
void JSArray::sort(ExecState* exec)
{
unsigned lengthNotIncludingUndefined = compactForSorting();
if (m_storage->m_sparseValueMap) {
......@@ -605,7 +605,7 @@ struct AVLTreeAbstractorForArrayCompare {
static handle null() { return 0x7FFFFFFF; }
};
void ArrayInstance::sort(ExecState* exec, JSObject* compareFunction)
void JSArray::sort(ExecState* exec, JSObject* compareFunction)
{
checkConsistency();
......@@ -707,7 +707,7 @@ void ArrayInstance::sort(ExecState* exec, JSObject* compareFunction)
checkConsistency(SortConsistencyCheck);
}
unsigned ArrayInstance::compactForSorting()
unsigned JSArray::compactForSorting()
{
checkConsistency();
......@@ -762,19 +762,19 @@ unsigned ArrayInstance::compactForSorting()
return numDefined;
}
void* ArrayInstance::lazyCreationData()