2012-04-30 11:28:42 -04:00
|
|
|
$OpenBSD: patch-js_src_jscntxt_h,v 1.2 2012/04/30 15:28:42 landry Exp $
|
2012-03-16 17:31:24 -04:00
|
|
|
https://bug691898.bugzilla.mozilla.org/attachment.cgi?id=588391
|
|
|
|
use yarr interpreter on ppc
|
2012-04-30 11:28:42 -04:00
|
|
|
--- js/src/jscntxt.h.orig Wed Apr 11 15:55:01 2012
|
|
|
|
+++ js/src/jscntxt.h Wed Apr 18 22:30:01 2012
|
|
|
|
@@ -221,18 +221,24 @@ struct JSRuntime
|
2012-03-16 17:31:24 -04:00
|
|
|
* Both of these allocators are used for regular expression code which is shared at the
|
|
|
|
* thread-data level.
|
|
|
|
*/
|
|
|
|
+#if ENABLE_ASSEMBLER
|
2012-04-30 11:28:42 -04:00
|
|
|
JSC::ExecutableAllocator *execAlloc_;
|
2012-03-16 17:31:24 -04:00
|
|
|
+#endif
|
2012-04-30 11:28:42 -04:00
|
|
|
WTF::BumpPointerAllocator *bumpAlloc_;
|
|
|
|
js::RegExpPrivateCache *repCache_;
|
2012-03-16 17:31:24 -04:00
|
|
|
|
|
|
|
+#if ENABLE_ASSEMBLER
|
|
|
|
JSC::ExecutableAllocator *createExecutableAllocator(JSContext *cx);
|
|
|
|
+#endif
|
|
|
|
WTF::BumpPointerAllocator *createBumpPointerAllocator(JSContext *cx);
|
|
|
|
js::RegExpPrivateCache *createRegExpPrivateCache(JSContext *cx);
|
|
|
|
|
|
|
|
public:
|
|
|
|
+#if ENABLE_ASSEMBLER
|
2012-04-30 11:28:42 -04:00
|
|
|
JSC::ExecutableAllocator *getExecutableAllocator(JSContext *cx) {
|
|
|
|
return execAlloc_ ? execAlloc_ : createExecutableAllocator(cx);
|
2012-03-16 17:31:24 -04:00
|
|
|
}
|
|
|
|
+#endif
|
2012-04-30 11:28:42 -04:00
|
|
|
WTF::BumpPointerAllocator *getBumpPointerAllocator(JSContext *cx) {
|
|
|
|
return bumpAlloc_ ? bumpAlloc_ : createBumpPointerAllocator(cx);
|
|
|
|
}
|