Skip to content

Commit

Permalink
Bug 1590907 - Include JS_FOO macros that influence public API in js-c…
Browse files Browse the repository at this point in the history
…onfig.h. r=sfink, a=RyanVM

These are configure macros that start with JS_ and have an effect on the
public API declared in JSAPI header files, so they should be included in
the installed js-config.h header file.

(Includes ESR68-only JS_UNALIGNED_PRIVATE_VALUES)

https://bugzilla.mozilla.org/show_bug.cgi?id=1590907
  • Loading branch information
ptomato committed Dec 5, 2019
1 parent ce04ca9 commit 47ddcab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions js/src/js-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
/* Define to 1 if SpiderMonkey should include ctypes support. */
#undef JS_HAS_CTYPES

/* Define to 1 if SpiderMonkey should include trace logging support. */
#undef JS_TRACE_LOGGING

/* Define to 1 if SpiderMonkey should include a breakpoint function for
* artificial OOMs. */
#undef JS_OOM_BREAKPOINT

/* Define to 1 if SpiderMonkey should support the ability to perform
entirely too much GC. */
#undef JS_GC_ZEAL
Expand All @@ -48,12 +55,25 @@
/* Define to 1 to perform extra assertions and heap poisoning. */
#undef JS_CRASH_DIAGNOSTICS

/* Define to 1 if SpiderMonkey is compiled with support for private values at
* odd-numbered memory addresses. */
#undef JS_UNALIGNED_PRIVATE_VALUES

/* Define to 1 if SpiderMonkey is in NUNBOX32 mode. */
#undef JS_NUNBOX32

/* Define to 1 if SpiderMonkey is in PUNBOX64 mode. */
#undef JS_PUNBOX64

/* Define exactly one of these to 1 to indicate JIT code generation mode. */
#undef JS_CODEGEN_NONE
#undef JS_CODEGEN_ARM
#undef JS_CODEGEN_ARM64
#undef JS_CODEGEN_MIPS32
#undef JS_CODEGEN_MIPS64
#undef JS_CODEGEN_X86
#undef JS_CODEGEN_X64

/* MOZILLA JSAPI version number components */
#undef MOZJS_MAJOR_VERSION
#undef MOZJS_MINOR_VERSION
Expand Down

0 comments on commit 47ddcab

Please sign in to comment.