1 |
axs 14/05/05 20:28:23 |
2 |
|
3 |
Added: spidermonkey-24-upward-growing-stack.patch |
4 |
Log: |
5 |
fix compilation on hppa (bug 497900) |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-lang/spidermonkey/files/spidermonkey-24-upward-growing-stack.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/files/spidermonkey-24-upward-growing-stack.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/files/spidermonkey-24-upward-growing-stack.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: spidermonkey-24-upward-growing-stack.patch |
16 |
=================================================================== |
17 |
diff -Naur mozjs-24.2.0/js/src/gc/RootMarking.cpp mozjs-24.2.0.new/js/src/gc/RootMarking.cpp |
18 |
--- mozjs-24.2.0/js/src/gc/RootMarking.cpp 2013-10-29 16:40:26.000000000 -0400 |
19 |
+++ mozjs-24.2.0.new/js/src/gc/RootMarking.cpp 2014-05-05 16:16:15.570098309 -0400 |
20 |
@@ -320,7 +320,7 @@ |
21 |
|
22 |
uintptr_t *stackMin, *stackEnd; |
23 |
#if JS_STACK_GROWTH_DIRECTION > 0 |
24 |
- stackMin = rt->nativeStackBase; |
25 |
+ stackMin = reinterpret_cast<uintptr_t *>(rt->nativeStackBase); |
26 |
stackEnd = cgcd->nativeStackTop; |
27 |
#else |
28 |
stackMin = cgcd->nativeStackTop + 1; |
29 |
diff -Naur mozjs-24.2.0/js/src/jsapi.cpp mozjs-24.2.0.new/js/src/jsapi.cpp |
30 |
--- mozjs-24.2.0/js/src/jsapi.cpp 2013-12-06 17:52:35.000000000 -0500 |
31 |
+++ mozjs-24.2.0.new/js/src/jsapi.cpp 2014-05-05 16:17:01.330099145 -0400 |
32 |
@@ -863,10 +863,6 @@ |
33 |
|
34 |
PodZero(&debugHooks); |
35 |
PodZero(&atomState); |
36 |
- |
37 |
-#if JS_STACK_GROWTH_DIRECTION > 0 |
38 |
- nativeStackLimit = UINTPTR_MAX; |
39 |
-#endif |
40 |
} |
41 |
|
42 |
bool |
43 |
diff -Naur mozjs-24.2.0/js/src/jsfriendapi.cpp mozjs-24.2.0.new/js/src/jsfriendapi.cpp |
44 |
--- mozjs-24.2.0/js/src/jsfriendapi.cpp 2013-10-29 16:40:20.000000000 -0400 |
45 |
+++ mozjs-24.2.0.new/js/src/jsfriendapi.cpp 2014-05-05 16:18:30.350100769 -0400 |
46 |
@@ -32,7 +32,11 @@ |
47 |
PerThreadDataFriendFields::RuntimeMainThreadOffset); |
48 |
|
49 |
PerThreadDataFriendFields::PerThreadDataFriendFields() |
50 |
+#if JS_STACK_GROWTH_DIRECTION > 0 |
51 |
+ : nativeStackLimit(UINTPTR_MAX) |
52 |
+#else |
53 |
: nativeStackLimit(0) |
54 |
+#endif |
55 |
{ |
56 |
#if defined(JSGC_ROOT_ANALYSIS) || defined(JSGC_USE_EXACT_ROOTING) |
57 |
PodArrayZero(thingGCRooters); |