Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpgrade to Spidermonkey 39 #37
Conversation
|
Note - I included this version of JS_GetAddressableObject in my original mozjs upgrade: /*
* Returns the object that the given candidate pointer points to, if it points
* to a valid object in this runtime.
*/
JS_FRIEND_API(JSObject *)
JS_GetAddressableObject(JSRuntime *rt, uintptr_t candidateObj)
{
gc::AllocKind kind;
void *thing;
if (IsAddressableGCThing(rt,
candidateObj,
false,
&kind,
NULL,
&thing) != CGCT_VALID) {
return NULL;
}
if (MapAllocToTraceKind(kind) != JSTRACE_OBJECT) {
return NULL;
}
return reinterpret_cast<JSObject *>(thing);
} |
|
This existed at the time:
|
|
@bors-servo: r+ |
|
@bors-servo r=larsbergstrom |
|
|
Upgrade to Spidermonkey 39 Well, not really spidermonkey 39. It's just whatever I had pulled from master at the time. Maybe mozilla/gecko-dev@2f60231 ? All the imported code goes into the mozjs directory now. There's a linker hack to disable some weak linking in MFBT which doesn't work with the way servo links things together. I'll probably have to discuss that with glandium. There's also a hack to remove PR_GetCurrentThread since that's totally broken if you're not using NSPR. That just needs to be cleaned up a bit and landed upstream. I'm not entirely sure what to do with the library naming. I would actually prefer if we didn't use a shared mozjs on Android.
|
|
|
@bors-servo r=larsbergstrom,metajack I reviewed the final commit. |
|
|
Upgrade to Spidermonkey 39 Well, not really spidermonkey 39. It's just whatever I had pulled from master at the time. Maybe mozilla/gecko-dev@2f60231 ? All the imported code goes into the mozjs directory now. There's a linker hack to disable some weak linking in MFBT which doesn't work with the way servo links things together. I'll probably have to discuss that with glandium. There's also a hack to remove PR_GetCurrentThread since that's totally broken if you're not using NSPR. That just needs to be cleaned up a bit and landed upstream. I'm not entirely sure what to do with the library naming. I would actually prefer if we didn't use a shared mozjs on Android.
|
|
|
@bors-servo r=larsbergstrom,metajack |
|
|
Upgrade to Spidermonkey 39 Well, not really spidermonkey 39. It's just whatever I had pulled from master at the time. Maybe mozilla/gecko-dev@2f60231 ? All the imported code goes into the mozjs directory now. There's a linker hack to disable some weak linking in MFBT which doesn't work with the way servo links things together. I'll probably have to discuss that with glandium. There's also a hack to remove PR_GetCurrentThread since that's totally broken if you're not using NSPR. That just needs to be cleaned up a bit and landed upstream. I'm not entirely sure what to do with the library naming. I would actually prefer if we didn't use a shared mozjs on Android.
|
|
bbb194f
to
dd39a97
|
Merging directly since the default build won't work. -j4 appears to cause us to run out of resources on the build machine, and lower numbers cause the build to die by taking too long. |
michaelwu commentedMay 21, 2015
Well, not really spidermonkey 39. It's just whatever I had pulled from master at the time. Maybe mozilla/gecko-dev@2f60231 ?
All the imported code goes into the mozjs directory now. There's a linker hack to disable some weak linking in MFBT which doesn't work with the way servo links things together. I'll probably have to discuss that with glandium. There's also a hack to remove PR_GetCurrentThread since that's totally broken if you're not using NSPR. That just needs to be cleaned up a bit and landed upstream.
I'm not entirely sure what to do with the library naming. I would actually prefer if we didn't use a shared mozjs on Android.