Lines Matching full:bindings
187 * bindings/qt/qt_instance.cpp:
188 (KJS::Bindings::QtInstance::invokeMethod):
189 * bindings/qt/qt_runtime.cpp:
190 (KJS::Bindings::convertValueToQVariant):
191 (KJS::Bindings::convertQVariantToValue):
299 * bindings/testbindings.cpp:
803 * bindings/c/c_instance.cpp:
804 (KJS::Bindings::CInstance::invokeMethod):
805 (KJS::Bindings::CInstance::invokeDefaultMethod):
855 * bindings/NP_jsobject.cpp: #ifdef out this for 64-bit on Mac OS X
856 * bindings/NP_jsobject.h: Ditto.
857 * bindings/c/c_class.cpp: Ditto.
858 * bindings/c/c_class.h: Ditto.
859 * bindings/c/c_instance.cpp: Ditto.
860 * bindings/c/c_instance.h: Ditto.
861 * bindings/c/c_runtime.cpp: Ditto.
862 * bindings/c/c_runtime.h: Ditto.
863 * bindings/c/c_utility.cpp: Ditto.
864 * bindings/c/c_utility.h: Ditto.
865 * bindings/npapi.h: Ditto.
866 * bindings/npruntime.cpp: Ditto.
867 * bindings/npruntime.h: Ditto.
868 * bindings/npruntime_impl.h: Ditto.
869 * bindings/npruntime_priv.h: Ditto.
870 * bindings/runtime.cpp:
871 (KJS::Bindings::Instance::createBindingForLanguageInstance):
1242 * bindings/qt/qt_instance.cpp:
1243 (KJS::Bindings::QtInstance::stringValue):
1370 * bindings/jni/jni_jsobject.cpp:
1428 * bindings/objc/objc_utility.mm: (KJS::Bindings::convertObjcValueToValue):
1649 * bindings/jni/jni_utility.cpp:
1650 (KJS::Bindings::getJNIEnv): Type-pun via a union instead of a pointer cast.
1698 * bindings/objc/objc_utility.mm:
1699 (KJS::Bindings::convertValueToObjcValue):
1818 * bindings/runtime_object.cpp:
1833 CrashTracer: [USER] 75 crashes in Safari at com.apple.JavaScriptCore: KJS::Bindings::CInstance::~CInstance + 40
1839 * bindings/c/c_utility.cpp:
1840 (KJS::Bindings::convertValueToNPVariant):
1841 * bindings/jni/jni_jsobject.cpp:
1843 * bindings/jni/jni_utility.cpp:
1844 (KJS::Bindings::convertValueToJValue):
1845 * bindings/objc/objc_runtime.mm:
1847 * bindings/runtime_array.cpp:
1849 * bindings/runtime_array.h:
1851 * bindings/runtime_method.cpp:
1853 * bindings/runtime_method.h:
1854 * bindings/runtime_object.cpp:
1869 * bindings/runtime_object.h:
1870 * bindings/runtime_root.cpp:
1871 (KJS::Bindings::RootObject::invalidate):
1872 (KJS::Bindings::RootObject::addRuntimeObject):
1873 (KJS::Bindings::RootObject::removeRuntimeObject):
1874 * bindings/runtime_root.h:
1888 * bindings/NP_jsobject.cpp:
1892 * bindings/jni/jni_jsobject.cpp:
1939 Make sure that bindings instances get correct root objects.
1942 * bindings/NP_jsobject.cpp:
1947 * bindings/c/c_instance.cpp:
1948 (KJS::Bindings::CInstance::invokeMethod):
1949 (KJS::Bindings::CInstance::invokeDefaultMethod):
1950 * bindings/c/c_runtime.cpp:
1951 (KJS::Bindings::CField::valueFromInstance):
1952 * bindings/c/c_utility.cpp:
1953 (KJS::Bindings::convertNPVariantToValue):
1954 * bindings/c/c_utility.h:
1955 * bindings/objc/objc_instance.mm:
1959 * bindings/objc/objc_runtime.mm:
1962 * bindings/objc/objc_utility.h:
1963 * bindings/objc/objc_utility.mm:
1964 (KJS::Bindings::convertObjcValueToValue):
1965 * bindings/runtime.h:
1977 * bindings/qt/qt_instance.cpp:
1978 (KJS::Bindings::QtInstance::invokeMethod):
1987 * bindings/c/c_runtime.h:
1988 (KJS::Bindings::CField::CField):
1989 * bindings/jni/jni_runtime.h:
1990 * bindings/objc/objc_runtime.h:
1991 * bindings/objc/objc_runtime.mm:
1992 * bindings/qt/qt_runtime.h:
1993 * bindings/runtime.h:
1994 * bindings/runtime_method.cpp:
2000 * bindings/qt/qt_class.cpp:
2001 (KJS::Bindings::QtClass::methodsNamed):
2002 * bindings/qt/qt_instance.cpp:
2003 (KJS::Bindings::QtInstance::invokeMethod):
2011 * bindings/c/c_class.cpp:
2012 (KJS::Bindings::CClass::methodsNamed):
2013 * bindings/c/c_instance.cpp:
2014 (KJS::Bindings::CInstance::invokeMethod):
2015 * bindings/jni/jni_class.cpp:
2018 * bindings/jni/jni_instance.cpp:
2020 * bindings/objc/objc_class.mm:
2021 (KJS::Bindings::ObjcClass::methodsNamed):
2022 * bindings/objc/objc_instance.mm:
2024 * bindings/objc/objc_runtime.mm:
2026 * bindings/runtime.cpp:
2027 * bindings/runtime.h:
2028 * bindings/runtime_method.cpp:
2031 * bindings/runtime_object.cpp:
2041 * bindings/runtime_method.cpp:
2045 * bindings/runtime_method.h:
2053 * bindings/jni/jni_instance.cpp:
2055 * bindings/jni/jni_runtime.cpp:
2057 * bindings/jni/jni_runtime.h:
2058 (KJS::Bindings::JavaParameter::JavaParameter):
2059 (KJS::Bindings::JavaParameter::~JavaParameter):
2060 (KJS::Bindings::JavaParameter::type):
2061 (KJS::Bindings::JavaMethod::parameterAt):
2062 (KJS::Bindings::JavaMethod::numParameters):
2063 * bindings/runtime.h:
2069 * bindings/qt/qt_class.h:
2075 * bindings/objc/objc_runtime.h:
2083 * bindings/c/c_class.h:
2084 * bindings/jni/jni_class.cpp:
2087 * bindings/jni/jni_class.h:
2088 * bindings/jni/jni_runtime.cpp:
2089 * bindings/jni/jni_runtime.h:
2090 * bindings/objc/objc_class.h:
2091 * bindings/runtime.h:
2097 Use RetainPtr throughout the bindings code.
2099 * bindings/objc/objc_class.h:
2100 * bindings/objc/objc_class.mm:
2101 (KJS::Bindings::ObjcClass::ObjcClass):
2102 (KJS::Bindings::ObjcClass::methodsNamed):
2103 (KJS::Bindings::ObjcClass::fieldNamed):
2104 * bindings/objc/objc_instance.h:
2105 (KJS::Bindings::ObjcInstance::getObject):
2106 * bindings/objc/objc_instance.mm:
2113 * bindings/objc/objc_runtime.h:
2114 (KJS::Bindings::ObjcMethod::setJavaScriptName):
2115 (KJS::Bindings::ObjcMethod::javaScriptName):
2116 (KJS::Bindings::ObjcArray::getObjcArray):
2117 * bindings/objc/objc_runtime.mm:
2131 * bindings/objc/objc_runtime.h:
2132 * bindings/runtime_object.h:
2142 * bindings/c/c_class.h:
2143 * bindings/jni/jni_class.h:
2144 * bindings/jni/jni_instance.h:
2145 * bindings/jni/jni_runtime.cpp:
2147 * bindings/jni/jni_runtime.h:
2148 * bindings/objc/objc_class.h:
2149 * bindings/objc/objc_runtime.h:
2150 * bindings/objc/objc_runtime.mm:
2152 * bindings/objc/objc_utility.mm:
2153 (KJS::Bindings::convertObjcValueToValue):
2154 * bindings/runtime.cpp:
2155 (KJS::Bindings::Array::Array):
2156 (KJS::Bindings::Array::~Array):
2157 * bindings/runtime.h:
2158 * bindings/runtime_object.h:
2159 * bindings/runtime_root.h:
2165 * bindings/qt/qt_instance.cpp:
2166 (KJS::Bindings::QtInstance::QtInstance):
2167 bindings/qt/qt_instance.h:
2175 * bindings/c/c_instance.cpp:
2176 (KJS::Bindings::CInstance::CInstance):
2177 * bindings/c/c_instance.h:
2178 * bindings/jni/jni_instance.cpp:
2180 * bindings/jni/jni_instance.h:
2181 * bindings/jni/jni_jsobject.cpp:
2183 * bindings/objc/objc_instance.h:
2184 * bindings/objc/objc_instance.mm:
2186 * bindings/runtime.cpp:
2187 (KJS::Bindings::Instance::Instance):
2188 (KJS::Bindings::Instance::createBindingForLanguageInstance):
2189 * bindings/runtime.h:
2198 * bindings/jni/jni_instance.h:
2199 * bindings/jni/jni_runtime.cpp:
2203 * bindings/jni/jni_runtime.h:
2204 (KJS::Bindings::JavaField::JavaField):
2205 (KJS::Bindings::JavaField::operator=):
2332 Fix crash in Qt JavaScript bindings when the arguments used on the Qt side are not
2335 * bindings/qt/qt_instance.cpp:
2336 (KJS::Bindings::QtInstance::invokeMethod):
2337 * bindings/qt/qt_runtime.cpp:
2395 Extend the QObject JavaScript bindings to work for slots with
2398 * bindings/qt/qt_instance.cpp:
2399 (KJS::Bindings::QtInstance::invokeMethod):
2554 * bindings/testbindings.pro: Place Qt into the qt-port scope
2590 * bindings/npruntime.h:
3031 * bindings/runtime_array.cpp:
3036 * bindings/runtime_array.h:
3044 * bindings/runtime_method.cpp:
3048 * bindings/runtime_method.h:
3241 * bindings/npapi.h:
3355 REGRESSION: Crash in KJS::Bindings::convertValueToNPVariant
3357 * bindings/NP_jsobject.cpp:
3366 * bindings/NP_jsobject.cpp:
3376 * bindings/NP_jsobject.cpp:
3378 * bindings/c/c_instance.cpp:
3379 (KJS::Bindings::CInstance::getPropertyNames):
3380 * bindings/c/c_instance.h:
3381 * bindings/npapi.h:
3382 * bindings/npruntime.h:
3383 * bindings/npruntime_impl.h:
3384 * bindings/runtime.h:
3385 (KJS::Bindings::Instance::getPropertyNames):
3386 * bindings/runtime_object.cpp:
3388 * bindings/runtime_object.h:
3412 * bindings/NP_jsobject.cpp:
3433 * bindings/jni/jni_objc.mm:
3434 (KJS::Bindings::dispatchJNICall):
3435 * bindings/jni/jni_utility.h:
3617 * bindings/jni/jni_runtime.cpp:
3688 * bindings/runtime_array.cpp:
3691 * bindings/runtime_method.cpp:
3796 * bindings/c/c_utility.cpp:
3797 (KJS::Bindings::convertUTF8ToUTF16):
3827 Fixed <rdar://problem/5064964> Repro ASSERT failure in JS Bindings when
3830 Unfortunately, the bindings depend on UString and Identifier as string
3836 the Java bindings, like math, is hard.
3838 * bindings/runtime.h: Made Noncopyable, just to be sure.
3840 * bindings/c/c_class.cpp:
3841 (KJS::Bindings::CClass::~CClass): Acquire the JSLock and explicitly clear the keys
3843 (KJS::Bindings::CClass::methodsNamed): Also acquire the JSLock when adding
3845 (KJS::Bindings::CClass::fieldNamed): ditto.
3847 * bindings/c/c_utility.cpp: Removed dead function.
3848 (KJS::Bindings::convertValueToNPVariant): Acquire the JSLock because doing
3851 (KJS::Bindings::convertNPVariantToValue): ditto
3852 * bindings/c/c_utility.h:
3854 * bindings/jni/jni_class.cpp: Same deal as c_class.cpp.
3858 * bindings/jni/jni_instance.cpp: Same deal as c_utility.cpp.
3860 * bindings/jni/jni_jsobject.cpp:
3863 * bindings/jni/jni_runtime.cpp:
3872 * bindings/jni/jni_runtime.h: Nixed dead code in JavaMethod.
3873 (KJS::Bindings::JavaString::JavaString): Hold a UString::Rep instead of
3875 (KJS::Bindings::JavaString::_commonInit):
3876 (KJS::Bindings::JavaString::~JavaString):
3877 (KJS::Bindings::JavaString::UTF8String):
3878 (KJS::Bindings::JavaString::uchars):
3879 (KJS::Bindings::JavaString::length):
3880 (KJS::Bindings::JavaString::ustring):
3882 * bindings/jni/jni_utility.cpp:
3883 (KJS::Bindings::convertArrayInstanceToJavaArray): Made this static, so
3885 (KJS::Bindings::convertValueToJValue): Acquire the JSLock because doing
3889 * bindings/objc/objc_runtime.h: Nixed some dead code.
3890 * bindings/objc/objc_utility.mm:
3891 (KJS::Bindings::convertNSStringToString): Same drill as above.
4135 * bindings/objc/objc_instance.mm: Fixed a bug where a nested begin() call
4139 * bindings/runtime_object.cpp:
4146 * bindings/objc/objc_instance.h: Removed overrides of setVAlueOfField and
4150 * bindings/runtime.h: Inherit from Noncopyable instead of rolling our own.
4151 * bindings/c/c_instance.h: ditto
4174 * bindings/c/c_instance.cpp: Drop all locks when calling out to C.
4175 (KJS::Bindings::CInstance::invokeMethod):
4176 (KJS::Bindings::CInstance::invokeDefaultMethod):
4177 * bindings/c/c_runtime.cpp: Drop all locks when calling out to C.
4178 (KJS::Bindings::CField::valueFromInstance):
4179 (KJS::Bindings::CField::setValueToInstance):
4180 * bindings/jni/jni_objc.mm:
4181 (KJS::Bindings::dispatchJNICall): Drop all locks when calling out to Java.
4183 * bindings/objc/objc_instance.mm: The changes here are to accomodate the
4194 * bindings/objc/objc_runtime.mm: Same as above, except I didn't want to
4198 * bindings/objc/objc_utility.mm: Supporting changes mentioned above.
4199 (KJS::Bindings::convertValueToObjcValue):
4200 (KJS::Bindings::convertObjcValueToValue):
4365 * bindings/npruntime.cpp:
4368 * bindings/objc/objc_instance.h:
4369 * bindings/objc/objc_instance.mm:
4614 * bindings/testbindings.cpp:
4674 * bindings/jni/jni_utility.h: added new type for array, array_type
4675 * bindings/jni/jni_runtime.cpp: add support for new array type
4680 * bindings/jni/jni_utility.cpp: add support for new array type
4681 (KJS::Bindings::callJNIMethod):
4682 (KJS::Bindings::callJNIStaticMethod):
4683 (KJS::Bindings::callJNIMethodIDA):
4684 (KJS::Bindings::JNITypeFromClassName):
4685 (KJS::Bindings::signatureFromPrimitiveType):
4686 (KJS::Bindings::JNITypeFromPrimitiveType):
4687 (KJS::Bindings::getJNIField):
4688 (KJS::Bindings::convertArrayInstanceToJavaArray): new method
4690 (KJS::Bindings::convertValueToJValue):
5017 * bindings/objc/objc_runtime.mm:
5019 * bindings/runtime_method.cpp:
5021 * bindings/runtime_object.cpp:
5104 * bindings/qt/qt_instance.h:
5118 RootObject clients. All Bindings clients are RootObjects clients, including
5133 completely rewriting the bindings code, and possibly part of the Java
5141 * bindings/NP_jsobject.cpp:
5155 * bindings/runtime_root.cpp:
5169 * bindings/runtime_root.h: Added ref-counting support to RootObject, with
5172 * bindings/c/c_utility.cpp:
5173 (KJS::Bindings::convertValueToNPVariant): If we can't find a valid RootObject,
5176 * bindings/jni/jni_instance.cpp:
5181 * bindings/jni/jni_instance.h: Removed private no-arg constructor. Having
5184 * bindings/jni/jni_jsobject.cpp:
5200 * bindings/jni/jni_runtime.cpp:
5204 * bindings/objc/objc_runtime.mm: Added WebUndefined protocol. Previous use
5210 * bindings/objc/objc_utility.mm:
5211 (KJS::Bindings::convertValueToObjcValue): If we can't find a valid RootObject,
5432 (KJS::Bindings::getRootObjectMap): Changed to take advantage of built-in
5435 (KJS::Bindings::getProtectCountSet):
5436 (KJS::Bindings::destroyProtectCountSet): Added. Helps encapsulate the fact
5440 (KJS::Bindings::getRootObject): Removed spurious NULL check.
5442 (KJS::Bindings::findReferenceSet): Renamed. Changed to use getRootObject()
5445 (KJS::Bindings::addNativeReference): Changed to use an early return instead
5447 (KJS::Bindings::removeNativeReference): Ditto.
5463 Also removed unnecessary use of "Bindings::" prefix.
5466 * bindings/jni/jni_jsobject.cpp:
5470 * bindings/runtime_root.cpp:
5471 (KJS::Bindings::RootObject::setCreateRootObject):
5472 * bindings/runtime_root.h:
5473 (KJS::Bindings::RootObject::createRootObject):
5597 JNI bindings should be available to non-Mac platforms that have JNI
5602 * bindings/jni/jni_instance.h:
5604 * bindings/jni/jni_utility.cpp:
5605 (KJS::Bindings::setJavaVM):
5606 * bindings/jni/jni_utility.h:
5608 * bindings/runtime.cpp:
5609 (KJS::Bindings::Instance::createBindingForLanguageInstance):
5785 * bindings/c/c_utility.cpp:
5786 (KJS::Bindings::convertValueToNPVariant): Changed to use new constructor.
5788 * bindings/jni/jni_jsobject.cpp:
5793 * bindings/objc/objc_runtime.mm:
5796 * bindings/runtime_root.cpp:
5797 (KJS::Bindings::RootObject::destroy): "removeAllNativeReferences" => "destroy"
5800 * bindings/runtime_root.h: Changed Interpreter* to RefPtr<Interpreter>
5803 (KJS::Bindings::RootObject::RootObject): Changed constructor to take an
5808 (KJS::Bindings::RootObject::nativeHandle): "_nativeHandle" => "m_nativeHandle"
5809 (KJS::Bindings::RootObject::interpreter): "_interpreter" => "m_interpreter"
5815 * bindings/qt/qt_instance.cpp: build
5816 (KJS::Bindings::QtInstance::QtInstance):
5826 * bindings/objc/objc_runtime.h:
5827 * bindings/objc/objc_runtime.mm:
5828 (KJS::Bindings::webScriptObjectClass):
5829 (KJS::Bindings::webUndefinedClass):
5831 * bindings/objc/objc_utility.mm:
5832 (KJS::Bindings::convertValueToObjcValue):
5833 (KJS::Bindings::convertObjcValueToValue):
5848 * bindings/runtime.cpp: Removed createLanguageInstanceForValue
5851 * bindings/runtime_root.cpp: Put everything in the KJS::Bindings namespace,
5852 removing the KJS::Bindings prefix from individual functions and datatypes.
5855 * bindings/c/c_utility.cpp:
5856 (KJS::Bindings::convertValueToNPVariant): Replaced use of createLanguageInstanceForValue
5860 * bindings/objc/objc_utility.h:
5861 * bindings/objc/objc_utility.mm:
5862 (KJS::Bindings::convertValueToObjcValue): Removed. Its only purpose was
5878 crash on quit in _NPN_ReleaseObject from KJS::Bindings::CInstance::~CInstance
5880 * bindings/c/c_instance.cpp:
5881 * bindings/c/c_instance.h: Removed unused copy constructor and assignment
5887 * bindings/npruntime.cpp: Sorted #includes.
5947 * bindings/qt/qt_class.cpp: Added.
5948 (KJS::Bindings::QtClass::QtClass):
5949 (KJS::Bindings::QtClass::~QtClass):
5950 (KJS::Bindings::QtClass::classForObject):
5951 (KJS::Bindings::QtClass::name):
5952 (KJS::Bindings::QtClass::methodsNamed):
5953 (KJS::Bindings::QtClass::fieldNamed):
5954 * bindings/qt/qt_class.h: Added.
5955 (KJS::Bindings::QtClass::constructorAt):
5956 (KJS::Bindings::QtClass::numConstructors):
5957 * bindings/qt/qt_instance.cpp: Added.
5958 (KJS::Bindings::QtInstance::QtInstance):
5959 (KJS::Bindings::QtInstance::~QtInstance):
5960 (KJS::Bindings::QtInstance::operator=):
5961 (KJS::Bindings::QtInstance::getClass):
5962 (KJS::Bindings::QtInstance::begin):
5963 (KJS::Bindings::QtInstance::end):
5964 (KJS::Bindings::QtInstance::implementsCall):
5965 (KJS::Bindings::QtInstance::invokeMethod):
5966 (KJS::Bindings::QtInstance::invokeDefaultMethod):
5967 (KJS::Bindings::QtInstance::defaultValue):
5968 (KJS::Bindings::QtInstance::stringValue):
5969 (KJS::Bindings::QtInstance::numberValue):
5970 (KJS::Bindings::QtInstance::booleanValue):
5971 (KJS::Bindings::QtInstance::valueOf):
5972 * bindings/qt/qt_instance.h: Added.
5973 (KJS::Bindings::QtInstance::getObject):
5974 * bindings/qt/qt_runtime.cpp: Added.
5975 (KJS::Bindings::convertValueToQVariant):
5976 (KJS::Bindings::convertQVariantToValue):
5977 (KJS::Bindings::QtField::name):
5978 (KJS::Bindings::QtField::valueFromInstance):
5979 (KJS::Bindings::QtField::setValueToInstance):
5980 * bindings/qt/qt_runtime.h: Added.
5981 (KJS::Bindings::QtField::QtField):
5982 (KJS::Bindings::QtField::type):
5983 (KJS::Bindings::QtMethod::QtMethod):
5984 (KJS::Bindings::QtMethod::name):
5985 (KJS::Bindings::QtMethod::numParameters):
5986 * bindings/runtime.cpp:
5987 (KJS::Bindings::Instance::createBindingForLanguageInstance):
5988 * bindings/runtime.h:
5989 (KJS::Bindings::Instance::):
5990 * bindings/testbindings.pro: Added.
5991 * bindings/testqtbindings.cpp: Added.
6180 * bindings/c/c_utility.cpp:
6181 (KJS::Bindings::convertUTF8ToUTF16):
6592 * bindings/c/c_utility.cpp:
6593 (KJS::Bindings::convertUTF8ToUTF16):
6594 (KJS::Bindings::coerceValueToNPVariantStringType):
6595 (KJS::Bindings::convertValueToNPVariant):
7568 * bindings/objc/objc_utility.mm:
7569 (KJS::Bindings::objcValueTypeForType): Commented out undefined symbols
7579 * bindings/objc/objc_instance.mm:
7581 * bindings/objc/objc_utility.h:
7582 (KJS::Bindings::):
7583 * bindings/objc/objc_utility.mm:
7584 (KJS::Bindings::convertValueToObjcValue):
7585 (KJS::Bindings
7586 (KJS::Bindings::objcValueTypeForType):
7594 * bindings/objc/objc_class.mm:
7595 (KJS::Bindings::ObjcClass::methodsNamed): use sel_getName instead of a char* cast.
7596 * bindings/objc/objc_runtime.mm:
7653 * bindings/c/c_instance.cpp:
7765 Make the bindings compile without CoreFoundation.
7768 * bindings/c/c_instance.cpp:
7769 * bindings/c/c_utility.cpp:
7770 (KJS::Bindings::convertUTF8ToUTF16):
7771 * bindings/npapi.h:
7772 * bindings/runtime.cpp:
7773 (KJS::Bindings::Instance::createBindingForLanguageInstance):
7774 (KJS::Bindings::Instance::createLanguageInstanceForValue):
7775 * bindings/runtime_root.cpp:
7776 * bindings/runtime_root.h:
7788 * bindings/NP_jsobject.cpp:
7789 * bindings/c/c_utility.cpp:
7790 (KJS::Bindings::identifierFromNPIdentifier):
7791 * bindings/c/c_utility.h:
7792 * bindings/jni/jni_jsobject.cpp:
7794 * bindings/npruntime.cpp:
7799 * bindings/runtime_root.cpp:
7802 (KJS::Bindings::findReferenceSet):
7803 (KJS::Bindings::rootForImp):
7804 (KJS::Bindings::rootForInterpreter):
7805 (KJS::Bindings::addNativeReference):
7806 (KJS::Bindings::removeNativeReference):
7808 * bindings/runtime_root.h:
7814 Switch over the NPAPI and Java bindings to using HashMaps instead of dictionaries.
7817 * bindings/c/c_class.cpp:
7818 (KJS::Bindings::CClass::CClass):
7819 (KJS::Bindings::CClass::~CClass):
7820 (KJS::Bindings::CClass::classForIsA):
7821 (KJS::Bindings::CClass::methodsNamed):
7822 (KJS::Bindings::CClass::fieldNamed):
7823 * bindings/c/c_class.h:
7824 * bindings/jni/jni_class.cpp:
7829 * bindings/jni/jni_class.h:
7830 * bindings/objc/objc_class.h:
7831 * bindings/objc/objc_class.mm:
7832 (KJS::Bindings::deleteMethod):
7833 (KJS::Bindings::deleteField):
7834 (KJS::Bindings::):
7835 (KJS::Bindings::ObjcClass::methodsNamed):
7836 (KJS::Bindings::ObjcClass::fieldNamed):
7837 * bindings/runtime.cpp:
7838 * bindings/runtime.h:
7839 * bindings/runtime_object.cpp:
7912 * bindings/npapi.h:
8056 * bindings/jni/jni_jsobject.cpp:
8059 * bindings/npapi.h:
8060 * bindings/objc/objc_class.mm:
8061 (KJS::Bindings::ObjcClass::methodsNamed):
8062 (KJS::Bindings::ObjcClass::fieldNamed):
8063 * bindings/objc/objc_instance.mm:
8065 * bindings/objc/objc_runtime.mm:
8107 * bindings/NP_jsobject.cpp:
8108 * bindings/c/c_utility.cpp:
8109 * bindings/jni/jni_runtime.cpp:
8110 * bindings/jni/jni_utility.cpp:
8111 * bindings/objc/objc_utility.mm:
8112 * bindings/runtime.cpp:
8113 * bindings/runtime_method.cpp:
8114 * bindings/testbindings.cpp:
8115 * bindings/testbindings.mm:
8158 * bindings/jni/jni_class.cpp:
8160 * bindings/jni/jni_class.h:
8161 * bindings/jni/jni_instance.cpp:
8164 * bindings/jni/jni_objc.mm:
8165 (KJS::Bindings::dispatchJNICall):
8166 * bindings/jni/jni_runtime.cpp:
8169 * bindings/jni/jni_runtime.h:
8170 * bindings/jni/jni_utility.h:
8171 * bindings/objc/objc_instance.h:
8172 * bindings/runtime_array.h:
8194 * bindings/objc/objc_utility.mm: (KJS::Bindings::convertObjcValueToValue):
8251 * bindings/jni/jni_jsobject.cpp: On 64bit systems, jint is a long, not an
8335 * bindings/npapi.h:
8406 * bindings/objc/WebScriptObject.h: Replaced.
8407 * bindings/objc/WebScriptObject.mm: Removed.
8408 * bindings/objc/WebScriptObjectPrivate.h: Removed.
8409 * bindings/objc/objc_class.h:
8410 * bindings/objc/objc_instance.h:
8411 * bindings/objc/objc_instance.mm:
8413 * bindings/objc/objc_runtime.h:
8414 * bindings/objc/objc_runtime.mm:
8416 * bindings/objc/objc_utility.mm:
8417 (KJS::Bindings::convertValueToObjcValue):
8418 (KJS::Bindings::convertObjcValueToValue):
8419 (KJS::Bindings::createObjcInstanceForValue):
9372 * bindings/npapi.h:
9385 * bindings/jni/jni_utility.cpp:
9386 (KJS::Bindings::KJS_GetCreatedJavaVMs):
9387 * bindings
9388 * bindings/softlinking.h: Removed.
9811 Fixes hang in the bindings section of layout tests seen on the
9822 * bindings/npruntime.cpp: Rolled out last change.
9830 * bindings/npruntime.cpp:
9835 * bindings/npruntime.h:
10050 * bindings/objc/objc_class.h:
10051 * bindings/objc/objc_class.mm:
10052 (KJS::Bindings::ObjcClass::~ObjcClass):
10053 (KJS::Bindings::_createClassesByIsAIfNecessary):
10054 (KJS::Bindings::ObjcClass::classForIsA):
10055 (KJS::Bindings::ObjcClass::name):
10056 (KJS::Bindings::ObjcClass::methodsNamed):
10057 (KJS::Bindings::ObjcClass::fieldNamed):
10058 (KJS::Bindings::ObjcClass::fallbackObject):
10059 * bindings/objc/objc_header.h:
10060 * bindings/objc/objc_instance.h:
10061 * bindings/objc/objc_instance.mm:
10080 * bindings/objc/objc_runtime.h:
10081 * bindings/objc/objc_runtime.mm:
10105 * bindings/jni/jni_objc.mm:
10106 (KJS::Bindings::dispatchJNICall):
10365 * bindings/npruntime_impl.h:
10403 * bindings/objc/WebScriptObject.h:
10404 * bindings/objc/WebScriptObject.mm:
10547 * bindings/runtime_root.h: Changed "Interpreter.h" to "interpreter.h"
10553 * bindings/objc/WebScriptObject.mm:
10572 * bindings/NP_jsobject.cpp:
10573 * bindings/objc/WebScriptObject.mm:
10575 * bindings/runtime_root.cpp:
10576 * bindings/runtime_root.h:
11026 * bindings/npapi.h:
11076 * bindings/c/c_instance.cpp:
11077 * bindings/objc/WebScriptObject.mm:
11189 * bindings/npapi.h: do not define #pragma options align=mac68k if we are 64-bit
11248 * bindings/npapi.h:
11347 Bug 8389: support for Cocoa bindings - binding an NSTreeController to the WebView's DOM
11353 important because it causes the right behavior to happen with bindings using
11356 * bindings/objc/WebScriptObject.mm:
11447 * bindings/NP_jsobject.cpp:
11448 * bindings/c/c_instance.h:
11449 * bindings/jni/jni_class.h:
11450 * bindings/jni/jni_runtime.h:
11451 * bindings/jni/jni_utility.h:
11452 * bindings/objc/WebScriptObject.mm:
11453 * bindings/objc/WebScriptObjectPrivate.h:
11454 * bindings/objc/objc_class.h:
11455 * bindings/objc/objc_class.mm:
11456 * bindings/objc/objc_instance.h:
11457 * bindings/objc/objc_instance.mm:
11458 * bindings/objc/objc_runtime.mm:
11459 * bindings/objc/objc_utility.mm:
11460 * bindings/runtime.h:
11461 * bindings/runtime_array.cpp:
11462 * bindings/runtime_array.h:
11463 * bindings/runtime_method.cpp:
11464 * bindings/runtime_method.h:
11465 * bindings/runtime_object.cpp:
11466 * bindings/runtime_root.h:
11756 * bindings/jni/jni_utility.cpp:
11757 (KJS::Bindings::getJavaVM): cast jniError to long to prevent format warning
11758 (KJS::Bindings::getJNIEnv): cast jniError to long to prevent format warning
11759 * bindings/runtime_root.cpp:
11760 (KJS::Bindings::addNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
11761 (KJS::Bindings::removeNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
11769 * bindings/objc/WebScriptObject.h: Fixed comment.
11777 * bindings/c/c_utility.cpp:
11778 (KJS::Bindings::convertValueToNPVariant):
11779 * bindings/objc/objc_runtime.mm:
11781 * bindings/objc/objc_utility.mm:
11782 (KJS::Bindings::convertValueToObjcValue):
11848 * bindings/runtime.h:
11849 (KJS::Bindings::Instance::implementsCall):
11852 (KJS::Bindings::Instance::invokeDefaultMethod):
11857 * bindings/runtime_object.cpp:
11862 * bindings/c/c_instance.h:
11863 * bindings/c/c_instance.cpp:
11864 (KJS::Bindings::CInstance::implementsCall):
11867 * bindings/objc/objc_instance.h:
11868 * bindings/objc/objc_instance.mm:
11872 * bindings/jni/jni_instance.h:
11873 * bindings/jni/jni_instance.cpp:
11952 * bindings/npapi.h: added #defines after the #ifndefs
11970 * bindings/jni_jsobject.cpp:
12010 LEAK: method name leaks in KJS::Bindings::CInstance::invokeMethod
12012 * bindings/c/c_utility.h: Remove NPN_UTF16FromString declaration (not implemented).
12013 * bindings/c/c_utility.cpp:
12014 (KJS::Bindings::convertValueToNPVariant): Use DOUBLE_TO_NPVARIANT,
12019 (KJS::Bindings::convertNPVariantToValue): Use NPVARIANT_TO_BOOLEAN,
12022 * bindings/c/c_runtime.h: Removed implementations of CMethod::name and
12024 * bindings/c/c_runtime.cpp:
12025 (KJS::Bindings::CMethod::name): Added. Returns the string from inside the
12027 (KJS::Bindings::CField::name): Added. Returns the string from inside the
12029 (KJS::Bindings::CField::valueFromInstance): Added call to _NPN_ReleaseVariantValue
12031 (KJS::Bindings::CField::setValueToInstance): Added call to _NPN_ReleaseVariantValue
12034 * bindings/c/c_instance.cpp:
12035 (KJS::Bindings::CInstance::invokeMethod): Changed to use Vector for a local
12038 (KJS::Bindings::CInstance::invokeDefaultMethod): Ditto.
12040 * bindings/NP_jsobject.h: Formatting changes only.
12041 * bindings/NP_jsobject.cpp:
12048 * bindings/c/c_class.cpp: Formatting changes only.
12049 * bindings/c/c_class.h: Formatting changes only.
12051 * bindings/npruntime_priv.h: Removed obsolete and now-unused functions:
12061 * bindings/npruntime.cpp:
12179 * bindings/runtime_method.cpp:
12283 * bindings/c/c_utility.cpp:
12284 (KJS::Bindings::convertUTF8ToUTF16): Return a correct string length.
12324 * bindings/c_utility.cpp
12453 * bindings/jni/jni_utility.cpp:
12454 (KJS::Bindings::convertValueToJValue):
12455 * bindings/objc/WebScriptObject.mm:
12456 * bindings/objc/objc_instance.mm:
12458 * bindings/softlinking.h:
12459 * bindings/testbindings.mm:
12603 * bindings/NP_jsobject.cpp:
12612 * bindings/c/c_class.h:
12613 (KJS::Bindings::CClass::constructorAt):
12614 * bindings/c/c_utility.cpp:
12615 (KJS::Bindings::convertNPVariantToValue):
12616 * bindings/jni/jni_class.cpp:
12619 * bindings/jni/jni_instance.cpp:
12621 * bindings/jni/jni_jsobject.cpp:
12622 * bindings/jni/jni_objc.mm:
12623 (-[NSObject KJS::Bindings::]):
12624 * bindings/objc/WebScriptObject.mm:
12629 * bindings/objc/objc_class.h:
12630 (KJS::Bindings::ObjcClass::constructorAt):
12631 * bindings/objc/objc_class.mm:
12632 (KJS::Bindings::ObjcClass::methodsNamed):
12633 (KJS::Bindings::ObjcClass::fallbackObject):
12634 * bindings/objc/objc_instance.mm:
12636 * bindings/objc/objc_runtime.mm:
12642 * bindings/runtime.cpp:
12643 (KJS::Bindings::Instance::createLanguageInstanceForValue):
12644 * bindings/runtime.h:
12645 (KJS::Bindings::Instance::getValueOfUndefinedField):
12646 (KJS::Bindings::Instance::setValueOfUndefinedField):
12647 * bindings/runtime_array.cpp:
12652 * bindings/runtime_method.cpp:
12655 * bindings/runtime_object.cpp:
12664 * bindings/runtime_root.cpp:
12745 * bindings/c/c_utility.cpp: Touch this file, which seems to not have been
12818 * bindings/runtime_method.cpp:
12819 * bindings/runtime_method.h:
13021 Bindings::Instance::deref when leaving page @ gigaom.com
13023 * bindings/c/c_instance.cpp:
13024 (KJS::Bindings::CInstance::~CInstance): Since we cache the class object
13033 * bindings/objc/objc_jsobject.h: Removed empty file.
13034 * bindings/objc/objc_jsobject.mm: Removed empty file.
13043 * bindings/NP_jsobject.cpp:
13061 * bindings/NP_jsobject.h:
13077 KJS::Bindings::ObjcFallbackObjectImp::type()
13082 * bindings/jni/jni_instance.cpp: Made _instance a RefPtr
13085 * bindings/jni/jni_instance.h:
13086 (KJS::Bindings::JObjectWrapper::ref):
13087 (KJS::Bindings::JObjectWrapper::deref):
13088 * bindings/jni/jni_runtime.cpp: Made _array a RefPtr
13091 * bindings/jni/jni_runtime.h:
13092 (KJS::Bindings::JavaArray::operator=):
13093 * bindings/objc/objc_runtime.h:
13097 * bindings/objc/objc_runtime.mm:
13099 * bindings/runtime.cpp:
13100 (KJS::Bindings::Instance::Instance):
13101 (KJS::Bindings::Instance::createBindingForLanguageInstance):
13102 (KJS::Bindings::Instance::createRuntimeObject):
13103 * bindings/runtime.h:
13104 (KJS::Bindings::Instance::ref):
13105 (KJS::Bindings::Instance::deref):
13106 * bindings/runtime_object.cpp:
13114 * bindings/runtime_object.h:
13140 * bindings/c/c_class.cpp:
13146 * bindings/c/c_class.h: Prohibited copying
13147 * bindings/c/c_instance.cpp:
13148 (KJS::Bindings::CInstance::getClass): Changed to use the preferred
13153 * bindings/objc/objc_class.h:
13154 * bindings/objc/objc_class.mm:
13155 (KJS::Bindings::ObjcClass::ObjcClass):
13156 (KJS::Bindings::ObjcClass::~ObjcClass):
13157 (KJS::Bindings::ObjcClass::methodsNamed):
13158 (KJS::Bindings::ObjcClass::fieldNamed):
13159 * bindings/objc/objc_runtime.h:
13160 (KJS::Bindings::ObjcMethod::ObjcMethod): Initialized uninitialized
13162 (KJS::Bindings::ObjcMethod::~ObjcMethod): Removed erroneous ';' from
13164 * bindings/objc/objc_runtime.cpp: Changed to use the preferred
13172 in Safari at com.apple.JavaScriptCore: KJS::Bindings::JavaInstance::
13178 This was a memory leak in the bindings code. The leak was so extreme
13188 * bindings/jni/jni_class.cpp:
13190 * bindings/runtime.cpp: Added definitions for delete callbacks
13191 (KJS::Bindings::deleteMethodList):
13192 (KJS::Bindings::deleteMethod):
13193 (KJS::Bindings::deleteField):
13194 * bindings/runtime.h: Added declarations for delete callbacks
13238 * bindings/objc/objc_instance.mm:
13243 * bindings/objc/objc_runtime.mm:
13286 * bindings/c/c_utility.cpp: (KJS::Bindings::convertUTF8ToUTF16):
13347 * bindings/c/c_instance.cpp:
13348 (KJS::Bindings::CInstance::defaultValue):
13349 * bindings/c/c_instance.h:
13350 * bindings/c/c_utility.cpp:
13351 (KJS::Bindings::convertValueToNPVariant):
13352 * bindings/jni/jni_instance.cpp:
13354 * bindings/jni/jni_instance.h:
13355 * bindings/jni/jni_jsobject.cpp:
13357 * bindings/objc/WebScriptObject.mm:
13361 * bindings/objc/objc_instance.h:
13362 * bindings/objc/objc_instance.mm:
13365 * bindings/objc/objc_runtime.h:
13366 * bindings/objc/objc_runtime.mm:
13369 * bindings/runtime.h:
13370 (KJS::Bindings::Instance::getValueOfUndefinedField):
13371 * bindings/runtime_object.cpp:
13373 bindings/runtime_object.h:
13651 * bindings/c/c_utility.cpp:
13652 (KJS::Bindings::convertUTF8ToUTF16):
13823 * bindingsBindings::convertUTF8ToUTF16):
14133 * bindings/runtime_root.h:
14134 (KJS::Bindings::RootObject::RootObject): No explicit initialization of _imp needed
14136 (KJS::Bindings::RootObject::setRootObjectImp): Remove old code that relied on the
14138 (KJS::Bindings::RootObject::rootObjectImp): Updated since _imp is a ProtectedPtr.
14224 * bindings/npruntime.cpp:
14231 * bindings/npruntime_impl.h:
14720 * bindings/jni/jni_jsobject.cpp:
15144 * bindings/objc/objc_class.mm:
15145 (KJS::Bindings::ObjcClass::methodsNamed):
15146 * bindings/objc/objc_utility.h:
15147 * bindings/objc/objc_utility.mm:
15148 (KJS::Bindings::JSMethodNameToObjcMethodName):
15185 * bindings/NP_jsobject.h: Removed a lot of unnecessary includes
15187 * bindings/jni/jni_jsobject.h: Removed a lot of unnecessary includes
15189 * bindings/objc/objc_runtime.h: Removed an unnecessary include.
15190 * bindings/runtime.h: Removed some unneeded includes. Reformatted.
15191 * bindings/runtime.cpp: Updated to compile with header changes,
15193 * bindings/runtime_object.h: Removed an unnecessary include.
15312 * bindings/runtime_array.cpp:
15315 * bindings/runtime_array.h:
15316 * bindings/runtime_method.cpp:
15318 * bindings/runtime_method.h:
15319 * bindings/runtime_object.cpp:
15323 * bindings/runtime_object.h:
15538 KJS::Bindings::JSObject -> JavaJSObject
15559 * bindings/NP_jsobject.cpp:
15561 * bindings/c/c_instance.cpp:
15562 (KJS::Bindings::CInstance::invokeMethod):
15563 (KJS::Bindings::CInstance::invokeDefaultMethod):
15564 * bindings/c/c_runtime.cpp:
15566 * bindings/c/c_utility.cpp:
15567 (KJS::Bindings::convertNPVariantToValue):
15568 * bindings/jni/jni_instance.cpp:
15571 * bindings/jni/jni_jsobject.cpp:
15574 * bindings/jni/jni_runtime.cpp:
15578 * bindings/objc/WebScriptObject.mm:
15583 * bindings/objc/objc_instance.mm:
15587 * bindings/objc/objc_runtime.mm:
15590 * bindings/objc/objc_utility.mm:
15591 (KJS::Bindings::convertNSStringToString):
15592 (KJS::Bindings::convertObjcValueToValue):
15593 * bindings/runtime.h:
15594 (KJS::Bindings::Class::fallbackObject):
15595 (KJS::Bindings::Instance::getValueOfUndefinedField):
15596 (KJS::Bindings::Instance::valueOf):
15597 * bindings/runtime_array.cpp:
15599 * bindings/runtime_method.cpp:
15923 * bindings/NP_jsobject.cpp:
15932 * bindings/jni/jni_jsobject.cpp:
15942 * bindings/objc/WebScriptObject.mm:
15952 * bindings/runtime.cpp:
15954 * bindings/runtime_root.cpp:
15955 (KJS::Bindings::addNativeReference):
15956 (KJS::Bindings::removeNativeReference):
15958 * bindings/runtime_root.h:
15959 (KJS::Bindings::RootObject::~RootObject):
15960 (KJS::Bindings::RootObject::setRootObjectImp):
15961 * bindings/testbindings.cpp:
15963 * bindings/testbindings.mm:
16127 * bindings/objc/objc_instance.mm:
16161 * bindings/objc/objc_class.mm:
16162 (KJS::Bindings::ObjcClass::fallbackObject):
16635 * bindings/NP_jsobject.cpp:
16636 * bindings/c/c_class.cpp:
16637 * bindings/c/c_instance.cpp:
16638 * bindings/c/c_runtime.cpp:
16639 * bindings/c/c_utility.cpp:
16640 * bindings/jni/jni_class.cpp:
16641 * bindings/jni/jni_instance.cpp:
16642 * bindings/jni/jni_jsobject.cpp:
16643 * bindings/jni/jni_objc.mm:
16644 * bindings/jni/jni_runtime.cpp:
16645 * bindings/jni/jni_utility.cpp:
16646 * bindings/npruntime.cpp:
16647 * bindings/objc/WebScriptObject.mm:
16648 * bindings/objc/objc_class.mm:
16649 * bindings/objc/objc_instance.mm:
16650 * bindings/objc/objc_runtime.mm:
16651 * bindings/objc/objc_utility.mm:
16652 * bindings/runtime.cpp:
16653 * bindings/runtime_array.cpp:
16654 * bindings/runtime_method.cpp:
16655 * bindings/runtime_object.cpp:
16656 * bindings/runtime_root.cpp:
16657 * bindings/testbindings.cpp:
16658 * bindings/testbindings.mm:
17324 Added InterpreterLocks in some places in the bindings we missed before.
17328 * bindings/runtime_root.cpp:
17329 (KJS::Bindings::addNativeReference):
17330 (KJS::Bindings::removeNativeReference):
17332 * bindings/runtime_root.h:
17333 (KJS::Bindings::RootObject::~RootObject):
17334 (KJS::Bindings::RootObject::setRootObjectImp):
17395 * bindings/NP_jsobject.cpp:
17405 * bindings/jni/jni_jsobject.cpp:
17415 * bindings/objc/WebScriptObject.mm:
17424 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
17425 * bindings/runtime.cpp:
17427 * bindings/runtime_root.h:
17428 * bindings/testbindings.cpp:
17430 * bindings/testbindings.mm:
17480 * bindings/c/c_class.h:
17481 (KJS::Bindings::CClass::constructorAt):
17482 (KJS::Bindings::CClass::numConstructors):
17483 * bindings/c/c_runtime.h:
17484 (KJS::Bindings::CMethod::numParameters):
17485 * bindings/jni/jni_class.cpp:
17487 * bindings/jni/jni_class.h:
17488 (KJS::Bindings::JavaClass::constructorAt):
17489 (KJS::Bindings::JavaClass::numConstructors):
17490 * bindings/jni/jni_instance.cpp:
17492 * bindings/jni/jni_jsobject.cpp:
17495 * bindings/jni/jni_runtime.cpp:
17497 * bindings/jni/jni_runtime.h:
17498 (KJS::Bindings::JavaConstructor::_commonCopy):
17499 (KJS::Bindings::JavaConstructor::parameterAt):
17500 (KJS::Bindings::JavaConstructor::numParameters):
17501 (KJS::Bindings::JavaMethod::_commonCopy):
17502 (KJS::Bindings::JavaMethod::parameterAt):
17503 (KJS::Bindings::JavaMethod::numParameters):
17504 * bindings/npapi.h:
17505 * bindings/objc/WebScriptObject.mm:
17507 * bindings/objc/objc_class.h:
17508 (KJS::Bindings::ObjcClass::constructorAt):
17509 (KJS::Bindings::ObjcClass::numConstructors):
17510 * bindings/objc/objc_instance.h:
17511 * bindings/objc/objc_runtime.h:
17512 * bindings/objc/objc_runtime.mm:
17514 * bindings/runtime.h:
18010 * bindings/objc/WebScriptObject.mm:
18084 * bindings/NP_jsobject.cpp: (identiferFromNPIdentifier): Marked this function static
18086 * bindings/c/c_utility.h: Put all this stuff inside the KJS namespace.
18087 * bindings/c/c_utility.cpp: Also marked some globals static so they don't have external
18089 * bindings/npruntime.cpp: Marked functions static so they no longer have internal linkage.
18092 * bindings/jni/jni_utility.cpp: (KJS::Bindings::getJavaVM): Call KJS_GetCreatedJavaVMs
18095 * bindings/softlinking.c:
18101 * bindings/softlinking.h: Added.
18113 * bindings/NP_jsobject.cpp:
18115 * bindings/jni/jni_instance.cpp:
18117 * bindings/jni/jni_runtime.cpp:
18120 * bindings/objc/WebScriptObject.mm:
18126 * bindings/objc/objc_class.h:
18127 (KJS::Bindings::ObjcClass::~ObjcClass):
18128 (KJS::Bindings::ObjcClass::ObjcClass):
18129 (KJS::Bindings::ObjcClass::operator=):
18130 (KJS::Bindings::ObjcClass::constructorAt):
18131 (KJS::Bindings::ObjcClass::numConstructors):
18132 * bindings/objc/objc_header.h:
18133 * bindings/objc/objc_runtime.h:
18134 (KJS::Bindings::ObjcField::~ObjcField):
18135 (KJS::Bindings::ObjcField::ObjcField):
18136 (KJS::Bindings::ObjcField::operator=):
18137 (KJS::Bindings::ObjcMethod::ObjcMethod):
18138 (KJS::Bindings::ObjcMethod::~ObjcMethod):
18139 (KJS::Bindings::ObjcMethod::operator=):
18140 * bindings/objc/objc_runtime.mm:
18145 * bindings/objc/objc_utility.h:
18146 * bindings/objc/objc_utility.mm:
18147 (KJS::Bindings::JSMethodNameToObjCMethodName):
18148 (KJS::Bindings::convertValueToObjcValue):
18149 (KJS::Bindings::convertNSStringToString):
18150 (KJS::Bindings::convertObjcValueToValue):
18151 (KJS::Bindings::objcValueTypeForType):
18152 (KJS::Bindings::createObjcInstanceForValue):
18153 (KJS::Bindings::throwError):
18154 * bindings/runtime.h:
18155 (KJS::Bindings::Parameter::~Parameter):
18156 (KJS::Bindings::Method::~Method):
18157 (KJS::Bindings::Instance::Instance):
18158 (KJS::Bindings::Instance::begin):
18159 (KJS::Bindings::Instance::end):
18160 (KJS::Bindings::Instance::getValueOfUndefinedField):
18161 (KJS::Bindings::Instance::supportsSetValueOfUndefinedField):
18162 (KJS::Bindings::Instance::setValueOfUndefinedField):
18163 (KJS::Bindings::Instance::valueOf):
18164 * bindings/runtime_array.cpp:
18166 * bindings/runtime_object.h:
18498 * bindings/jni/jni_class.cpp:
18505 * bindings/jni/jni_class.h:
18510 * bindings/jni/jni_instance.cpp:
18514 * bindings/jni/jni_instance.h:
18527 * bindings/jni/jni_instance.cpp:
18529 * bindings/jni/jni_runtime.cpp:
18626 * bindings/NP_jsobject.cpp:
18633 * bindings/c/c_instance.cpp:
18634 (KJS::Bindings::CInstance::CInstance):
18635 (KJS::Bindings::CInstance::invokeMethod):
18636 (KJS::Bindings::CInstance::invokeDefaultMethod):
18637 (KJS::Bindings::CInstance::defaultValue):
18638 (KJS::Bindings::CInstance::stringValue):
18639 (KJS::Bindings::CInstance::numberValue):
18640 (KJS::Bindings::CInstance::booleanValue):
18641 (KJS::Bindings::CInstance::valueOf):
18642 * bindings/c/c_instance.h:
18643 * bindings/c/c_runtime.cpp:
18646 * bindings/c/c_runtime.h:
18647 * bindings/c/c_utility.cpp:
18653 * bindings/c/c_utility.h:
18654 * bindings/jni/jni_instance.cpp:
18662 * bindings/jni/jni_instance.h:
18663 * bindings/jni/jni_jsobject.cpp:
18673 * bindings/jni/jni_jsobject.h:
18674 * bindings/jni/jni_objc.mm:
18675 (KJS::Bindings::dispatchJNICall):
18676 * bindings/jni/jni_runtime.cpp:
18684 * bindings/jni/jni_runtime.h:
18685 (KJS::Bindings::JavaString::ustring):
18686 * bindings/jni/jni_utility.cpp:
18687 (KJS::Bindings::getJavaVM):
18688 (KJS::Bindings::getJNIEnv):
18689 (KJS::Bindings::getMethodID):
18690 (KJS::Bindings::callJNIVoidMethod):
18691 (KJS::Bindings::callJNIObjectMethod):
18692 (KJS::Bindings::callJNIBooleanMethod):
18693 (KJS::Bindings::callJNIStaticBooleanMethod):
18694 (KJS::Bindings::callJNIByteMethod):
18695 (KJS::Bindings::callJNICharMethod):
18696 (KJS::Bindings::callJNIShortMethod):
18697 (KJS::Bindings::callJNIIntMethod):
18698 (KJS::Bindings::callJNILongMethod):
18699 (KJS::Bindings::callJNIFloatMethod):
18700 (KJS::Bindings::callJNIDoubleMethod):
18701 (KJS::Bindings::callJNIVoidMethodA):
18702 (KJS::Bindings::callJNIObjectMethodA):
18703 (KJS::Bindings::callJNIByteMethodA):
18704 (KJS::Bindings::callJNICharMethodA):
18705 (KJS::Bindings::callJNIShortMethodA):
18706 (KJS::Bindings::callJNIIntMethodA):
18707 (KJS::Bindings::callJNILongMethodA):
18708 (KJS::Bindings::callJNIFloatMethodA):
18709 (KJS::Bindings::callJNIDoubleMethodA):
18710 (KJS::Bindings::callJNIBooleanMethodA):
18711 (KJS::Bindings::callJNIVoidMethodIDA):
18712 (KJS::Bindings::callJNIObjectMethodIDA):
18713 (KJS::Bindings::callJNIByteMethodIDA):
18714 (KJS::Bindings::callJNICharMethodIDA):
18715 (KJS::Bindings::callJNIShortMethodIDA):
18716 (KJS::Bindings::callJNIIntMethodIDA):
18717 (KJS::Bindings::callJNILongMethodIDA):
18718 (KJS::Bindings::callJNIFloatMethodIDA):
18719 (KJS::Bindings::callJNIDoubleMethodIDA):
18720 (KJS::Bindings::callJNIBooleanMethodIDA):
18721 (KJS::Bindings::getCharactersFromJString):
18722 (KJS::Bindings::releaseCharactersForJString):
18723 (KJS::Bindings::getCharactersFromJStringInEnv):
18724 (KJS::Bindings::releaseCharactersForJStringInEnv):
18725 (KJS::Bindings::getUCharactersFromJStringInEnv):
18726 (KJS::Bindings::releaseUCharactersForJStringInEnv):
18727 (KJS::Bindings::JNITypeFromClassName):
18728 (KJS::Bindings::signatureFromPrimitiveType):
18729 (KJS::Bindings::JNITypeFromPrimitiveType):
18730 (KJS::Bindings::getJNIField):
18731 (KJS::Bindings::convertValueToJValue):
18732 * bindings/jni/jni_utility.h:
18733 * bindings/objc/WebScriptObject.mm:
18735 (-[WebScriptObject _initializeWithObjectImp:originExecutionContext:Bindings::executionContext:Bindings::]):
18736 (-[WebScriptObject _initWithObjectImp:originExecutionContext:Bindings::executionContext:Bindings::]):
18752 (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:Bindings::]):
18753 * bindings/objc/WebScriptObjectPrivate.h:
18754 * bindings/objc/objc_class.h:
18755 * bindings/objc/objc_class.mm:
18756 (KJS::Bindings::ObjcClass::fallbackObject):
18757 * bindings/objc/objc_instance.h:
18758 * bindings/objc/objc_instance.mm:
18770 * bindings/objc/objc_runtime.h:
18771 * bindings/objc/objc_runtime.mm:
18780 * bindings/objc/objc_utility.h:
18781 * bindings/objc/objc_utility.mm:
18782 (Bindings::JSMethodNameToObjCMethodName):
18783 (Bindings::convertValueToObjcValue):
18784 (Bindings::convertNSStringToString):
18785 (Bindings::convertObjcValueToValue):
18786 (Bindings::objcValueTypeForType):
18787 (Bindings::createObjcInstanceForValue):
18788 * bindings/runtime.cpp:
18793 * bindings/runtime.h:
18794 (KJS::Bindings::Constructor::~Constructor):
18795 (KJS::Bindings
18796 (KJS::Bindings::MethodList::MethodList):
18797 (KJS::Bindings::Class::fallbackObject):
18798 (KJS::Bindings::Class::~Class):
18799 (KJS::Bindings::Instance::Instance):
18800 (KJS::Bindings::Instance::getValueOfUndefinedField):
18801 (KJS::Bindings::Instance::supportsSetValueOfUndefinedField):
18802 (KJS::Bindings::Instance::setValueOfUndefinedField):
18803 (KJS::Bindings::Instance::valueOf):
18804 (KJS::Bindings::Instance::setExecutionContext):
18805 (KJS::Bindings::Instance::~Instance):
18806 (KJS::Bindings::Array::~Array):
18807 * bindings/runtime_array.cpp:
18812 * bindings/runtime_array.h:
18813 * bindings/runtime_method.cpp:
18816 * bindings/runtime_method.h:
18817 * bindings/runtime_object.cpp:
18825 * bindings/runtime_object.h:
19321 prototype in the bindings code and using the default of Null()
19325 * bindings/objc/objc_runtime.h:
19326 * bindings/objc/objc_runtime.mm:
19329 * bindings/runtime_array.cpp:
19333 * bindings/runtime_array.h:
19334 * bindings/runtime_method.cpp:
19337 * bindings/runtime_method.h:
19338 * bindings/runtime_object.cpp:
19344 * bindings/runtime_object.h:
19345 * bindings/runtime_root.h:
19632 * bindings/objc/objc_runtime.h:
19633 * bindings/objc/objc_runtime.mm:
19636 * bindings/runtime_array.cpp:
19639 * bindings/runtime_array.h:
19640 * bindings/runtime_method.cpp:
19642 * bindings/runtime_method.h:
19643 * bindings/runtime_object.cpp:
19645 * bindings/runtime_object.h:
19772 * bindings/runtime_root.cpp: Remove unneeded declaration.
20072 * bindings/objc/objc_runtime.h:
20073 * bindings/objc/objc_runtime.mm:
20075 * bindings/runtime_array.cpp:
20077 * bindings/runtime_array.h:
20078 * bindings/runtime_object.cpp:
20080 * bindings/runtime_object.h:
20245 no layout test added; this is in the bindings code.
20247 * bindings/objc/WebScriptObject.mm:
20248 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]): make sure to lock and unlock the interpreter around allocations.
20374 * bindings/objc/objc_runtime.h:
20375 * bindings/objc/objc_runtime.mm:
20377 * bindings/runtime_array.cpp:
20379 * bindings/runtime_array.h:
20380 * bindings/runtime_object.cpp:
20382 * bindings/runtime_object.h:
20480 * bindings/objc/objc_runtime.h:
20481 * bindings/objc/objc_runtime.mm:
20483 * bindings/runtime_array.cpp:
20485 * bindings/runtime_array.h:
20486 * bindings/runtime_object.cpp:
20488 * bindings/runtime_object.h:
20525 * bindings/objc/WebScriptObject.mm: (-[WebScriptObject stringRepresentation]):
20736 * bindings/runtime_root.cpp:
20737 (KJS::Bindings::addNativeReference): Remove non-conservative-GC code path.
20738 (KJS::Bindings::removeNativeReference): Ditto.
20740 * bindings/runtime_root.h:
20741 (KJS::Bindings::RootObject::~RootObject): Ditto.
20742 (KJS::Bindings::RootObject::setRootObjectImp): Ditto.
20771 * bindings/objc/WebScriptObject.mm:
20803 * bindings/runtime_root.h: Take off extra namespace prefixes that apparently cause problems
20830 Fixed <rdar://problem/4102644> Crash in LiveConnect below KJS::Bindings::JavaInstance::stringValue() const
20836 * bindings/jni/jni_runtime.cpp:
20877 * bindings/jni/jni_jsobject.cpp:
20880 * bindings/jni/jni_utility.cpp:
20881 (KJS::Bindings::getJavaVM): Ditto.
20882 (KJS::Bindings::getJNIEnv): Ditto.
20883 * bindings/objc/objc_utility.mm: Fixed include of <JavascriptCore/internal.h> that needed the
20919 * bindings/NP_jsobject.cpp:
20921 * bindings/npruntime.cpp:
20925 * bindings/npruntime.h:
20926 * bindings/npruntime_impl.h:
21199 * bindings/objc/objc_utility.mm:
21200 (KJS::Bindings::convertValueToObjcValue):
21228 * bindings/jni/jni_runtime.cpp:
21243 * bindings/c/c_utility.cpp:
21245 * bindings/jni/jni_instance.cpp:
21247 * bindings/jni/jni_objc.mm:
21248 (KJS::Bindings::dispatchJNICall):
21249 * bindings/jni/jni_runtime.cpp:
21252 * bindings/objc/WebScriptObject.mm:
21253 (-[WebScriptObject _setExecutionContext:KJS::Bindings::]):
21254 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21255 * bindings/objc/WebScriptObjectPrivate.h:
21256 * bindings/objc/objc_utility.h:
21257 * bindings/objc/objc_utility.mm:
21258 (KJS::Bindings::convertObjcValueToValue):
21259 (KJS::Bindings::createObjcInstanceForValue):
21260 * bindings/runtime.cpp:
21264 * bindings/runtime.h:
21277 * bindings/npsap.h: Removed.
21293 * bindings/objc/WebScriptObject.mm:
21294 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21300 Fixed <rdar://problem/3980389> JavaScript bindings access incorrect runtime object
21310 * bindings/c/c_utility.cpp:
21312 * bindings/objc/WebScriptObject.mm:
21313 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21314 * bindings/runtime_method.cpp:
21333 * bindings/runtime_method.cpp:
21335 * bindings/runtime_object.cpp:
21341 * bindings/runtime_object.h:
21352 * bindings/objc/WebScriptObjectPrivate.h: Make members public.
21366 * bindings/objc/objc_runtime.h:
21367 * bindings/objc/objc_runtime.mm:
21371 * bindings/testbindings.mm:
21379 Fixed <rdar://problem/3853676> Browser Crash when accessing CCWeb Progress Page - KJS::Bindings::convertValueToJValue
21390 * bindings/jni/jni_jsobject.cpp:
21393 * bindings/jni/jni_runtime.cpp:
21396 * bindings/jni/jni_utility.cpp:
21397 (KJS::Bindings::getMethodID):
21398 (KJS::Bindings::convertValueToJValue):
21399 * bindings/runtime_array.h:
21416 * bindings/objc/objc_instance.h:
21417 * bindings/objc/objc_instance.mm:
21419 * bindings/runtime.h:
21420 (KJS::Bindings::Instance::supportsSetValueOfUndefinedField):
21421 * bindings/runtime_object.cpp:
21428 * bindings/runtime_object.h:
21442 * bindings/objc/objc_utility.mm:
21443 (KJS::Bindings::convertValueToObjcValue):
21455 * bindings/NP_jsobject.cpp:
21466 * bindings/NP_jsobject.h:
21467 * bindings/c/c_instance.cpp:
21470 * bindings/c/c_instance.h:
21471 * bindings/c/c_utility.cpp:
21473 * bindings/jni/jni_instance.cpp:
21476 * bindings/jni/jni_instance.h:
21477 * bindings/objc/WebScriptObject.mm:
21478 (-[WebScriptObject _initializeWithObjectImp:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21479 (-[WebScriptObject _initWithObjectImp:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21480 (-[WebScriptObject KJS::Bindings::]):
21481 (-[WebScriptObject _setOriginExecutionContext:KJS::Bindings::]):
21491 (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]):
21492 * bindings/objc/WebScriptObjectPrivate.h:
21493 * bindings/objc/objc_instance.h:
21494 * bindings/objc/objc_runtime.mm:
21496 * bindings/objc/objc_utility.mm:
21497 (KJS::Bindings::convertValueToObjcValue):
21498 * bindings/runtime.cpp:
21501 * bindings/runtime.h:
21502 (KJS::Bindings::Instance::Instance):
21503 (KJS::Bindings::Instance::setExecutionContext):
21504 (KJS::Bindings::Instance::executionContext):
21505 * bindings/runtime_root.cpp:
21507 * bindings/runtime_root.h:
21531 * bindings/runtime_root.cpp:
21532 (KJS::Bindings::removeNativeReference):
21543 * bindings/runtime_root.cpp:
21544 (KJS::Bindings::rootForImp):
21555 * bindings/jni/jni_instance.cpp:
21557 * bindings/jni/jni_runtime.cpp:
21562 * bindings/jni/jni_runtime.h:
21563 * bindings/jni/jni_utility.cpp:
21564 (KJS::Bindings::convertValueToJValue):
21601 * bindings/jni/jni_objc.mm:
21602 (KJS::Bindings::dispatchJNICall):
21612 * bindings/jni/jni_instance.cpp:
21614 * bindings/jni/jni_runtime.cpp:
21616 * bindings/jni/jni_runtime.h:
21617 (KJS::Bindings::JavaMethod::isStatic):
21618 * bindings/jni/jni_utility.cpp:
21620 (KJS::Bindings::callJNIBooleanMethod):
21621 (KJS::Bindings::callJNIStaticBooleanMethod):
21622 * bindings/jni/jni_utility.h:
21630 * bindings/jni/jni_instance.cpp:
21632 * bindings/jni/jni_objc.mm:
21633 (KJS::Bindings::dispatchJNICall):
21634 * bindings/jni/jni_runtime.h:
21635 * bindings/jni/jni_utility.h:
21665 Fixed <rdar://problem/3890385> field and method cache incorrectly capped (c bindings)
21669 * bindings/c/c_class.cpp:
21699 * bindings/objc/objc_instance.mm:
21701 * bindings/objc/objc_utility.h:
21702 * bindings/objc/objc_utility.mm:
21703 (KJS::Bindings::convertNSStringToString):
21704 (KJS::Bindings::convertObjcValueToValue):
21716 * bindings/softlinking.c: Added.
21732 * bindings/objc/WebScriptObject.mm: Removed some stray semicolons.
21765 * bindings/c/c_instance.cpp:
21770 * bindings/c/c_runtime.cpp:
21784 * bindings/objc/WebScriptObject.mm:
21785 (+[WebScriptObject _convertValueToObjcValue:KJS::root:Bindings::]):
21787 * bindings/objc/objc_utility.mm:
21788 (KJS::Bindings::convertObjcValueToValue):
21795 * bindings/objc/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
21821 * bindings/objc/objc_utility.mm:
21822 (KJS::Bindings::convertObjcValueToValue):
21832 * bindings/objc/WebScriptObject.mm:
21834 (-[WebScriptObject KJS::Bindings::]):
21840 * bindings/objc/WebScriptObjectPrivate.h:
21848 * bindings/NP_jsobject.cpp: Fixed unnecessarily-complex globals set up that was
21897 * bindings/NP_jsobject.cpp:
21899 * bindings/npruntime.cpp:
21901 * bindings/objc/WebScriptObject.mm:
21912 * bindings/objc/objc_utility.mm:
21913 (KJS::Bindings::convertObjcValueToValue):
21934 * bindings/NP_jsobject.cpp:
21938 * bindings/c/c_class.cpp:
21941 * bindings/c/c_class.h:
21942 * bindings/c/c_instance.cpp:
21944 * bindings/jni/jni_class.cpp:
21946 * bindings/jni/jni_class.h:
21947 * bindings/npruntime.h:
21948 * bindings/objc/objc_class.h:
21949 * bindings/objc/objc_class.mm:
21951 * bindings/runtime.h:
21952 * bindings/runtime_object.cpp:
21963 * bindings/NP_jsobject.cpp:
21973 * bindings/c/c_class.cpp:
21976 * bindings/c/c_instance.cpp:
21982 * bindings/c/c_runtime.cpp:
21983 * bindings/c/c_runtime.h:
21984 (KJS::Bindings::CField::name):
21985 (KJS::Bindings::CMethod::name):
21986 * bindings/npruntime.cpp:
22044 'Objective-C' bindings.
22048 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
22054 * bindings/NP_jsobject.cpp:
22058 * bindings/c/c_class.cpp:
22059 * bindings/c/c_instance.cpp:
22064 * bindings/c/c_instance.h:
22065 * bindings/c/c_runtime.cpp:
22066 * bindings/c/c_runtime.h:
22067 * bindings/jni/jni_instance.cpp:
22069 * bindings/jni/jni_instance.h:
22070 * bindings/npruntime.cpp:
22072 * bindings/npruntime.h:
22073 * bindings/objc/WebScriptObject.h:
22074 * bindings/objc/objc_class.mm:
22076 * bindings/objc/objc_instance.h:
22077 * bindings/objc/objc_instance.mm:
22079 * bindings/objc/objc_runtime.h:
22080 * bindings/objc/objc_runtime.mm:
22090 * bindings/runtime.h:
22091 (KJS::Bindings::Class::fallbackObject):
22092 (KJS::Bindings::Instance::getValueOfUndefinedField):
22093 (KJS::Bindings::Instance::setValueOfUndefinedField):
22094 (KJS::Bindings::Instance::valueOf):
22095 * bindings/runtime_object.cpp:
22098 * bindings/runtime_object.h:
22207 * bindings/c/c_instance.h:
22208 (KJS::Bindings::CInstance::setExecutionContext):
22209 (KJS::Bindings::CInstance::executionContext):
22210 * bindings/jni/jni_instance.cpp:
22215 * bindings/jni/jni_instance.h:
22216 * bindings/jni/jni_jsobject.cpp:
22218 * bindings/jni/jni_runtime.cpp:
22224 * bindings/jni/jni_runtime.h:
22225 (KJS::Bindings::JavaArray::operator=):
22226 (KJS::Bindings::JavaArray::executionContext):
22227 * bindings/jni/jni_utility.h:
22228 * bindings/objc/objc_instance.h:
22229 (KJS::Bindings::ObjcInstance::setExecutionContext):
22230 (KJS::Bindings::ObjcInstance::executionContext):
22231 * bindings/runtime.cpp:
22233 * bindings/runtime.h:
22234 * bindings/runtime_root.h:
22235 (KJS::Bindings::RootObject::nativeHandle):
22277 Fixed <rdar://problem/3581092> cash in KJS::Bindings::JSObject::eval at tcvetantcvetkov.com
22279 Adds bullet proofing to protect against evaluation of bogus JS in all the flavors of bindings (Java, C, and ObjC).
22283 * bindings/NP_jsobject.cpp:
22285 bindings/jni/jni_jsobject.cpp:
22287 * bindings/objc/WebScriptObject.mm:
22296 * bindings/NP_jsobject.cpp:
22299 * bindings/npapi.h:
22300 * bindings/npruntime.h:
22306 * bindings/npapi.h: Added. Richard forgot to check this in. The one I'm checking in here
22318 * bindings/NP_jsobject.cpp:
22326 * bindings/NP_jsobject.h:
22327 * bindings/c/c_instance.cpp:
22329 * bindings/c/c_utility.cpp:
22331 * bindings/npruntime.cpp:
22358 * bindings/npruntime.h:
22361 * bindings/npruntime_priv.h: Added.
22467 * bindings/c/c_class.cpp:
22469 * bindings/c/c_class.h:
22470 * bindings/jni/jni_class.cpp:
22472 * bindings/jni/jni_class.h:
22473 * bindings/objc/objc_class.h:
22474 (KJS::Bindings::ObjcClass::isa):
22475 * bindings/objc/objc_class.mm:
22479 * bindings/objc/objc_instance.h:
22480 * bindings/objc/objc_instance.mm:
22486 * bindings/objc/objc_runtime.h:
22487 (KJS::Bindings::ObjcField::~ObjcField):
22488 (KJS::Bindings::ObjcField::ObjcField):
22489 (KJS::Bindings::ObjcField::operator=):
22490 (KJS::Bindings::FallbackObjectImp::classInfo):
22491 * bindings/objc/objc_runtime.mm:
22506 * bindings/runtime.h:
22507 (KJS::Bindings::Class::fallbackObject):
22508 (KJS::Bindings::Instance::getValueOfUndefinedField):
22509 (KJS::Bindings::Instance::setValueOfUndefinedField):
22510 * bindings/runtime_object.cpp:
22515 * bindings/testbindings.mm:
22651 * bindings/objc/objc_class.mm:
22654 * bindings/objc/objc_instance.mm:
22656 * bindings/objc/objc_runtime.h:
22657 (KJS::Bindings::ObjcMethod::~ObjcMethod):
22658 (KJS::Bindings::ObjcMethod::isFallbackMethod):
22659 (KJS::Bindings::ObjcMethod::javaScriptName):
22660 * bindings/objc/objc_runtime.mm:
22664 * bindings/testbindings.mm:
22809 * bindings/npruntime.h: Fixed typo.
22829 * bindings/jni/jni_jsobject.cpp:
22888 * bindings/NP_jsobject.cpp:
22897 * bindings/NP_jsobject.h:
22898 * bindings/c/c_class.cpp:
22901 * bindings/c/c_instance.cpp:
22903 * bindings/c/c_utility.cpp:
22905 * bindings/c/c_utility.h:
22906 * bindings/npruntime.cpp:
22921 * bindings/npruntime.h:
22922 * bindings/objc/WebScriptObject.mm:
22923 (+[WebScriptObject _convertValueToObjcValue:KJS::root:Bindings::]):
22924 * bindings/runtime_object.cpp:
22926 * bindings/runtime_root.cpp:
22927 (KJS::Bindings::rootForInterpreter):
22928 * bindings/testbindings.cpp:
22947 * bindings/objc/objc_runtime.mm:
22948 (KJS::Bindings::ObjcField::valueFromInstance):
22962 * bindings/objc/objc_utility.mm:
22963 (KJS::Bindings::convertObjcValueToValue):
22977 * bindings/objc/objc_class.mm:
22987 * bindings/objc/WebScriptObject.mm:
22993 * bindings/objc/objc_instance.mm:
23004 * bindings/objc/objc_instance.mm:
23010 * bindings/objc/objc_runtime.mm:
23015 * bindings/testbindings.mm: Fixed incorrect license.
23061 - ObjC bindings do not (yet) pass along sourceurl or line numbers
23067 * bindings/NP_jsobject.cpp:
23069 * bindings/jni/jni_jsobject.cpp:
23071 * bindings/objc/WebScriptObject.mm:
23105 * bindings/objc/objc_instance.mm:
23107 * bindings/runtime_object.cpp:
23109 * bindings/testM.js:
23110 * bindings/testbindings.mm:
23134 * bindings/objc/WebScriptObject.h:
23154 * bindings/jni/jni_runtime.cpp:
23156 * bindings/objc/objc_utility.mm:
23157 (KJS::Bindings::convertObjcValueToValue):
23158 * bindings/runtime_array.cpp:
23160 * bindings/runtime_array.h:
23161 * bindings/testM.js: Added.
23162 * bindings/testbindings.mm:
23191 * bindings/objc/WebScriptObject.h:
23192 * bindings/objc/WebScriptObject.mm:
23193 (-[WebScriptObject _initializeWithObjectImp:KJS::root:Bindings::]):
23194 (-[WebScriptObject _initWithObjectImp:KJS::root:Bindings::]):
23202 * bindings/objc/WebScriptObjectPrivate.h:
23203 * bindings/objc/objc_instance.mm:
23210 * bindings/objc/WebScriptObject.h:
23216 * bindings/jni/jni_jsobject.cpp:
23217 * bindings/jni/jni_jsobject.h:
23218 * bindings/runtime_array.h:
23219 * bindings/runtime_root.cpp:
23220 * bindings/runtime_root.h:
23229 * bindings/objc/WebScriptObject.mm:
23244 * bindings/objc/WebScriptObjectPrivate.h:
23253 * bindings/objc/WebScriptObject.mm:
23255 (+[WebScriptObject _convertValueToObjcValue:KJS::root:Bindings::]):
23256 * bindings/objc/objc_runtime.mm:
23271 * bindings/c/c_instance.cpp:
23273 * bindings/jni/jni_instance.cpp:
23275 * bindings/jni/jni_jsobject.cpp:
23277 * bindings/jni/jni_utility.cpp:
23278 (KJS::Bindings::getJNIField):
23279 * bindings/objc/WebScriptObject.mm:
23281 (-[WebScriptObject _initWithObjectImp:KJS::root:Bindings::]):
23291 (+[WebScriptObject _convertValueToObjcValue:KJS::root:Bindings::]):
23303 * bindings/objc/WebScriptObjectPrivate.h: Added.
23304 * bindings/objc/objc_class.mm:
23307 * bindings/objc/objc_instance.mm:
23309 * bindings/objc/objc_jsobject.h:
23310 * bindings/objc/objc_jsobject.mm:
23311 * bindings/objc/objc_runtime.mm:
23313 * bindings/objc/objc_utility.mm:
23314 (KJS::Bindings::JSMethodNameToObjCMethodName):
23315 (KJS::Bindings::convertValueToObjcValue):
23316 (KJS::Bindings::convertObjcValueToValue):
23317 * bindings/runtime.cpp:
23321 * bindings/runtime.h:
23322 * bindings/testbindings.mm:
23343 * bindings/objc/WebScriptObject.h:
23353 * bindings/objc/WebScriptObject.h: Added.
23354 * bindings/objc/WebScriptObject.mm: Added.
23427 * bindings/runtime_root.cpp:
23428 (KJS::Bindings::addNativeReference):
23429 (KJS::Bindings::removeNativeReference):
23431 * bindings/runtime_root.h:
23432 (KJS::Bindings::RootObject::~RootObject):
23433 (KJS::Bindings::RootObject::setRootObjectImp):
23469 * bindings/objc/objc_instance.mm:
23474 Fixed several bad problems with the ObjC bindings. In particular, conversion
23479 * bindings/objc/objc_jsobject.h:
23480 * bindings/objc/objc_jsobject.mm:
23481 (-[JavaScriptObject initWithObjectImp:KJS::root:Bindings::]):
23483 (+[JavaScriptObject _convertValueToObjcValue:KJS::root:Bindings::]):
23488 * bindings/objc/objc_runtime.mm:
23491 * bindings/objc/objc_utility.mm:
23492 (KJS::Bindings::convertValueToObjcValue):
23493 (KJS::Bindings::convertObjcValueToValue):
23494 * bindings/runtime.h:
23495 * bindings/runtime_root.cpp:
23496 (KJS::Bindings::rootForInterpreter):
23497 (KJS::Bindings::addNativeReference):
23498 (KJS::Bindings::removeNativeReference):
23499 * bindings/runtime_root.h:
23500 * bindings/testbindings.mm:
23553 * bindings/npruntime.h:
23567 * bindings/NP_jsobject.cpp:
23576 * bindings/c/c_class.cpp:
23579 * bindings/c/c_instance.cpp:
23582 * bindings/c/c_runtime.cpp:
23585 * bindings/c/c_utility.cpp:
23591 * bindings/c/c_utility.h:
23592 * bindings/npruntime.cpp:
23626 * bindings/npruntime.h:
23629 * bindings/testbindings.cpp:
23715 * bindings/runtime.cpp:
23892 * bindings/NP_jsobject.cpp:
23904 * bindings/NP_jsobject.h:
23905 * bindings/c/c_class.cpp:
23911 * bindings/c/c_class.h:
23912 * bindings/c/c_instance.cpp:
23918 * bindings/c/c_instance.h:
23919 (KJS::Bindings::CInstance::getObject):
23920 * bindings/c/c_runtime.cpp:
23923 * bindings/c/c_runtime.h:
23924 (KJS::Bindings::CField::CField):
23925 (KJS::Bindings::CField::name):
23926 (KJS::Bindings::CMethod::CMethod):
23927 (KJS::Bindings::CMethod::name):
23928 * bindings/c/c_utility.cpp:
23932 * bindings/c/c_utility.h:
23933 * bindings/npruntime.cpp:
23970 * bindings/npruntime.h:
23971 * bindings/runtime.cpp:
23973 * bindings/testbindings.cpp:
23999 * bindings/NP_jsobject.h:
24000 * bindings/c/c_class.h:
24001 * bindings/c/c_instance.h:
24002 * bindings/c/c_runtime.h:
24003 * bindings/c/c_utility.h:
24004 * bindings/npruntime.cpp:
24011 * bindings/NP_jsobject.h:
24012 * bindings/npruntime.cpp:
24019 Augmented test program for 'C' bindings.
24025 * bindings/NP_jsobject.cpp:
24027 * bindings/NP_jsobject.h: Added.
24028 * bindings/NP_runtime.cpp:
24048 * bindings/NP_runtime.h:
24049 * bindings/c/c_instance.cpp:
24051 * bindings/c/c_utility.cpp:
24055 * bindings/c/c_utility.h:
24056 * bindings/test.js:
24057 * bindings/testC.js: Added.
24058 * bindings/testbindings.cpp:
24088 * bindings/NP_jsobject.cpp:
24094 * bindings/NP_runtime.h:
24102 * bindings/jni/jni_class.cpp:
24114 * bindings/jni/jni_utility.cpp:
24115 (KJS::Bindings::convertValueToJValue):
24124 Added program to test C bindings (and NP stuff). Just tests
24127 Updated Makefile.am to account for new bindings/c directory.
24139 * bindings/NP_jsobject.cpp:
24142 * bindings/NP_runtime.cpp:
24153 * bindings/NP_runtime.h:
24154 * bindings/c/c_class.cpp: Added.
24164 * bindings/c/c_class.h: Added.
24165 (KJS::Bindings::CClass::~CClass):
24166 (KJS::Bindings::CClass::CClass):
24167 (KJS::Bindings::CClass::operator=):
24168 (KJS::Bindings::CClass::constructorAt):
24169 (KJS::Bindings::CClass::numConstructors):
24170 * bindings/c/c_instance.cpp: Added.
24183 * bindings/c/c_instance.h: Added.
24184 (KJS::Bindings::CInstance::getObject):
24185 * bindings/c/c_runtime.cpp: Added.
24188 * bindings/c/c_runtime.h: Added.
24189 (KJS::Bindings::CField::CField):
24190 (KJS::Bindings::CField::name):
24191 (KJS::Bindings::CField::type):
24192 (KJS::Bindings::CMethod::CMethod):
24193 (KJS::Bindings::CMethod::name):
24194 (KJS::Bindings::CMethod::numParameters):
24195 * bindings/c/c_utility.cpp: Added.
24199 * bindings/c/c_utility.h: Added.
24200 * bindings/make_testbindings:
24201 * bindings/runtime.cpp:
24203 * bindings/runtime.h:
24204 (KJS::Bindings::Instance::):
24205 * bindings/testbindings.cpp: Added.
24226 * bindings/NP_jsobject.cpp:
24232 * bindings/NP_runtime.h:
24233 * bindings/make_testbindings:
24234 * bindings/runtime.cpp:
24245 * bindings/NP_runtime.h:
24257 * bindings/NP_jsobject.cpp: Added.
24273 * bindings/NP_runtime.cpp:
24275 * bindings/NP_runtime.h:
24276 * bindings/runtime_object.h:
24287 * bindings/NP_runtime.cpp:
24295 * bindings/NP_runtime.h:
24312 * bindings/NP_runtime.cpp:
24332 * bindings/NP_runtime.h:
24340 * bindings/NP_runtime.cpp:
24356 * bindings/NP_runtime.h:
24365 * bindings/NP_runtime.cpp:
24368 * bindings/NP_runtime.h:
24374 Completed ObjectiveC bindings (not based on the C API). These will re-implemented over the C binding API, but I wanted to get this code in the tree.
24382 * bindings/NP_runtime.cpp: Added.
24416 * bindings/NP_runtime.h: Added.
24417 * bindings/jni/jni_jsobject.cpp:
24422 * bindings/jni/jni_jsobject.h:
24423 * bindings/objc/objc_jsobject.h:
24424 * bindings/objc/objc_jsobject.mm:
24427 (-[JavaScriptObject initWithObjectImp:KJS::root:Bindings::]):
24438 * bindings/objc/objc_utility.h:
24439 * bindings/objc/objc_utility.mm:
24440 (KJS::Bindings::convertValueToObjcValue):
24441 * bindings/runtime_root.cpp: Added.
24444 (KJS::Bindings::findReferenceDictionary):
24445 (KJS::Bindings::rootForImp):
24446 (KJS::Bindings::addNativeReference):
24447 (KJS::Bindings::removeNativeReference):
24456 * bindings/runtime_root.h: Added.
24457 (KJS::Bindings::RootObject::RootObject):
24458 (KJS::Bindings::RootObject::~RootObject):
24459 (KJS::Bindings::RootObject::setRootObjectImp):
24460 (KJS::Bindings::RootObject::rootObjectImp):
24461 (KJS::Bindings::RootObject::setInterpreter):
24462 (KJS::Bindings::RootObject::interpreter):
24463 (KJS::Bindings::RootObject::findRootObjectForNativeHandleFunction):
24464 (KJS::Bindings::RootObject::runLoop):
24465 (KJS::Bindings::RootObject::performJavaScriptSource):
24479 * bindings/objc/objc_utility.mm:
24480 (KJS::Bindings::convertValueToObjcValue):
24481 (KJS::Bindings::convertObjcValueToValue):
24482 * bindings/runtime_array.h:
24497 * bindings/jni/jni_runtime.cpp:
24500 * bindings/jni/jni_runtime.h:
24501 * bindings/objc/objc_class.mm:
24503 * bindings/objc/objc_runtime.h:
24504 (KJS::Bindings::ObjcArray::getObjcArray):
24505 * bindings/objc/objc_runtime.mm:
24514 * bindings/objc/objc_utility.mm:
24515 (KJS::Bindings::convertValueToObjcValue):
24516 (KJS::Bindings::convertObjcValueToValue):
24517 * bindings/runtime.cpp:
24519 * bindings/runtime.h:
24520 * bindings/runtime_array.cpp:
24522 * bindings/runtime_object.cpp:
24532 * bindings/objc/objc_utility.mm:
24533 (KJS::Bindings::convertValueToObjcValue):
24534 (KJS::Bindings::convertObjcValueToValue):
24535 * bindings/test.js:
24536 * bindings/testbindings.mm:
24548 Work towards the JavaScript ObjC bindings. The bindings now work for
24550 bindings work.
24556 * bindings/jni/jni_class.cpp:
24558 * bindings/jni/jni_class.h:
24559 * bindings/jni/jni_instance.cpp:
24561 * bindings/jni/jni_instance.h:
24562 * bindings/jni/jni_runtime.h:
24563 (KJS::Bindings::JavaMethod::returnType):
24564 * bindings/make_testbindings: Added.
24565 * bindings/objc/objc_class.h: Added.
24566 (KJS::Bindings::ObjcClass::~ObjcClass):
24567 (KJS::Bindings::ObjcClass::ObjcClass):
24568 (KJS::Bindings::ObjcClass::operator=):
24569 (KJS::Bindings::ObjcClass::constructorAt):
24570 (KJS::Bindings::ObjcClass::numConstructors):
24571 * bindings/objc/objc_class.mm: Added.
24581 * bindings/objc/objc_header.h: Added.
24582 * bindings/objc/objc_instance.h: Added.
24583 (KJS::Bindings::ObjcInstance::getObject):
24584 * bindings/objc/objc_instance.mm: Added.
24597 * bindings/objc/objc_jsobject.h: Added.
24598 * bindings/objc/objc_jsobject.mm: Added.
24599 * bindings/objc/objc_runtime.h:
24600 (KJS::Bindings::ObjcField::~ObjcField):
24601 (KJS::Bindings::ObjcField::ObjcField):
24602 (KJS::Bindings::ObjcField::operator=):
24603 (KJS::Bindings
24604 (KJS::Bindings::ObjcMethod::~ObjcMethod):
24605 (KJS::Bindings::ObjcMethod::operator=):
24606 * bindings/objc/objc_runtime.mm: Added.
24616 * bindings/objc/objc_utility.h: Added.
24617 (KJS::Bindings::):
24618 * bindings/objc/objc_utility.mm: Added.
24619 (KJS::Bindings::JSMethodNameToObjCMethodName):
24620 (KJS::Bindings::convertValueToObjcValue):
24621 (KJS::Bindings::convertObjcValueToValue):
24622 (KJS::Bindings::objcValueTypeForType):
24623 * bindings/runtime.cpp:
24629 * bindings/runtime.h:
24630 * bindings/runtime_method.cpp:
24634 * bindings/runtime_method.h:
24635 * bindings/runtime_object.cpp:
24638 * bindings/test.js: Added.
24639 * bindings/testbindings.mm: Added.
24685 * bindings/jni/jni_jsobject.cpp:
24687 * bindings/jni/jni_utility.cpp:
24688 (KJS::Bindings::convertValueToJValue):
24741 * bindings/jni/jni_instance.cpp:
24753 * bindings/jni/jni_runtime.h:
24754 * bindings/objc/objc_runtime.h: Added.
24755 (KJS::Bindings::ObjcParameter::ObjcParameter):
24756 (KJS::Bindings::ObjcParameter::~ObjcParameter):
24757 (KJS::Bindings::ObjcParameter::operator=):
24758 (KJS::Bindings::ObjcParameter::type):
24759 (KJS::Bindings::ObjcConstructor::ObjcConstructor):
24760 (KJS::Bindings::ObjcConstructor::~ObjcConstructor):
24761 (KJS::Bindings::ObjcConstructor::_commonCopy):
24762 (KJS::Bindings::ObjcConstructor::operator=):
24763 (KJS::Bindings::ObjcConstructor::value):
24764 (KJS::Bindings::ObjcConstructor::parameterAt):
24765 (KJS::Bindings::ObjcConstructor::numParameters):
24766 (KJS::Bindings::ObjcField::ObjcField):
24767 (KJS::Bindings::ObjcField::~ObjcField):
24768 * bindings/runtime.h:
24779 * bindings/jni/jni_runtime.h:
24780 (KJS::Bindings::JavaString::JavaString):
24781 (KJS::Bindings::JavaString::_commonInit):
24782 (KJS::Bindings::JavaString::UTF8String):
24783 (KJS::Bindings::JavaString::uchars):
24784 (KJS::Bindings::JavaString::length):
24785 (KJS::Bindings::JavaString::ustring):
24786 * bindings/runtime_object.cpp:
24788 * bindings/runtime_object.h:
24806 * bindings/jni/jni_class.cpp:
24809 * bindings/jni/jni_class.h:
24810 * bindings/jni/jni_instance.cpp:
24812 * bindings/jni/jni_instance.h:
24813 * bindings/jni/jni_runtime.cpp:
24818 * bindings/jni/jni_runtime.h:
24819 * bindings/jni_jsobject.cpp:
24822 * bindings/runtime.cpp:
24827 * bindings/runtime.h:
24828 (KJS::Bindings::MethodList::MethodList):
24829 * bindings/runtime_method.cpp:
24833 * bindings/runtime_method.h:
24834 * bindings/runtime_object.cpp:
24845 * bindings/runtime_method.cpp:
24860 * bindings/jni/jni_class.cpp:
24863 * bindings/jni/jni_instance.cpp:
24866 * bindings/jni/jni_instance.h:
24867 * bindings/jni/jni_runtime.cpp:
24870 * bindings/jni_jsobject.cpp:
24872 * bindings/runtime.h:
24873 (KJS::Bindings::Instance::begin):
24874 (KJS::Bindings::Instance::end):
24875 * bindings/runtime_object.cpp:
24895 * bindings/jni/jni_instance.cpp:
24908 * bindings/jni_jsobject.cpp:
24922 * bindings/jni_jsobject.h:
24923 (KJS::Bindings::RootObject::~RootObject):
24935 * bindings/jni_jsobject.cpp:
24947 * bindings/jni/jni_class.cpp:
24949 * bindings/jni/jni_instance.cpp:
24955 * bindings/jni/jni_instance.h:
24956 (KJS::Bindings::JavaInstance::operator=):
24957 * bindings/jni/jni_runtime.cpp:
24960 * bindings/jni/jni_runtime.h:
24961 (KJS::Bindings::JavaMethod::JavaMethod):
24962 * bindings/jni/jni_utility.cpp:
24966 (KJS::Bindings::getMethodID):
24967 (KJS::Bindings::callJNIVoidMethodIDA):
24968 (KJS::Bindings::callJNIObjectMethodIDA):
24969 (KJS::Bindings::callJNIByteMethodIDA):
24970 (KJS::Bindings::callJNICharMethodIDA):
24971 (KJS::Bindings::callJNIShortMethodIDA):
24972 (KJS::Bindings::callJNIIntMethodIDA):
24973 (KJS::Bindings::callJNILongMethodIDA):
24974 (KJS::Bindings::callJNIFloatMethodIDA):
24975 (KJS::Bindings::callJNIDoubleMethodIDA):
24976 (KJS::Bindings::callJNIBooleanMethodIDA):
24977 (KJS::Bindings::getCharactersFromJStringInEnv):
24978 (KJS::Bindings::getUCharactersFromJStringInEnv):
24979 (KJS::Bindings::getJNIField):
24980 * bindings/jni/jni_utility.h:
25005 * bindings/jni/jni_utility.cpp:
25006 (KJS::Bindings::getJavaVM):
25007 (KJS::Bindings::getJNIEnv):
25010 (KJS::Bindings::getJNIField):
25011 * bindings/jni_jsobject.cpp:
25029 * bindings/jni/jni_class.cpp:
25030 * bindings/jni/jni_class.h:
25031 * bindings/jni/jni_instance.cpp:
25034 * bindings/jni/jni_instance.h:
25035 * bindings/jni/jni_runtime.cpp:
25040 * bindings/jni/jni_runtime.h:
25041 (KJS::Bindings::JavaString::ascii):
25042 (KJS::Bindings::JavaString::UTF8String):
25043 (KJS::Bindings::JavaString::JavaString):
25044 (KJS::Bindings::JavaString::_commonInit):
25045 (KJS::Bindings::JavaString::uchars):
25046 (KJS::Bindings::JavaString::length):
25047 (KJS::Bindings::JavaString::ustring):
25048 (KJS::Bindings::JavaParameter::type):
25049 (KJS::Bindings::JavaField::name):
25050 (KJS::Bindings::JavaField::type):
25051 (KJS::Bindings::JavaMethod::name):
25052 (KJS::Bindings::JavaMethod::returnType):
25053 * bindings/jni/jni_utility.cpp:
25054 (KJS::Bindings::getJavaVM):
25055 (KJS::Bindings::getJNIEnv):
25056 (KJS::Bindings::callJNIVoidMethod):
25057 (KJS::Bindings::callJNIObjectMethod):
25058 (KJS::Bindings::callJNIBooleanMethod):
25059 (KJS::Bindings::callJNIByteMethod):
25060 (KJS::Bindings::callJNICharMethod):
25061 (KJS::Bindings::callJNIShortMethod):
25062 (KJS::Bindings::callJNIIntMethod):
25063 (KJS::Bindings::callJNILongMethod):
25064 (KJS::Bindings::callJNIFloatMethod):
25065 (KJS::Bindings::callJNIDoubleMethod):
25066 (KJS::Bindings::callJNIVoidMethodA):
25067 (KJS::Bindings::callJNIObjectMethodA):
25068 (KJS::Bindings::callJNIByteMethodA):
25069 (KJS::Bindings::callJNICharMethodA):
25070 (KJS::Bindings::callJNIShortMethodA):
25071 (KJS::Bindings::callJNIIntMethodA):
25072 (KJS::Bindings::callJNILongMethodA):
25073 (KJS::Bindings::callJNIFloatMethodA):
25074 (KJS::Bindings::callJNIDoubleMethodA):
25075 (KJS::Bindings::callJNIBooleanMethodA):
25076 (KJS::Bindings::getCharactersFromJString):
25077 (KJS::Bindings::releaseCharactersForJString):
25078 (KJS::Bindings::getCharactersFromJStringInEnv):
25079 (KJS::Bindings::releaseCharactersForJStringInEnv):
25080 (KJS::Bindings::getUCharactersFromJStringInEnv):
25081 (KJS::Bindings::releaseUCharactersForJStringInEnv):
25082 (KJS::Bindings::JNITypeFromClassName):
25083 (KJS::Bindings::signatureFromPrimitiveType):
25084 (KJS::Bindings::JNITypeFromPrimitiveType):
25085 (KJS::Bindings::getJNIField):
25086 (KJS::Bindings::convertValueToJValue):
25087 * bindings/jni/jni_utility.h:
25088 * bindings/jni_jsobject.cpp:
25089 (KJS::Bindings::JSObject::invoke):
25090 (KJS::Bindings::JSObject::JSObject):
25091 (KJS::Bindings::JSObject::call):
25092 (KJS::Bindings::JSObject::eval):
25093 (KJS::Bindings::JSObject::getMember):
25094 (KJS::Bindings::JSObject::setMember):
25095 (KJS::Bindings::JSObject::removeMember):
25096 (KJS::Bindings::JSObject::getSlot):
25097 (KJS::Bindings::JSObject::setSlot):
25098 (KJS::Bindings::JSObject::toString):
25099 (KJS::Bindings::JSObject::finalize):
25100 (KJS::Bindings::JSObject::createNative):
25101 (KJS::Bindings::JSObject::convertValueToJObject):
25102 (KJS::Bindings::JSObject::convertJObjectToValue):
25103 (KJS::Bindings::JSObject::listFromJArray):
25104 * bindings/jni_jsobject.h:
25105 * bindings/runtime.cpp:
25106 * bindings/runtime.h:
25107 * bindings/runtime_method.cpp:
25108 * bindings/runtime_method.h:
25119 * bindings/jni_jsobject.cpp:
25120 (Bindings::JSObject::call):
25121 (Bindings::JSObject::eval):
25122 (Bindings::JSObject::getMember):
25123 (Bindings::JSObject::setMember):
25124 (Bindings::JSObject::removeMember):
25125 (Bindings::JSObject::getSlot):
25126 (Bindings::JSObject::setSlot):
25127 (Bindings::JSObject::convertJObjectToValue):
25135 * bindings/jni_jsobject.cpp:
25136 (Bindings::performJavaScriptAccess):
25137 (Bindings::completedJavaScriptAccess):
25138 (Bindings::dispatchToJavaScriptThread):
25141 (Bindings::RootObject::removeAllJavaReferencesForRoot):
25144 (Bindings::JSObject::invoke):
25145 (Bindings::JSObject::JSObject):
25146 (Bindings::JSObject::getMember):
25147 (Bindings::JSObject::getSlot):
25158 * bindings/jni_jsobject.cpp:
25159 (Bindings::JSObject::call):
25160 (Bindings::JSObject::eval):
25161 (Bindings::JSObject::getMember):
25162 (Bindings::JSObject::setMember):
25163 (Bindings::JSObject::getSlot):
25164 (Bindings::JSObject::convertValueToJObject):
25165 (Bindings::JSObject::convertJObjectToValue):
25166 (Bindings::JSObject::listFromJArray):
25167 * bindings/jni_jsobject.h:
25176 * bindings/jni/jni_instance.cpp:
25178 * bindings/jni/jni_utility.cpp:
25179 * bindings/jni/jni_utility.h:
25180 * bindings/jni_jsobject.cpp:
25181 (Bindings::JSObject::invoke):
25182 (Bindings::JSObject::call):
25183 (Bindings::JSObject::eval):
25184 (Bindings::JSObject::getMember):
25185 (Bindings::JSObject::setMember):
25186 (Bindings::JSObject::getSlot):
25187 (Bindings::JSObject::setSlot):
25188 (Bindings::JSObject::createNative):
25189 (Bindings::JSObject::convertValueToJObject):
25190 (Bindings::JSObject::convertJObjectToValue):
25191 (Bindings::JSObject::listFromJArray):
25192 * bindings/jni_jsobject.h:
25193 (Bindings::):
25194 * bindings/runtime_method.cpp:
25208 * bindings/jni/jni_runtime.h:
25209 (Bindings::JavaString::JavaString):
25210 (Bindings::JavaString::_commonInit):
25211 (Bindings::JavaString::_commonCopy):
25212 (Bindings::JavaString::_commonDelete):
25213 (Bindings::JavaString::~JavaString):
25214 (Bindings::JavaString::operator=):
25215 (Bindings::JavaString::uchars):
25216 (Bindings::JavaString::length):
25217 (Bindings::JavaString::ustring):
25218 * bindings/jni/jni_utility.cpp:
25223 * bindings/jni/jni_utility.h:
25224 * bindings/jni_jsobject.cpp:
25225 (Bindings::JSObject::invoke):
25226 (Bindings::JSObject::call):
25227 (Bindings::JSObject::eval):
25228 (Bindings::JSObject::getMember):
25229 (Bindings::JSObject::setMember):
25230 (Bindings::JSObject::removeMember):
25231 (Bindings::JSObject::getSlot):
25232 (Bindings::JSObject::setSlot):
25233 * bindings/jni_jsobject.h:
25242 * bindings/jni_jsobject.cpp:
25245 (Bindings::performJavaScriptAccess):
25246 (Bindings::completedJavaScriptAccess):
25247 (Bindings::initializeJavaScriptAccessLock):
25248 (Bindings::lockJavaScriptAccess):
25249 (Bindings::unlockJavaScriptAccess):
25250 (Bindings::dispatchToJavaScriptThread):
25251 (Bindings::RootObject::setFindRootObjectForNativeHandleFunction):
25252 (Bindings::RootObject::removeAllJavaReferencesForRoot):
25253 (Bindings::JSObject::invoke):
25254 (Bindings::JSObject::JSObject):
25255 (Bindings::JSObject::call):
25256 (Bindings::JSObject::eval):
25257 (Bindings::JSObject::getMember):
25258 (Bindings::JSObject::setMember):
25259 (Bindings::JSObject::removeMember):
25260 (Bindings::JSObject::getSlot):
25261 (Bindings::JSObject::setSlot):
25262 (Bindings::JSObject::toString):
25263 (Bindings::JSObject::finalize):
25264 (Bindings::JSObject::getWindow):
25265 * bindings/jni_jsobject.h:
25266 (Bindings::RootObject::~RootObject):
25267 (Bindings::RootObject::findRootObjectForNativeHandleFunction):
25268 (Bindings::RootObject::runLoop):
25269 (Bindings::RootObject::performJavaScriptSource):
25270 (Bindings::):
25291 * bindings/jni/jni_runtime.h:
25292 (Bindings::JavaString::JavaString):
25293 * bindings/jni/jni_utility.cpp:
25297 * bindings/jni/jni_utility.h:
25298 * bindings/jni_jsobject.cpp:
25307 * bindings/jni_jsobject.h:
25308 (Bindings::RootObject::RootObject):
25309 (Bindings::RootObject::~RootObject):
25310 (Bindings::RootObject::setRootObjectImp):
25311 (Bindings::RootObject::rootObjectImp):
25312 (Bindings::RootObject::setInterpreter):
25313 (Bindings::RootObject::interpreter):
25344 * bindings/jni_jsobject.cpp:
25353 * bindings/jni_jsobject.h:
25372 * bindings/jni_jsobject.cpp: Added.
25383 * bindings/jni_jsobject.h: Added.
25403 * bindings/jni/jni_instance.h:
25404 * bindings/jni/jni_runtime.cpp:
25412 * bindings/jni/jni_runtime.h:
25413 (Bindings::JavaArray::operator=):
25414 (Bindings::JavaArray::javaArray):
25415 * bindings/jni/jni_utility.cpp:
25418 * bindings/jni/jni_utility.h:
25419 * bindings/runtime.h:
25420 * bindings/runtime_array.cpp:
25426 * bindings/runtime_array.h:
25429 * bindings/runtime_object.cpp:
25436 LiveConnect: Part 1 of supporting JS bindings to
25442 * bindings/jni/jni_runtime.cpp:
25447 * bindings/jni/jni_runtime.h:
25448 * bindings/runtime.cpp:
25450 * bindings/runtime.h:
25451 (Bindings::Array::~Array):
25461 * bindings/jni/jni_class.cpp:
25465 * bindings/jni/jni_class.h:
25466 * bindings/jni/jni_instance.cpp:
25469 * bindings/jni/jni_instance.h:
25470 (Bindings::JavaInstance::javaInstance):
25471 * bindings/runtime.h:
25472 * bindings/runtime_object.cpp:
25482 * bindings/jni/jni_instance.cpp:
25484 * bindings/jni/jni_runtime.cpp:
25490 * bindings/jni/jni_runtime.h:
25491 (Bindings::JavaField::getJNIType):
25492 * bindings/jni/jni_utility.cpp:
25495 * bindings/jni/jni_utility.h:
25496 * bindings/runtime.cpp:
25498 * bindings/runtime.h:
25499 * bindings/runtime_object.cpp:
25512 * bindings/jni/jni_class.cpp:
25516 * bindings/jni/jni_class.h:
25517 * bindings/jni/jni_instance.cpp:
25522 * bindings/jni/jni_instance.h:
25523 * bindings/jni/jni_runtime.cpp:
25529 * bindings/jni/jni_runtime.h:
25530 (Bindings::JavaString::JavaString):
25531 (Bindings::JavaString::~JavaString):
25532 (Bindings::JavaString::operator=):
25533 (Bindings::JavaString::characters):
25534 (Bindings::JavaParameter::JavaParameter):
25535 (Bindings::JavaParameter::~JavaParameter):
25536 (Bindings::JavaParameter::operator=):
25537 (Bindings::JavaParameter::type):
25538 (Bindings::JavaField::JavaField):
25539 (Bindings::JavaField::~JavaField):
25540 (Bindings::JavaField::operator=):
25541 (Bindings::JavaField::name):
25542 (Bindings::JavaField::type):
25543 (Bindings::JavaMethod::JavaMethod):
25544 (Bindings::JavaMethod::_commonDelete):
25545 (Bindings::JavaMethod::name):
25546 (Bindings::JavaMethod::returnType):
25547 * bindings/jni/jni_utility.cpp:
25549 * bindings/runtime.h:
25550 (Bindings::Instance::valueOf):
25551 * bindings/runtime_method.cpp:
25553 * bindings/runtime_object.cpp:
25557 * bindings/runtime_object.h:
25569 * bindings/jni/jni_instance.cpp:
25571 * bindings/jni/jni_instance.h:
25572 * bindings/jni/jni_runtime.cpp:
25576 * bindings/jni/jni_runtime.h:
25577 (Bindings::JavaParameter::JavaParameter):
25578 (Bindings::JavaParameter::operator=):
25579 (Bindings::JavaParameter::getJNIType):
25580 * bindings/jni/jni_utility.cpp:
25583 * bindings/jni/jni_utility.h:
25584 * bindings/runtime.h:
25585 * bindings/runtime_method.cpp:
25587 * bindings/runtime_object.cpp:
25600 * bindings/jni/jni_instance.cpp:
25603 * bindings/jni/jni_instance.h:
25604 * bindings/jni/jni_runtime.cpp:
25608 * bindings/jni/jni_runtime.h:
25609 (Bindings::JavaMethod::_commonDelete):
25610 (Bindings::JavaMethod::_commonCopy):
25611 (Bindings::JavaMethod::name):
25612 * bindings/jni/jni_utility.cpp:
25614 * bindings/jni/jni_utility.h:
25615 * bindings/runtime.h:
25616 * bindings/runtime_method.cpp: Added.
25624 * bindings/runtime_method.h: Added.
25625 * bindings/runtime_object.cpp:
25628 * bindings/runtime_object.h:
25662 * bindings/jni/jni_runtime.cpp:
25677 * bindings/jni/jni_instance.cpp:
25679 * bindings/jni/jni_instance.h:
25680 (Bindings::JObjectWrapper::~JObjectWrapper):
25681 * bindings/jni/jni_runtime.cpp:
25683 * bindings/runtime_object.cpp:
25688 * bindings/runtime_object.h:
25718 * bindings/jni/jni_class.cpp:
25721 * bindings/jni/jni_class.h:
25722 (Bindings::JavaClass::_commonDelete):
25723 * bindings/jni/jni_instance.cpp:
25727 * bindings/jni/jni_instance.h:
25728 (Bindings::JavaInstance::javaInstance):
25729 * bindings/jni/jni_runtime.cpp:
25732 * bindings/jni/jni_runtime.h:
25733 (Bindings::JavaField::JavaField):
25734 (Bindings::JavaField::~JavaField):
25735 (Bindings::JavaField::operator=):
25736 * bindings/jni/jni_utility.cpp:
25761 * bindings/jni/jni_utility.h:
25762 * bindings/runtime.cpp:
25765 * bindings/runtime.h:
25766 * bindings/runtime_object.cpp:
25775 * bindings/jni/jni_class.cpp:
25778 * bindings/jni/jni_instance.cpp:
25780 * bindings/jni/jni_instance.h:
25781 (Bindings::JObjectWrapper::JObjectWrapper):
25782 * bindings/jni/jni_runtime.h:
25783 (Bindings::JavaConstructor::~JavaConstructor):
25784 (Bindings::JavaConstructor::operator=):
25785 (Bindings::JavaMethod::JavaMethod):
25786 (Bindings::JavaMethod::_commonDelete):
25787 (Bindings::JavaMethod::signature):
25788 * bindings/jni/jni_utility.cpp:
25791 * bindings/jni/jni_utility.h:
25792 * bindings/runtime.h:
25793 * bindings/runtime_object.cpp:
25796 * bindings/runtime_object.h:
25805 * bindings/jni/jni_class.cpp: Added.
25813 * bindings/jni/jni_class.h: Added.
25814 (Bindings::JavaClass::_commonDelete):
25815 (Bindings::JavaClass::~JavaClass):
25816 (Bindings::JavaClass::_commonCopy):
25817 (Bindings::JavaClass::JavaClass):
25818 (Bindings::JavaClass::operator=):
25819 (Bindings::JavaClass::name):
25820 (Bindings::JavaClass::constructorAt):
25821 (Bindings::JavaClass::numConstructors):
25822 * bindings/jni/jni_instance.cpp: Added.
25825 * bindings/jni/jni_instance.h: Added.
25826 (Bindings::JObjectWrapper::JObjectWrapper):
25827 (Bindings::JObjectWrapper::~JObjectWrapper):
25828 (Bindings::JObjectWrapper::ref):
25829 (Bindings::JObjectWrapper::deref):
25830 (Bindings::JavaInstance::getClass):
25831 (Bindings::JavaInstance::operator=):
25832 * bindings/jni/jni_runtime.cpp:
25834 * bindings/jni/jni_runtime.h:
25835 (Bindings::JavaString::JavaString):
25836 (Bindings::JavaString::~JavaString):
25837 (Bindings::JavaString::operator=):
25838 * bindings/jni/jni_utility.cpp:
25845 * bindings/jni/jni_utility.h:
25846 * bindings/runtime.cpp:
25848 * bindings/runtime.h:
25849 (Bindings::Instance::):
25858 * bindings/jni/jni_runtime.cpp:
25862 * bindings/jni/jni_runtime.h:
25863 (Bindings::JavaConstructor::value):
25864 (Bindings::JavaField::value):
25865 (Bindings::JavaMethod::value):
25866 (Bindings::JavaClass::_commonDelete):
25867 (Bindings::JavaClass::_commonCopy):
25868 (Bindings::JavaClass::methodNamed):
25869 (Bindings::JavaClass::fieldNamed):
25870 (Bindings::JavaInstance::getClass):
25871 * bindings/runtime.cpp: Added.
25872 * bindings/runtime.h:
25873 (Bindings::Instance::~Instance):
25874 * bindings/runtime_object.cpp: Added.
25884 * bindings/runtime_object.h: Added.
25928 * bindings/jni/jni_runtime.h:
25929 (Bindings::JavaConstructor::_commonCopy):
25930 (Bindings::JavaConstructor::JavaConstructor):
25931 (Bindings::JavaConstructor::operator=):
25932 (Bindings::JavaField::type):
25933 * bindings/runtime.h:
25945 * bindings/Makefile.am: Removed.
25946 * bindings/jni/Makefile.am: Removed.
25947 * bindings/jni/jni_runtime.cpp: Added.
25952 * bindings/jni/jni_runtime.h: Added.
25953 (Bindings::JavaString::JavaString):
25954 (Bindings::JavaString::~JavaString):
25955 (Bindings::JavaString::operator=):
25956 (Bindings::JavaString::characters):
25957 (Bindings::JavaParameter::JavaParameter):
25958 (Bindings::JavaParameter::~JavaParameter):
25959 (Bindings::JavaParameter::operator=):
25960 (Bindings::JavaParameter::type):
25961 (Bindings::JavaConstructor::JavaConstructor):
25962 (Bindings::JavaConstructor::~JavaConstructor):
25963 (Bindings::JavaConstructor::operator=):
25964 (Bindings::JavaConstructor::parameterAt):
25965 (Bindings::JavaConstructor::numParameters):
25966 (Bindings::JavaField::JavaField):
25967 (Bindings::JavaField::~JavaField):
25968 (Bindings::JavaField::operator=):
25969 (Bindings::JavaField::name):
25970 (Bindings::JavaField::type):
25971 (Bindings::JavaMethod::JavaMethod):
25972 (Bindings::JavaMethod::_commonDelete):
25973 (Bindings::JavaMethod::~JavaMethod):
25974 (Bindings::JavaMethod::_commonCopy):
25975 (Bindings::JavaMethod::operator=):
25976 (Bindings::JavaMethod::name):
25977 (Bindings::JavaMethod::returnType):
25978 (Bindings::JavaMethod::parameterAt):
25979 (Bindings::JavaMethod::numParameters):
25980 (Bindings::JavaClass::_commonDelete):
25981 (Bindings::JavaClass::~JavaClass):
25982 (Bindings::JavaClass::_commonCopy):
25983 (Bindings::JavaClass::JavaClass):
25984 (Bindings::JavaClass::operator=):
25985 (Bindings::JavaClass::name):
25986 (Bindings::JavaClass::methodAt):
25987 (Bindings::JavaClass::numMethods):
25988 (Bindings::JavaClass::constructorAt):
25989 (Bindings::JavaClass::numConstructors):
25990 (Bindings::JavaClass::fieldAt):
25991 (Bindings::JavaClass::numFields):
25992 * bindings/jni/jni_utility.cpp:
26014 * bindings/jni/jni_utility.h:
26015 * bindings/objc/Makefile.am: Removed.
26016 * bindings/runtime.h: Added.
26017 (Bindings::Parameter::~Parameter):
26018 (Bindings::Constructor::~Constructor):
26019 (Bindings::Field::~Field):
26020 (Bindings::Method::~Method):
26021 (Bindings::Class::~Class):
26038 * Makefile.am: Fix the build by removing the bindings directory from SUBDIRS.
26050 * bindings/Makefile.am: Added.
26051 * bindings/jni/Makefile.am: Added.
26052 * bindings/jni/jni_utility.cpp: Added.
26064 * bindings/jni/jni_utility.h: Added.
26065 * bindings/objc/Makefile.am: Added.