9cd6a39c3e
Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available. This package tracks 38 ESR.
22 lines
977 B
C++
22 lines
977 B
C++
$NetBSD: patch-js_src_asmjs_AsmJSSignalHandlers.cpp,v 1.1 2015/07/09 14:13:52 ryoon Exp $
|
|
|
|
Increase portability for non-x86 Darwin by not hardwiring
|
|
x86_THREAD_STATE.
|
|
|
|
--- js/src/asmjs/AsmJSSignalHandlers.cpp.orig 2015-05-04 00:43:23.000000000 +0000
|
|
+++ js/src/asmjs/AsmJSSignalHandlers.cpp
|
|
@@ -637,10 +637,11 @@ HandleMachException(JSRuntime* rt, const
|
|
mach_port_t rtThread = request.body.thread.name;
|
|
|
|
// Read out the JSRuntime thread's register state.
|
|
- x86_thread_state_t state;
|
|
- unsigned int count = x86_THREAD_STATE_COUNT;
|
|
+ moz_platform_thread_state_t state;
|
|
+ thread_state_flavor_t flavor = MOZ_PLATFORM_THREAD_STATE_FLAVOR;
|
|
+ mach_msg_type_number_t count = MOZ_PLATFORM_THREAD_STATE_COUNT;
|
|
kern_return_t kret;
|
|
- kret = thread_get_state(rtThread, x86_THREAD_STATE, (thread_state_t)&state, &count);
|
|
+ kret = thread_get_state(rtThread, flavor, (thread_state_t)&state, &count);
|
|
if (kret != KERN_SUCCESS)
|
|
return false;
|
|
|