summaryrefslogtreecommitdiff
path: root/www/seamonkey/patches/patch-mozilla_js_public_HeapAPI.h
blob: 4a72120892458d9867cfd5be8dc73f3e12eff8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-mozilla_js_public_HeapAPI.h,v 1.1 2013/07/12 12:24:10 ryoon Exp $

--- mozilla/js/public/HeapAPI.h.orig	2013-06-20 04:35:06.000000000 +0000
+++ mozilla/js/public/HeapAPI.h
@@ -11,24 +11,7 @@
 namespace js {
 namespace gc {
 
-/*
- * Page size must be static to support our arena pointer optimizations, so we
- * are forced to support each platform with non-4096 pages as a special case.
- * Note: The freelist supports a maximum arena shift of 15.
- * Note: Do not use JS_CPU_SPARC here, this header is used outside JS.
- */
-#if (defined(SOLARIS) || defined(__FreeBSD__)) && \
-    (defined(__sparc) || defined(__sparcv9) || defined(__ia64))
-const size_t PageShift = 13;
-const size_t ArenaShift = PageShift;
-#elif defined(__powerpc64__)
-const size_t PageShift = 16;
 const size_t ArenaShift = 12;
-#else
-const size_t PageShift = 12;
-const size_t ArenaShift = PageShift;
-#endif
-const size_t PageSize = size_t(1) << PageShift;
 const size_t ArenaSize = size_t(1) << ArenaShift;
 const size_t ArenaMask = ArenaSize - 1;