Fixes <rdar://problem/
4498338> JavaScriptCore fails to compile for ppc64
Other 64 bit build fixes.
* kjs/collector.cpp:
(KJS::Collector::markOtherThreadConservatively): test for __DARWIN_UNIX03 and use __r1
* kjs/dtoa.cpp:
(Bigint::): cast PRIVATE_mem to unsigned to prevent warning
* bindings/jni/jni_utility.cpp:
(KJS::Bindings::getJavaVM): cast jniError to long to prevent format warning
(KJS::Bindings::getJNIEnv): cast jniError to long to prevent format warning
* bindings/runtime_root.cpp:
(KJS::Bindings::addNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
(KJS::Bindings::removeNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13658
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-04-03 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Adele.
+
+ Fixes <rdar://problem/4498338> JavaScriptCore fails to compile for ppc64
+ Other 64 bit build fixes.
+
+ * kjs/collector.cpp:
+ (KJS::Collector::markOtherThreadConservatively): test for __DARWIN_UNIX03 and use __r1
+ * kjs/dtoa.cpp:
+ (Bigint::): cast PRIVATE_mem to unsigned to prevent warning
+ * bindings/jni/jni_utility.cpp:
+ (KJS::Bindings::getJavaVM): cast jniError to long to prevent format warning
+ (KJS::Bindings::getJNIEnv): cast jniError to long to prevent format warning
+ * bindings/runtime_root.cpp:
+ (KJS::Bindings::addNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
+ (KJS::Bindings::removeNativeReference): cast CFDictionaryGetValue to unsigned long to prevent warning
+
2006-03-31 Darin Adler <darin@apple.com>
Reviewed by Geoff.
jvm = jvmArray[0];
}
else
- fprintf(stderr, "%s: JNI_GetCreatedJavaVMs failed, returned %ld\n", __PRETTY_FUNCTION__, jniError);
+ fprintf(stderr, "%s: JNI_GetCreatedJavaVMs failed, returned %ld\n", __PRETTY_FUNCTION__, (long)jniError);
return jvm;
}
if ( jniError == JNI_OK )
return env;
else
- fprintf(stderr, "%s: AttachCurrentThread failed, returned %ld\n", __PRETTY_FUNCTION__, jniError);
+ fprintf(stderr, "%s: AttachCurrentThread failed, returned %ld\n", __PRETTY_FUNCTION__, (long)jniError);
return NULL;
}
if (root) {
CFMutableDictionaryRef referencesDictionary = getReferencesDictionary (root);
- unsigned int numReferences = (unsigned int)CFDictionaryGetValue (referencesDictionary, imp);
+ unsigned long numReferences = (unsigned long)CFDictionaryGetValue (referencesDictionary, imp);
if (numReferences == 0) {
JSLock lock;
gcProtect(imp);
CFMutableDictionaryRef referencesDictionary = findReferenceDictionary (imp);
if (referencesDictionary) {
- unsigned int numReferences = (unsigned int)CFDictionaryGetValue (referencesDictionary, imp);
+ unsigned long numReferences = (unsigned long)CFDictionaryGetValue (referencesDictionary, imp);
if (numReferences == 1) {
JSLock lock;
gcUnprotect(imp);
// scan the stack
#if PLATFORM(X86)
markStackObjectsConservatively((void *)regs.esp, pthread_get_stackaddr_np(thread->posixThread));
+#elif (PLATFORM(PPC) || PLATFORM(PPC64)) && __DARWIN_UNIX03
+ markStackObjectsConservatively((void *)regs.__r1, pthread_get_stackaddr_np(thread->posixThread));
#elif PLATFORM(PPC) || PLATFORM(PPC64)
markStackObjectsConservatively((void *)regs.r1, pthread_get_stackaddr_np(thread->posixThread));
#else
#else
len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1)
/sizeof(double);
- if (pmem_next - private_mem + len <= PRIVATE_mem) {
+ if (pmem_next - private_mem + len <= (unsigned)PRIVATE_mem) {
rv = (Bigint*)pmem_next;
pmem_next += len;
}