Commit Graph

54146 Commits

Author SHA1 Message Date
Jim Blandy
b44fbd0499 Bug 1251529: In object metadata world, rename "object metadata" to "allocation metadata" and "callback" to "builder". r=fitzgen
Exceptions:
- AutoSetNewObjectMetadata and its related type are still exclusively about objects.
- JSCompartment::objectMetadataTable is still only about objects.
- the ObjectMetadataMap type still only has objects as keys.

Non-exceptions:

The builder type, and the JSCompartment member:
ObjectMetadataCallback -> AllocationMetadataBuilder
objectMetadataCallback -> allocationMetadataBuilder

jsfriendapi.h interface:
SetObjectMetadataCallback -> SetAllocationMetadataBuilder
GetObjectMetadata -> GetAllocationMetadata

JSCompartment methods:
hasObjectMetadataCallback -> hasAllocationMetadataBuilder
getObjectMetadataCallback -> getAllocationMetadataBuilder
setObjectMetadataCallback -> setAllocationMetadataBuilder
forgetObjectMetadataCallback -> forgetAllocationMetadataBuilder
addressOfMetadataCallback -> addressOfMetadataBuilder

Shell and testing functions:
SavedStacksMetadataCallback -> SavedStacksMetadataBuilder
ShellObjectMetadataCallback -> ShellAllocationMetadataBuilder
EnableShellObjectMetadataCallback -> EnableShellAllocationMetadataBuilder
enableShellObjectMetadataCallback -> enableShellAllocationMetadataBuilder
GetObjectMetadata -> GetAllocationMetadata
getObjectMetadata -> getAllocationMetadata

Delayed metadata collection:
shouldDelayMetadataCallback -> shouldDelayMetadataBuilder
JSCLASS_DELAY_METADATA_CALLBACK -> JSCLASS_DELAY_METADATA_BUILDER
suppressObjectMetadataCallback -> suppressAllocationMetadataBuilder

--HG--
extra : rebase_source : 54af5a56edd9b39466fa418f7a72fc586d0482d3
2015-09-01 15:26:46 -07:00
Wes Kocher
df53918788 Backed out changeset d51e76f5d0b8 (bug 1260104) for apparently tripling the runtime of SM(p) jobs and also introducing a failure in SM(p) jobs
MozReview-Commit-ID: EyLduy3EMOl
2016-04-04 15:42:00 -07:00
Wes Kocher
46f04c50ca Backed out 5 changesets (bug 911216) for apparently tripling the runtime of SM(p) jobs along with introducing a failure in SM(p)
Backed out changeset d70235224525 (bug 911216)
Backed out changeset 2f503e373e6f (bug 911216)
Backed out changeset 2e98f8b36bc6 (bug 911216)
Backed out changeset bd5acdf4a2a1 (bug 911216)
Backed out changeset 58716e562690 (bug 911216)

MozReview-Commit-ID: 807ajHOZvQn
2016-04-04 15:41:17 -07:00
Mike Hommey
e6d52431b6 Bug 1261531 - Remove most obvious cases of useless AC_DEFINEs. r=chmanchester
- HW_THREADS doesn't appear to be doing anything.

- USE_ARM_KUSER is not used since bug 675078. This also removes the configure
  flag that sets it.

- HAVE_SETBUF and HAVE_SNPRINTF are leftover from bug 944935.

- MOZ_MEMORY_GONK is leftover from bug 804303.
2016-04-05 07:16:44 +09:00
Mike Hommey
c25921b32d Bug 1261531 - Remove most obvious cases of useless AC_SUBSTs. r=chmanchester
- DEVELOPER_OPTIONS, INTEL_CC, INTEL_CXX, MOZ_ENABLE_QTMOBILITY,
  GTK_CONFIG are or even were never used outside configure.

- MOZ_PROFILELOCKING which gradually became a no-op over the years. This
  also removes the configure flag that sets it.

- XULRUNNER_STUB_NAME is xulrunner-only, and xulrunner is gone. This
  also removes the configure flag that sets it.

- The only use of MOZ_CAN_RUN_PROGRAMS was removed in bug 780561.

- AR_LIST and AR_DELETE have not been used since bug 584474.

- MOZ_COMPONENT_NSPR_LIBS is leftover from bug 1036894.

- MOZ_PNG_ARM_NEON_CHECK is not used since bug 980488.

- MOZ_WEBRTC_LEAKING_TESTS has been no-oped by bug 825510.

- VPX_NEED_OBJ_INT_EXTRACT and NO_INTEGRATED_AS_CFLAGS are not used since
  bug 1151175.

- WCHAR_CFLAGS is not used since bug 904985.
2016-04-05 07:16:44 +09:00
Mike Hommey
1eda7fa37b Bug 1261359 - Don't set HOST_{C,CXX,LD}FLAGS from {C,CXX,LD}FLAGS at all. r=nalexander
In bug 1260996, we straightened things up for the host flags on cross
compile builds, where the situation was that they were effectively empty
by default, and that hasn't changed.

While working on bug 1260996, it has become clear that there is no much
point in setting the host flags from the target flags on non cross
compile builds, especially when the target flags come from the environment.

That creates a discrepancy with cross compilation builds for no real
reason, and there are effectively too few host things to build that it
would matter anyways. The flags that do matter are the ones for C++11,
C99, and optimisations, and they all are set independently of what is
being removed here.
2016-04-05 07:16:44 +09:00
Mike Hommey
2f27499d10 Bug 1261263 - Remove -fgnu89-inline. r=froydnj
It seems the reason why it was added back in bug 719659 is gone.
2016-04-05 07:16:44 +09:00
Mike Hommey
989453a94b Bug 1261263 - Switch from -std=gnu++0x to -std=gnu++11. r=froydnj
All the GCC and clang versions we support support the latter, so let's
use it.
2016-04-05 07:16:44 +09:00
Chris Manchester
f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Nicolas B. Pierron
94139855f1 Bug 1257929 - Add assertions to ensure the safety of entry resume point encoding. r=h4writer 2016-04-04 17:15:12 +00:00
Nicolas B. Pierron
060a25a7c5 Bug 1257929 - Special case OSR block to avoid bloating safeInsertTop condition. r=h4writer 2016-04-04 17:15:11 +00:00
Benjamin Bouvier
5c506bf453 Bug 1261577: Always set the result of a dead loop in wasm; r=luke
MozReview-Commit-ID: LqtkWNyWlcz

--HG--
extra : rebase_source : cfa09a0c3b31d6ecdd16a596a8c94228e5092652
2016-04-04 14:15:12 +02:00
Benjamin Bouvier
98052b9e34 Bug 1261813: Ensure the argument to wasmBinaryToText always has a buffer; r=luke
MozReview-Commit-ID: ImtX6OLIkpc

--HG--
extra : rebase_source : f1b5fdaad5f485f06b6be5451a48766269a30e9c
2016-04-04 17:09:29 +02:00
Benjamin Bouvier
4d0f270c59 Bug 1259936: Extra test case; r=luke
MozReview-Commit-ID: 8kgJcBm52A1

--HG--
extra : rebase_source : 8463fa9c8c064ce2b3680ea5aad0151497a99f30
2016-04-04 16:52:07 +02:00
Till Schneidereit
ea0d5e374a Bug 911216 - Part 17: Make promise-related Debugger.Object.prototype getters work with wrapped promises. r=shu 2016-04-04 17:55:03 +02:00
Till Schneidereit
8939d2d31a Bug 911216 - Part 15: Port Promise reaction jobs to C++ to enable correct async stacks. r=efaust 2016-03-22 16:22:24 +01:00
Till Schneidereit
1217778c5a Bug 911216 - Part 14: Add support for tracking unhandled promise rejections, exposed through a JSAPI function. r=efaust 2016-03-22 16:22:23 +01:00
Till Schneidereit
0384df1a97 Bug 911216 - Part 13: Set Promise allocation stack as async stack for Promise callback jobs. r=efaust,bz 2016-03-22 16:22:23 +01:00
Till Schneidereit
2bd7c5e7bb Bug 1260104 - Fix make source-package regressions introduced by phytonification of the configure scripts. r=sfink 2016-04-04 17:53:29 +02:00
Benjamin Bouvier
086a17a465 Bug 1259936: Baldr: Simplify calls stack bytes management; r=luke
MozReview-Commit-ID: H7VzCSKNwco

--HG--
extra : rebase_source : 214fcef5ea13e6d96f766d3c9d001ade849825dd
extra : amend_source : 81dafe184c1e4d56b3cf601476f65a77259071cc
2016-03-31 13:42:38 +02:00
Lars T Hansen
2abb7f68c0 Bug 1260835 - Atomics.wait returns strings + remove symbolic constants. r=jolesen
--HG--
extra : rebase_source : 9ff59a7ef9669cdcc63fa599cc871e6c57a9ed5a
2016-04-02 08:41:28 -07:00
Lars T Hansen
c3701b806a Bug 1260910 - introduce 'wait' and 'wake'. r=bbouvier
--HG--
extra : rebase_source : ffca8d69322ab07a2b6e4b5b9a9a4dd5cb313728
2016-04-02 09:17:20 -07:00
Lars T Hansen
f4dc70d21c Bug 1225028 - remove Atomics.fence. r=bbouvier
--HG--
extra : rebase_source : 01f95d41a7f869d26cf7a602d16743801eb0de9d
2016-04-02 08:55:24 -07:00
Lars T Hansen
d6d3b3bc60 Bug 1259544 - remove futexWakeOrRequeue. r=bbouvier
--HG--
extra : rebase_source : 16fc76f38e011f15f3eef291c877aaee053776df
2016-03-31 15:23:23 -07:00
Lars T Hansen
b65e9a82a4 Bug 1231926 - add assertions on BYTEOFFSET_SLOT. r=waldo
--HG--
extra : rebase_source : c0003e525f87e89c264ecde700532fe76445e510
2016-03-24 17:11:10 +01:00
Lars T Hansen
43a06b20d4 Bug 1253351 - count argument of futexWake defaults to +Infinity. r=bbouvier
--HG--
extra : rebase_source : 269248db8d70f6e5c55836129b50fba621c3e7f7
2016-03-24 17:01:26 +01:00
Lars T Hansen
b40b83ba87 Bug 1259392 - nail down isLockFree(4) for good. r=jolesen
--HG--
extra : rebase_source : 16fd4ff1b8345fda097152986d663293e591163f
2016-03-24 19:42:29 +01:00
Lars T Hansen
34cfaec35b Bug 1253371 - make atomics range checking conformant. r=jolesen
--HG--
extra : rebase_source : 96e3d48967ccc47eda7689d180d5077e7d08f7b4
2016-03-24 18:14:37 +01:00
Nicholas Nethercote
3e563eab78 Bug 1260984 (part 3) - Separate js::ClassSpec from js::Class. r=jorendorff.
js::ClassSpec is often all null. When it's not all null, it's often duplicated
among classes. By pulling it out into its own struct, and using a (possibly
null) pointer in js::Class, we can save 138 KiB per process on 64-bit, and half
that on 32-bit.

--HG--
extra : rebase_source : 852ac6770ace46958d018107e78c5c44ebd6528a
2016-04-01 10:59:54 +11:00
Nicholas Nethercote
5bb643ae93 Bug 1260984 (part 2) - Reduce ObjectOps exposure. r=jorendorff.
A number of ObjectOps instances are more exposed than they need to be. This
patch converts several to be either private (within a class) or static (within
a file).

--HG--
extra : rebase_source : f994ac229caa799da66d920d748ec1154fc9206f
2016-03-31 19:24:29 +11:00
Nicholas Nethercote
b4b3e059d6 Bug 1260984 (part 1) - Remove ClonedBlockObject::objectOps_. r=jorendorff.
It's full of nulls which means that JS_NULL_OBJECT_OPS suffices.

--HG--
extra : rebase_source : 4f330175c7212b3e336b22ebae43b28399c5a90c
2016-03-31 19:20:04 +11:00
Morgan Phillips
9050862722 Bug 1255133 - Surface links to external documentation alongside relevant error messages 1/2; r=bgrins
--HG--
extra : rebase_source : 2c285070e648d42ccdd523c2415c6c6c6ed1a871
extra : amend_source : c6dd5cd109d6a767523dab6d35f8f3509995d9cd
2016-04-01 23:17:49 -07:00
Morgan Phillips
3fd9c37a6a Bug 1260509 - Implement String.prototype.padStart / padEnd; r=jorendorff
--HG--
extra : rebase_source : 40ab774040a9f278538352404246f50fa06fd850
extra : amend_source : 63ce3f376ec158df39b1e416f96c2924b9f14e9a
2016-03-31 08:04:12 -07:00
Nicolas B. Pierron
8bfcf1affe Bug 1259867 - GDB Scripts: Disable SpiderMonkey's unwinder by default. r=tromey 2016-04-01 17:23:56 +00:00
Bevis Tseng
47e9ad43d3 Bug 1198093 - Part 1: Expose indexedDB to System with [Exposed=System]. r=khuey 2016-03-30 11:22:14 +08:00
Nicolas B. Pierron
eddc27f821 Bug 1239075 - RangeAnalysis: Assume that all captured results are used in bailing branches. r=h4writer 2016-04-01 16:11:52 +00:00
Benjamin Bouvier
c9c61c841e Bug 1259911: Only add predecessors to the join block once; r=sunfish
MozReview-Commit-ID: A660ASYGb4l

--HG--
extra : rebase_source : 5980168bbba1a5a99212aebcb34d97b4018d1489
2016-03-29 18:41:39 +02:00
Benjamin Bouvier
0d293d93a1 Bug 1260737: wasm: Implement Reinterpret opcodes; r=luke
MozReview-Commit-ID: 8n5BHkVhwNp

--HG--
extra : rebase_source : 2bcce31e35541ee05396b61a805dbdf90da9b427
2016-03-30 14:10:06 +02:00
Benjamin Bouvier
4ffb807254 Bug 1260696: Update wasm text format spewing; r=luke
MozReview-Commit-ID: 8Yu19SYPphg

--HG--
extra : rebase_source : 2da5c57067cbdb283f80644c6473fbf5513d22aa
2016-03-30 13:23:21 +02:00
Benjamin Bouvier
7adef925ac Bug 1254142: Baldr: make control flow opcodes yield subexpressions; r=luke
MozReview-Commit-ID: 7mf8RgGZpSL

--HG--
extra : rebase_source : 6ed6220b13ae1fa4e0fe325e6f1c32a97d1b6585
2016-03-31 12:30:23 +02:00
Jon Coppeard
bc3367f253 Bug 1258097 - Check for redeclaration of imports by functions r=shu 2016-04-01 10:29:03 +01:00
Eddy Bruel
d4a0485727 Bug 1252958 - Implement Debugger.adoptDebuggeeValue;r=jimb 2016-04-01 10:50:30 +02:00
Nick Fitzgerald
c2298e0f56 Bug 1261207 - Forward declare js::ScriptSource instead of casting void* pointers; r=jimb
MozReview-Commit-ID: KfzlLDjCYIn

--HG--
extra : rebase_source : 1fb2abd2cd7ab199b234e81793f6e3da6f973e13
2016-03-31 23:07:34 -07:00
Ryan VanderMeulen
95ae6db97d Backed out changeset 73c0af3f3693 (bug 1251855) because the fix is no longer needed since bug 1232639 landed on Gecko 47+.
--HG--
extra : rebase_source : 573c60e568f5533dcae5498b85eb3970f75a7c1a
2016-03-31 23:07:18 -04:00
Nicholas Nethercote
d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Mike Hommey
2a512468b1 Bug 1260998 - Add support for HOST_CPPFLAGS for consistency. r=nalexander 2016-04-01 09:43:26 +09:00
Mike Hommey
81010d54a2 Bug 1260996 - Don't set HOST_{C,CXX,LD}FLAGS from {C,CXX,LD}FLAGS on cross compiles. r=nalexander
The only cross compiles we actively support were pre-setting those
values to avoid it anyways, so it wasn't doing anything useful.
2016-04-01 09:43:26 +09:00
Mike Hommey
c12b02c70d Bug 1260647 - Unify cross-compilation setup, while moving some of it to moz.configure. r=ted
Gonk, Android, and the generic cross-compilation setup all were using a
different yet similar way to prefix the toolchain. The latter was even
wrong, since the target and target alias usually don't match actual
toolchain prefixes (which don't include the machine part of the target).
2016-04-01 09:43:26 +09:00
Mike Hommey
1f729885a7 Bug 1260624 - Move CROSS_COMPILE to moz.configure. r=ted
Note that this removes force-setting cross_compiling to yes in
old-configure, which wasn't working because every AC_TRY_COMPILE
resets it with $ac_cv_prog_cc_cross or $ac_cv_prog_cxx_cross.
2016-04-01 09:43:26 +09:00
Morgan Phillips
da0f14f2ef Bug 1260620 - Ensure that possibleErrors are not null before attempting to check them; r=jorendorff 2016-03-30 02:53:44 -07:00