Commit Graph

116 Commits

Author SHA1 Message Date
Iain Ireland
e0d1887eb7 Bug 1592302: Part 2: Add new regexp files to build behind config option r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D51929

--HG--
extra : moz-landing-system : lando
2019-12-02 16:13:05 +00:00
Philip Chimento
46313a101e Bug 1590907 - Make ENABLE_INTL_API and ENABLE_TYPED_OBJECTS into js-config macros. r=sfink,firefox-build-system-reviewers,mshal
Whether ENABLE_INTL_API and ENABLE_TYPED_OBJECTS are defined, affects
the behaviour of JS_FOR_PROTOTYPES for the prototypes of Intl and
TypedObject. Therefore, these macros have to be available to embedders.
Rename them to JS_HAS_INTL_API and JS_HAS_TYPED_OBJECTS (in line with
the existing JS_HAS_CTYPES) everywhere they are used, and add them to
js-config.h.in.

Differential Revision: https://phabricator.services.mozilla.com/D52461

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:35 +00:00
Brindusan Cristian
3e0cb96b6e Backed out 7 changesets (bug 1590907) for build bustages at jsfriendapi.cpp. CLOSED TREE
Backed out changeset d6ac9325cb2c (bug 1590907)
Backed out changeset fc85ee5e144c (bug 1590907)
Backed out changeset 1b5b40dcaac4 (bug 1590907)
Backed out changeset 1b2d91f00be2 (bug 1590907)
Backed out changeset 67f939760329 (bug 1590907)
Backed out changeset 4d5818a72b46 (bug 1590907)
Backed out changeset 308b42f3a99c (bug 1590907)

--HG--
extra : rebase_source : 47578231d4749f023c3d206c479ee532dbf6fc6c
extra : histedit_source : 9e7427349342272e7fbe02fee29cb87cda45f75d
2019-11-26 05:23:11 +02:00
Philip Chimento
a710bbae5d Bug 1590907 - Make ENABLE_INTL_API and ENABLE_TYPED_OBJECTS into js-config macros. r=sfink,firefox-build-system-reviewers,mshal
Whether ENABLE_INTL_API and ENABLE_TYPED_OBJECTS are defined, affects
the behaviour of JS_FOR_PROTOTYPES for the prototypes of Intl and
TypedObject. Therefore, these macros have to be available to embedders.
Rename them to JS_HAS_INTL_API and JS_HAS_TYPED_OBJECTS (in line with
the existing JS_HAS_CTYPES) everywhere they are used, and add them to
js-config.h.in.

Differential Revision: https://phabricator.services.mozilla.com/D52461

--HG--
extra : moz-landing-system : lando
2019-11-26 02:02:23 +00:00
Mike Hommey
87b77cda38 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 13:14:42 +00:00
Ciure Andrei
70b54837ac Backed out changeset 7a28c229e654 (bug 1594998) for causing bustages CLOSED TREE 2019-11-15 03:26:34 +02:00
Mike Hommey
63489b5491 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 00:21:32 +00:00
Gurzau Raul
f4fadbbe04 Backed out changeset 4cf8f3f89042 (bug 1594998) for xpcshell failures at test_crash_rust_panic.js on a CLOSED TREE. 2019-11-14 03:52:52 +02:00
Mike Hommey
f33a622429 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj,jandem
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-13 22:07:08 +00:00
Andy Wingo
dd3580208d Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-10-01 14:30:35 +00:00
Dorel Luca
e99487f43b Backed out 2 changesets (bug 1577757, bug 1576900) for build bustage in build/src/js/src/wasm/WasmOpIter.h. CLOSED TREE
Backed out changeset d2fa4e1a030f (bug 1576900)
Backed out changeset 3e82a481ae9d (bug 1577757)
2019-09-30 13:31:49 +03:00
Andy Wingo
64ee9771f9 Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-09-20 14:03:14 +00:00
Henri Sivonen
ac75f8e389 Bug 1578677 - Support --enable-rust-simd for standalone SpiderMonkey builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D46144

--HG--
extra : moz-landing-system : lando
2019-09-24 00:26:55 +00:00
Andreea Pavel
4ceee566c7 Backed out 3 changesets (bug 1577757, bug 1577508, bug 1576900) for bustages at WasmOpIter.h on a CLOSED TREE
Backed out changeset 8a9ae25b1019 (bug 1577508)
Backed out changeset 948702f3a01f (bug 1576900)
Backed out changeset c3aaa0bee2b5 (bug 1577757)
2019-09-20 16:59:20 +03:00
Andy Wingo
274fa1aba0 Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-09-20 13:07:21 +00:00
Daniel Varga
1be9031fc6 Backed out 2 changesets (bug 1577757, bug 1576900) for build bustage in build/src/js/src/wasm/WasmTypes. On a CLOSED TREE
Backed out changeset fe49a3616f91 (bug 1576900)
Backed out changeset 9a94f14b4192 (bug 1577757)
2019-09-20 13:37:51 +03:00
Andy Wingo
5c5a091f6d Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-09-20 07:53:50 +00:00
Asumu Takikawa
9a1da4facc Bug 1511958 - Implement i64<>JavaScript’s BigInt conversions proposal (part 1, build system changes) r=wingo,bbouvier
This is part 1 of a series of revs that split up D41710 into smaller revs. This rev just adds a compile-time flag for wasm BigInt to I64 conversion but does not use it anywhere, as its uses are for toggling features in subsequent revs.

Differential Revision: https://phabricator.services.mozilla.com/D43177

--HG--
extra : moz-landing-system : lando
2019-08-29 11:06:37 +00:00
Mike Hommey
37be9d3076 Bug 1575198 - Reenable cranelift on central. r=nalexander
Bug 1555894 disabled it for gecko builds, but since then bug 1576003
and https://github.com/CraneStation/cranelift/pull/924 landed, which
should make its cost to the build less problematic.

Differential Revision: https://phabricator.services.mozilla.com/D43581

--HG--
extra : moz-landing-system : lando
2019-08-27 16:08:40 +00:00
Mike Hommey
2bf1cc53d8 Bug 1555894 - Only enable cranelift on JS standalone builds. r=lth,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D42261

--HG--
extra : moz-landing-system : lando
2019-08-19 13:12:25 +00:00
Nathan Froyd
f51898d9da Bug 1568026 - move LTO/PGO configure bits to a new file; r=dmajor
To do properly checks on LLVM version correspondence between `clang` and
`rustc`, we need information about both of those compilers to be
available.  The current placement of the LTO/PGO checks is after we know
something about `clang`, but before we know something about `rustc`.
Therefore we need to move those checks after we've gathered information
about `rustc`.

The PGO bits come along for this bug because the LTO bits depend on
them, and we're going to need the Rust information for cross-language
PGO checks in a different bug.  So we might as well move everything all
at once.

Differential Revision: https://phabricator.services.mozilla.com/D39390

--HG--
rename : build/moz.configure/toolchain.configure => build/moz.configure/lto-pgo.configure
extra : moz-landing-system : lando
2019-07-30 16:38:39 +00:00
Mike Hommey
85e29d1e3b Bug 1557583 - Add a --enable-frame-pointers option. r=chmanchester
We've been relying on frame pointers being indirectly enabled via things
like --enable-profiling for some time, but this doesn't scale because
some things may want frame pointers while wanting --disable-profiling.

So we move MOZ_FRAMEPTR_FLAGS to python configure and add a new option
to decide whether to enable frame pointers or not.

Differential Revision: https://phabricator.services.mozilla.com/D34117

--HG--
extra : moz-landing-system : lando
2019-06-12 22:30:46 +00:00
Mike Hommey
cfe985532a Bug 1554928 - Remove configure options that have been deprecated for a while. r=nalexander
- DISABLE_SHARED_JS and DISABLE_EXPORT_JS have been deprecated for 3
years,
- MOZ_JEMALLOC4 has been deprecated for 2 years.

Differential Revision: https://phabricator.services.mozilla.com/D32928

--HG--
extra : moz-landing-system : lando
2019-05-29 02:01:02 +00:00
Mike Hommey
31e8325621 Bug 1554056 - Don't allow --enable-shared-js outside of standalone spidermonkey builds. r=dmajor
The option has presumably not worked for at least a year, and was seldom
used.

Differential Revision: https://phabricator.services.mozilla.com/D32418

--HG--
extra : moz-landing-system : lando
2019-05-28 18:45:03 +00:00
Bogdan Tara
5114c83873 Backed out changeset fdf579877df4 (bug 1554056) for causing build bustages CLOSED TREE 2019-05-28 04:04:01 +03:00
Mike Hommey
e9e6152ed8 Bug 1554056 - Don't allow --enable-shared-js outside of standalone spidermonkey builds. r=dmajor
The option has presumably not worked for at least a year, and was seldom
used.

Differential Revision: https://phabricator.services.mozilla.com/D32418

--HG--
extra : moz-landing-system : lando
2019-05-28 00:43:35 +00:00
Bogdan Tara
5cf3542fa0 Backed out changeset aa0c152930e2 (bug 1554056) for StructuredClone.h related build bustages CLOSED TREE 2019-05-28 03:38:08 +03:00
Mike Hommey
0c0c3b8e3e Bug 1554056 - Don't allow --enable-shared-js outside of standalone spidermonkey builds. r=dmajor
The option has presumably not worked for at least a year, and was seldom
used.

Differential Revision: https://phabricator.services.mozilla.com/D32418

--HG--
extra : moz-landing-system : lando
2019-05-28 00:15:07 +00:00
Nathan Froyd
49c1be9b8f Bug 1545502 - move fuzzing options to toolchain.configure; r=firefox-build-system-reviewers,chmanchester
We moved fuzzing options out of `toolkit/moz.configure` into `js`'s
configure a while back, but we seem to have snuck some fuzzing-related
options into `toolchain.configure` in the interim.  But we can't make
the `toolchain.configure` bits depend on the `js` bits; let's just put
everything in `toolchain.configure`.

Differential Revision: https://phabricator.services.mozilla.com/D28084

--HG--
extra : moz-landing-system : lando
2019-04-23 19:15:17 +00:00
Jim Porter
cb257eff1c Bug 1479970 - Enable building Tracelogger by default; r=tcampbell
This patch enables compilation of the tracelogger by default on nightly builds
as well as providing an environment variable (JS_TRACE_LOGGING) to enable or
disable tracelogger instrumentation when compiling Javascript. This helps to
reduce the performance impact of the Tracelogger code when not in use. In the
future, this could be improved to recompile the JS with/without Tracelogger
instrumentation when toggling Tracelogger support.

Differential Revision: https://phabricator.services.mozilla.com/D26255

--HG--
extra : moz-landing-system : lando
2019-04-11 23:52:41 +00:00
Nicolas B. Pierron
db7df4aaa2 Bug 1541463 - Enable MacroAssembler spew when --enable-jitspew is provided. r=sstangl
Differential Revision: https://phabricator.services.mozilla.com/D25945

--HG--
extra : moz-landing-system : lando
2019-04-03 16:47:49 +00:00
Lars T Hansen
2f39ed5e4a Bug 1531670 - Replace ENABLE_WASM_GENERALIZED_TABLES. r=bbouvier
Replace all uses of ENABLE_WASM_GENERALIZED_TABLES with
ENABLE_WASM_REFTYPES, plus some knock-on effects.

Replace all uses of wasmGeneralizedTables with wasmReftypesEnabled.

Drive-by fix: replace 'anyfunc' in a couple of error strings with the
canonical 'funcref'.

Drive-by fix: remove isSimdAvailable, it is not used and we have no
SIMD.

Differential Revision: https://phabricator.services.mozilla.com/D21653

--HG--
extra : rebase_source : 043732afa1661133eaff54554e56f76fe3e32504
2019-03-01 09:33:31 +01:00
Mike Hommey
e5a0b72512 Bug 1528226 - Check rustc version before cbindgen. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D19941

--HG--
extra : moz-landing-system : lando
2019-02-15 15:23:08 +00:00
Benjamin Bouvier
f025370191 Bug 1527861: Allow disabling BinAST compilation; r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D19765

--HG--
extra : rebase_source : 059c236c7c3bcfff8349072cfb7a0364cf4d5f71
extra : amend_source : ee72ef04d5bc75c003f6aa3eedae028a8a3f491d
extra : histedit_source : 795c699d7f003b69569e8aacede6fea76b6e79f9
2019-02-14 11:52:57 +01:00
Benjamin Bouvier
afec75505d Bug 1524337: Move WebAssembly reftypes/gc configuration to moz.configure; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D19788

--HG--
extra : rebase_source : 35112254e9eb5f239650466cc73329ccc175af4a
extra : histedit_source : 5a1a1d6b663c46b9cb63998566e8f101cf19eb46
2019-02-14 12:59:38 +01:00
Benjamin Bouvier
638a7c7e06 Bug 1524337: Use moz.configure for the WebAssembly bulk memory proposal; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D19787

--HG--
extra : rebase_source : 7c4a67e8edf4f86e1f36e05284e1391a79556a07
extra : histedit_source : e82240942aafcde39e6b28087158769f12e428bd
2019-02-14 12:54:43 +01:00
Benjamin Bouvier
15a9d62bdb Bug 1524337: Rename ENABLE_BINARYDATA to ENABLE_TYPED_OBJECTS and use moz.configure; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D19786

--HG--
extra : rebase_source : af564cff5be797b6c993fc80d9527b5196680ff8
extra : histedit_source : 8f8f4afa70341fd0628f46f41b5a01260d01c9b3
2019-02-14 12:44:25 +01:00
Andy Wingo
7d559ef8c3 Bug 1527860 - Remove ENABLE_BIGINT #ifdef r=jandem,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D19766

--HG--
extra : moz-landing-system : lando
2019-02-14 15:03:44 +00:00
Tooru Fujisawa
f56506f966 Bug 1527515 - Enable building BinAST on win32 and android nightlies. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D19608

--HG--
extra : moz-landing-system : lando
2019-02-13 08:42:47 +00:00
Razvan Maries
e5944cdd0e Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-07 23:49:13 +02:00
Andy Wingo
585800608e Bug 1522436 - Enable BigInt compilation by default r=jandem,terpri,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D17487

--HG--
extra : moz-landing-system : lando
2019-02-06 13:41:56 +00:00
Benjamin Bouvier
62e9c068e7 Bug 1523993: Add JitOptions to disable wasm fast paths; r=luke
This adds a new configure option `--enable-wasm-codegen-debug`, which defaults
to true in debug builds (disable otherwise).

It's a first step so as to be able to use this in both the shell and browser,
using the env variables JIT_OPTION_{JitOption field name}.

Differential Revision: https://phabricator.services.mozilla.com/D18341

--HG--
extra : rebase_source : 37c717f4cc225a9a7d162df3b0312b68e39ad07e
2019-01-31 18:29:02 +01:00
Brindusan Cristian
2ad6bc9f9b Backed out 2 changesets (bug 1523993) for build bustages on WasmStubs.cpp. CLOSED TREE
Backed out changeset e8a0e28d1443 (bug 1523993)
Backed out changeset 454d1b05007a (bug 1523993)

--HG--
extra : histedit_source : f24f6597ab5e03d2c55da7a040cbe213234ae81a
2019-02-06 19:12:54 +02:00
Benjamin Bouvier
2ce2c5e407 Bug 1523993: Add JitOptions to disable wasm fast paths; r=luke
This adds a new configure option `--enable-wasm-codegen-debug`, which defaults
to true in debug builds (disable otherwise).

It's a first step so as to be able to use this in both the shell and browser,
using the env variables JIT_OPTION_{JitOption field name}.

Differential Revision: https://phabricator.services.mozilla.com/D18341

--HG--
extra : moz-landing-system : lando
2019-02-06 16:39:31 +00:00
Mike Hommey
367db61b4a Bug 1519319 - Move bindgen.configure include to js/moz.configure. r=froydnj
Bindgen is only used when building js or toolkit, so we only need to
include the configure part in js/moz.configure, which is included in
both cases.

Depends on D16293

Differential Revision: https://phabricator.services.mozilla.com/D16294

--HG--
extra : moz-landing-system : lando
2019-01-11 22:17:54 +00:00
Mike Hommey
65e1e6bb41 Bug 1519040 - Remove some unused old-configure assignments. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16159

--HG--
extra : moz-landing-system : lando
2019-01-10 22:02:04 +00:00
Mike Hommey
ab48d17e1a Bug 1513134 - Detect unnecessary --help dependencies. r=firefox-build-system-reviewers,gps
Depends on D14125

Differential Revision: https://phabricator.services.mozilla.com/D14126

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:28 +00:00
Matthew Gaudet
056ca1083b Bug 1504005 - Initial Structured Spewer r=jandem
This spewer design has two goals:

  1. Provide a spew mechanism that has first-class support for slicing and
     dicing output. This means that filtering by script and channel should be
     the dominant output mechanism.
  2. Provide a simple powerful mechanism for getting information out of the
     compiler and into tools. I'm inspired by tools like CacheIR analyzer,
     IR Hydra, and the upcoming tracelogger integration into perf.html.

Differential Revision: https://phabricator.services.mozilla.com/D11787

--HG--
extra : moz-landing-system : lando
2018-11-29 14:37:01 +00:00
Brindusan Cristian
203afd2294 Backed out changeset f7f8b232d111 (bug 1504005) for devtools failures on browser_dbg_rr_breakpoints-01.js. 2018-11-28 18:04:30 +02:00
Matthew Gaudet
9167627d07 Bug 1504005 - Initial Structured Spewer r=jandem
This spewer design has two goals:

  1. Provide a spew mechanism that has first-class support for slicing and
     dicing output. This means that filtering by script and channel should be
     the dominant output mechanism.
  2. Provide a simple powerful mechanism for getting information out of the
     compiler and into tools. I'm inspired by tools like CacheIR analyzer,
     IR Hydra, and the upcoming tracelogger integration into perf.html.

Differential Revision: https://phabricator.services.mozilla.com/D11787

--HG--
extra : moz-landing-system : lando
2018-11-28 14:03:02 +00:00