Commit Graph

61687 Commits

Author SHA1 Message Date
Ryan VanderMeulen
4d504e0608 Backed out 3 changesets (bug 1393230) because it touches the servo directory.
Backed out changeset 9115364cd4aa (bug 1393230)
Backed out changeset f762f605dd83 (bug 1393230)
Backed out changeset c366bfc13e86 (bug 1393230)
2017-09-07 09:33:53 -04:00
Eric Rahm
986f3bbc5e Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.

Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.
2017-08-14 14:22:50 -07:00
Nicolas B. Pierron
e3bca1c862 Bug 966743 - Inline Array.prototype.push with more than one argument. r=jandem 2017-09-07 13:01:13 +00:00
Jan de Mooij
15de1c0cb3 Bug 1394835 part 4 - Split js::DefineProperty/DefineElement in separate accessor vs data functions. r=anba 2017-09-07 14:59:24 +02:00
Eric Rahm
030b39d813 Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.

Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.

--HG--
extra : rebase_source : 63ab2c4620cfcd4b764d42d654c82f30f984d016
extra : source : 9115364cd4aa078c49bba7911069f8178e55166f
2017-08-14 14:22:50 -07:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Bobby Holley
52ba410a6e Bug 1397052 - Don't update |result| after the acquire fence in nsThreadSafeRefCnt::operator--. r=froydnj
MozReview-Commit-ID: 1Yp4kFXA5gV
2017-09-06 21:55:12 -07:00
Phil Ringnalda
bc78097d88 Backed out 2 changesets (bug 1396723) for !ElementAccess::Get(mHead).mPrev assertion failures
Backed out changeset 4f17343164b6 (bug 1396723)
Backed out changeset b744eba9ca78 (bug 1396723)

MozReview-Commit-ID: JbvM6oMxEFl
2017-09-06 21:39:20 -07:00
Mike Hommey
b16f4035ba Bug 1396723 - Simplify the trait users of DoublyLinkedList need to define. r=froydnj
While the flexibility of the current trait is nice, it's actually not
used to its fullest anywhere, and is boilerplate-y. While it is useful
to be able to put the links anywhere, there's not much usefulness from
being able to split mNext and mPrev.

So instead of a trait that allows to get/set mNext and mPrev
independently, we just use a trait that tells how to get a reference to
a DoublyLinkedListElement from a list element itself.

--HG--
extra : rebase_source : f84c5799c305a4a3b7dc5deb727a05d4d537bb15
2017-09-02 08:09:58 +09:00
Wes Kocher
f66c96f2c8 Backed out 2 changesets (bug 1396723) for build failures in TestDoublyLinkedList.cpp a=backout
Backed out changeset 1c0f9d069ade (bug 1396723)
Backed out changeset 6ca94a450b81 (bug 1396723)

MozReview-Commit-ID: 2w3WTvhpg6J
2017-09-06 14:30:41 -07:00
Mike Hommey
9a3dd41f50 Bug 1396723 - Simplify the trait users of DoublyLinkedList need to define. r=froydnj
While the flexibility of the current trait is nice, it's actually not
used to its fullest anywhere, and is boilerplate-y. While it is useful
to be able to put the links anywhere, there's not much usefulness from
being able to split mNext and mPrev.

So instead of a trait that allows to get/set mNext and mPrev
independently, we just use a trait that tells how to get a reference to
a DoublyLinkedListElement from a list element itself.

--HG--
extra : rebase_source : b7d502754a764670e291acdd56726948db935497
2017-09-02 08:09:58 +09:00
Sebastian Hengst
9c8a09d458 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Kris Maglione
e8446ea313 Bug 1396570: Null check getter/setter when JSPROP_GETTER/JSPROP_SETTER is set. r=bholley f=jandem
These flags don't guarantee that the getter and setter functions are defined.

MozReview-Commit-ID: GBcoRYoKHqL

--HG--
extra : rebase_source : 1234ec91cf05566a3130360b152bf2cb986ec1c3
2017-09-04 17:27:31 -07:00
Kris Maglione
b3ba0520ee Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa
Going through the extension policy service rather than using
WebExtensionPolicy objects directly adds a lot of unnecessary overhead to
common operations on extension principals, and also makes the code more
complicated than it needs to be.

We also use weak references to policy objects here, since principals should
ideally lose as much of their elevated privileges as possible once the
extension instance that created them has been destroyed (which is something we
couldn't handle easily when we simply tracked ID strings).

MozReview-Commit-ID: KDNvVdvLkIt

--HG--
extra : rebase_source : 1b567919d2461bd0315d1a7d89f330cbd585f579
2017-09-05 11:04:43 -07:00
Philip Chimento
addeeddf9d Bug 1379540 - Don't preserve timestamp when copying configure.in to configure. r=RyanVM 2017-09-05 15:47:44 -07:00
Sebastian Hengst
4d2231acf0 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
Andrew McCreight
521ca7e3b6 Bug 1394496 - Evaluate's envChainObject should throw if passed a global. r=tcampbell
MozReview-Commit-ID: 7PBHQkvJigD

--HG--
extra : rebase_source : 113d54cac8ee0072f9ef11169ad0f51f68bca0da
2017-09-05 13:40:01 -07:00
Miran.Karic
85f9cd60a7 Bug 1396767 - MIPS: Fix MOVF in simulator. r=lth
When reading cc field for MOVF instruction, incorrect bits were
accessed. This caused the test asm.js/testMathLib.js to fail.
2017-09-05 03:16:00 -04:00
Nick Fitzgerald
d793c1e4c1 Bug 1277338 - Part 11: Add js/rust to standalone JS source packages; r=sfink
This commit ensures that we copy the js/rust crate into the resulting source
tarball whenever we make standalone JS releases.
2017-09-05 09:26:21 -07:00
Nick Fitzgerald
8f99cd3071 Bug 1277338 - Part 9: Move the servo/rust-mozjs crate providing bindings to SpiderMonkey to js/rust; r=sfink 2017-09-05 09:26:21 -07:00
Lars T Hansen
c2f47ff414 Bug 1146817 - Correct order of arguments to _InterlockedCompareExchange in AtomicOperations. Align test data. Add alignment assertions to x86 and x64. r=me
--HG--
extra : amend_source : ecfc69774ba1355ad2889b4f0f432149b1331628
2017-09-04 16:04:56 +02:00
Lars T Hansen
5d265af2d1 Bug 1396557 - Make JS::StringIsUTF8 stricter. r=luke 2017-09-04 13:36:25 +02:00
Lars T Hansen
97a0e2dd24 Bug 1396342 - Wasm baseline, fix division-by-64-bit constant bug. r=luke 2017-09-04 12:50:35 +02:00
Paul Bone
4798617792 Bug 1392511 - Report the correct information for used bytes. r=jonco
Only use the promotion rate to make pre tenuring and nursery size decisions
(now that it is calculated correctly and not under-estimated) if the nursery
is at least 90% full.
2017-08-25 15:03:24 +10:00
Miran.Karic
11d2b6b69e Bug 1341292 - MIPS: Remove redundant asserts. r=lth
Asserts in MoveEmitterMIPS[32|64]::emitDoubleMove cause failures in some
tests, but they are redundant. The asserts check if the source or
destination register is scratch register, however scratch register is
actually used only for memory to memory move.
2017-09-05 05:42:00 -04:00
Olli Pettay
2e8b602108 Bug 1377131 - Try to trigger collector slices at times which disturb page js less (at least with iframes loaded after the top level page has been loaded), r=mccr8,bz
When triggering an iframe load or starting to parse a document for an iframe, the main thread may often have some time before the new page has been created. Try to trigger CC/GC slice at such point in order to avoid collector later when page is already executing its JS

--HG--
extra : rebase_source : 806df0af1dbaefb1761134eca0bb7c6ade6ac1a9
2017-09-06 18:18:11 +01:00
Ted Campbell
3d936e31cf Bug 1394490 - Javascript loader environments test. r=kmag
This are some unit tests to track regressions in the environment
behavior exposed to embeddings for various javascript loaders inside
Gecko.

MozReview-Commit-ID: 8pn56Skwbat
2017-09-06 13:43:55 -04:00
Jan de Mooij
cd78cf9ad4 Bug 1394835 part 3 - Remove unused flags argument and an unnecessary root. r=anba
--HG--
extra : rebase_source : a6507ddf2973532c0d7094247aab9fc19b92abdb
2017-09-06 16:56:54 +02:00
Jan de Mooij
bffdb727b3 Bug 1394835 part 2 - Split static DefineProperty helpers in jsapi.cpp in data vs accessor functions. r=anba
--HG--
extra : rebase_source : c4e3eae978b67d920705aabda62e68e840704fbf
2017-09-06 16:56:20 +02:00
Luke Wagner
868e49e32b Bug 1395587 - Baldr: allow multiple concurrent, parallel compilations (r=lth)
MozReview-Commit-ID: I8CUt271hdf

--HG--
extra : rebase_source : 1f941f9052916272a3a2715990fcb355e388f992
2017-09-06 08:31:27 -05:00
Luke Wagner
36b63a570d Bug 1395587 - Baldr: remove FunctionGenerator (r=lth)
MozReview-Commit-ID: 4MIQEVy94OU

--HG--
extra : rebase_source : 97559c214a4e325f6ea16719aa2586f509438fdf
2017-09-06 08:31:02 -05:00
Luke Wagner
4cc7b26afd Bug 1395587 - Baldr: shrink the ModuleGenerator interface (r=lth)
MozReview-Commit-ID: DdVvMrtpEIl

--HG--
extra : rebase_source : 6768dbd541689345c120991524de62ff89f6d93c
2017-09-06 08:30:35 -05:00
Nathan Froyd
473735f6b7 Bug 1396862 - eliminate -Wunused-private-field warning in AutoFlushICache; r=jandem
The `name_` field of AutoFlushICache is only ever passed to JitSpew* on
ARM, and on non-debug builds, JitSpew* essentially disappears, so clang
claims `name_` is unused.  It is annoying to jump through hoops to
satisfy clang here, but that's life with fatal warnings.
2017-09-06 08:57:09 -04:00
Sebastian Hengst
3c4740b43a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 11:29:25 +02:00
Jon Coppeard
75d4b3dbc8 Bug 1395366 - Fix bustage caused by missing explicit keyword r=me 2017-09-06 09:18:16 +01:00
Jan de Mooij
0fa0f6ed76 Bug 1395900 part 4 - Add JSOP_ITERNEXT to improve iterator key type information in Ion. r=tcampbell
--HG--
extra : rebase_source : cd6832321a89ee45638944a378ac229dd9a82f6d
2017-09-06 10:03:25 +02:00
Jan de Mooij
73b3db4df0 Bug 1395900 part 3 - Remove unused IonBuilder::nonStringIteration_. r=tcampbell
--HG--
extra : rebase_source : a7b49e36146766c936d2ee068ce248f7cf704efd
2017-09-06 10:02:09 +02:00
Jan de Mooij
e0a93920a4 Bug 1395900 part 2 - Teach analyzeNewLoopTypes about for-in iterator value slot. r=tcampbell
--HG--
extra : rebase_source : 4249cb67860227705d50d85600e8704a4c6405b7
2017-09-06 10:01:46 +02:00
Jan de Mooij
406236a491 Bug 1395900 part 1 - Try to get new loop types in analyzeNewLoopTypes even if the previous header is dead. r=tcampbell
--HG--
extra : rebase_source : 8c60048b3c6b63e495a4b29380e66e1174d7cf57
2017-09-06 10:00:47 +02:00
Jon Coppeard
d992871fbb Bug 1396936 - Simplify tenuring of objects with unique IDs and remove hash table lookup for every tenured object r=sfink 2017-09-06 09:07:10 +01:00
Jon Coppeard
6505902d8d Bug 1396932 - Remove unncessary rekeying of watchpoint map r=sfink 2017-09-06 09:07:10 +01:00
Jon Coppeard
8a6867261a Bug 1396931 - Simplify sweeping of dictionary mode objects allocated in the nursery r=sfink 2017-09-06 09:07:09 +01:00
Jon Coppeard
dd357608a2 Bug 1395366 - Extend zone group's state to cover those intended for future use by helper threads and disallow GC of such groups r=sfink 2017-09-06 09:07:09 +01:00
Lars T Hansen
7692df0ca3 Bug 1146817 - Add float and double test cases for loadSafeWhenRacy / storeSafeWhenRacy. r=sstangl
--HG--
extra : source : bdd79a98de6a8d1bb3248d6e857ed4c3e875bf1e
extra : amend_source : 0fa9f4c1b135c8f7cb5dc3fe2b45c353aa752796
2017-09-05 13:48:53 +02:00
Lars T Hansen
6fa93e8121 Bug 1146817 - Clean up assertions for tier-1 platforms. r=sstangl
--HG--
extra : source : 18f1fb6113eb6c880e02e509f67d3469b277a3f5
extra : amend_source : 7e8a273fade81bf431383264db9c0f0d38d85a0d
2017-09-05 11:06:17 +02:00
Jan de Mooij
1c43dd975e Bug 1395919 - Don't copy the unknown-properties flag in AddPropertyTypesAfterProtoChange. r=bhackett 2017-09-07 12:51:45 +02:00
Sebastian Hengst
af505f8fc9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-07 12:42:38 +02:00
Jan de Mooij
06c4b26692 Bug 1397026 - Make sure JSOP_INIT* IC behavior matches [[DefineOwnProperty]] instead of [[Set]]. r=anba 2017-09-07 11:28:58 +02:00
Andrew McCreight
4105546375 Bug 1186409 - Check to make sure we don't set some weird XPConnect flags on the shared global. r=kmag
I added the predicate so people can't just start grabbing the loader
global and doing scary things with it.

MozReview-Commit-ID: HzPtMzEm0Ln

--HG--
extra : rebase_source : a0bed5901e54dd1e64c7ef233cd58cdfb1f136d4
2017-06-06 14:41:27 -07:00
Andrew McCreight
1f0b9dc34f Bug 1186409 - Use a single global for all JSMs. r=kmag
This patch adds a preference jsloader.shareGlobal that makes it so
that JSMs share a single global, in order to reduce memory usage. The
pref is disabled by default, and will be enabled in a later bug. Each
JSM gets its own NonSyntacticVariablesObject (NSVO), which is used for
top level variable bindings and as the value of |this| within the JSM.

For the module loader, the main change is setting up the shared
global, and the NSVO for each JSM. A number of files are blacklisted
from the shared global, because they do things to the global that
would interfer with other JSMs. This is detailed in
mozJSComponentLoader::ReuseGlobal().

MozReview-Commit-ID: 3qVAc1c5aMI

--HG--
extra : rebase_source : fe7e2672be8d09d6b7cec25e08cd464ff3cd6573
2017-07-18 14:47:27 -07:00
Paul Bignier
2a827b8897 Bug 1282408 - Add ignore-initialization-check annotation to which_ from CalleeDesc. r=jorendorff 2016-09-27 17:29:33 +02:00
Andi-Bogdan Postelnicu
2128ae9649 Bug 1282408 - Add ignore-initialization-check annotation to parents from NameResolver. r=jorendorff
MozReview-Commit-ID: 7zCqBnVAD88
2016-09-27 13:07:41 +03:00
Andi-Bogdan Postelnicu
a31ca0b17c Bug 1282408 - add ignore initialization check flag for member variables from Ptr and AddPtr. r=jorendorff
MozReview-Commit-ID: IzLeG9MueUt
2016-09-01 11:04:44 +03:00
Andi-Bogdan Postelnicu
95dc0ef284 Bug 1282408 - add ignore initialization check flag for variables from BindingIter. r=jorendorff
MozReview-Commit-ID: BfEWPfVU0dj
2016-08-30 16:42:24 +03:00
Lars T Hansen
308765f09e Bug 1146817 - Addendum to squash MSVC warning, avoid a static arithmetic overflow. r=me 2017-09-04 13:39:29 +02:00
Lars T Hansen
52641dc6f3 Bug 1146817 - Test cases for jit::AtomicOperations. r=sstangl
--HG--
extra : rebase_source : 71ef91d998329490281742fd740ef59ba07139c3
extra : histedit_source : 04a7d2936af9e96e0e4d56a9e6f0b67a90c1bfb1%2C0203ef97c6645bb9f9ce9ffcda6824c119167fca
2017-08-28 13:36:55 +02:00
Lars T Hansen
ff90509091 Bug 1146817 - Introduce AtomicOperations::hasAtomic8(). r=sstangl
--HG--
extra : rebase_source : 7fb34d7e2d5d64faea5e30678c711d7fc818e4bd
extra : histedit_source : c20ab4520e3b334c4ee3fd5c3f0e94860b5e194b
2017-09-01 11:41:40 +02:00
Mark Banner
d1f3b15860 Backed out changeset e11754955e76 (bug 1282408) for compilation failures. r=backout CLOSED TREE 2017-09-04 11:26:11 +01:00
Andi-Bogdan Postelnicu
30edfa4a49 Bug 1282408 - add ignore initialization check flag for variables from BindingIter. r=jorendorff
MozReview-Commit-ID: BfEWPfVU0dj
2016-08-30 16:42:24 +03:00
Jon Coppeard
24f73927e0 Bug 1394505 - Avoid triggering zone assertion when cancelling code generation for IonBuilders owned by a different runtime r=jandem 2017-09-04 10:09:32 +01:00
Jon Coppeard
5e43cf8d86 Bug 1394492 - Fix module error assertion which fails if we throw NaN r=arai 2017-09-04 10:08:51 +01:00
Andi-Bogdan Postelnicu
84c1bfac64 Bug 1282408 - add ignore initialization check flag for functionBodyEndPos from BytecodeEmitter. r=jorendorff
MozReview-Commit-ID: KreWU3RBSnU
2016-08-30 15:43:16 +03:00
Phil Ringnalda
086c3155bc Backed out 5 changesets (bug 1277338) for a microscopic speck of flake8 lint
Backed out changeset a8ae266cd61e (bug 1277338)
Backed out changeset b00ca2e7bda4 (bug 1277338)
Backed out changeset 40d0eefb1b5a (bug 1277338)
Backed out changeset ec92904a27cf (bug 1277338)
Backed out changeset 8ee31bf579fc (bug 1277338)

MozReview-Commit-ID: DLI8N9xhSxq

--HG--
rename : third_party/rust/bindgen-0.29.0/.github/ISSUE_TEMPLATE.md => third_party/rust/bindgen/.github/ISSUE_TEMPLATE.md
rename : third_party/rust/bindgen-0.29.0/.travis.yml => third_party/rust/bindgen/.travis.yml
rename : third_party/rust/bindgen-0.29.0/CONTRIBUTING.md => third_party/rust/bindgen/CONTRIBUTING.md
rename : third_party/rust/bindgen-0.29.0/LICENSE => third_party/rust/bindgen/LICENSE
rename : third_party/rust/bindgen-0.29.0/README.md => third_party/rust/bindgen/README.md
rename : third_party/rust/bindgen-0.29.0/appveyor.yml => third_party/rust/bindgen/appveyor.yml
rename : third_party/rust/bindgen-0.29.0/book/book.toml => third_party/rust/bindgen/book/book.toml
rename : third_party/rust/bindgen-0.29.0/book/src/SUMMARY.md => third_party/rust/bindgen/book/src/SUMMARY.md
rename : third_party/rust/bindgen-0.29.0/book/src/blacklisting.md => third_party/rust/bindgen/book/src/blacklisting.md
rename : third_party/rust/bindgen-0.29.0/book/src/chapter_1.md => third_party/rust/bindgen/book/src/chapter_1.md
rename : third_party/rust/bindgen-0.29.0/book/src/command-line-usage.md => third_party/rust/bindgen/book/src/command-line-usage.md
rename : third_party/rust/bindgen-0.29.0/book/src/cpp.md => third_party/rust/bindgen/book/src/cpp.md
rename : third_party/rust/bindgen-0.29.0/book/src/customizing-generated-bindings.md => third_party/rust/bindgen/book/src/customizing-generated-bindings.md
rename : third_party/rust/bindgen-0.29.0/book/src/introduction.md => third_party/rust/bindgen/book/src/introduction.md
rename : third_party/rust/bindgen-0.29.0/book/src/library-usage.md => third_party/rust/bindgen/book/src/library-usage.md
rename : third_party/rust/bindgen-0.29.0/book/src/nocopy.md => third_party/rust/bindgen/book/src/nocopy.md
rename : third_party/rust/bindgen-0.29.0/book/src/opaque.md => third_party/rust/bindgen/book/src/opaque.md
rename : third_party/rust/bindgen-0.29.0/book/src/replacing-types.md => third_party/rust/bindgen/book/src/replacing-types.md
rename : third_party/rust/bindgen-0.29.0/book/src/requirements.md => third_party/rust/bindgen/book/src/requirements.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-0.md => third_party/rust/bindgen/book/src/tutorial-0.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-1.md => third_party/rust/bindgen/book/src/tutorial-1.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-2.md => third_party/rust/bindgen/book/src/tutorial-2.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-3.md => third_party/rust/bindgen/book/src/tutorial-3.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-4.md => third_party/rust/bindgen/book/src/tutorial-4.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-5.md => third_party/rust/bindgen/book/src/tutorial-5.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-6.md => third_party/rust/bindgen/book/src/tutorial-6.md
rename : third_party/rust/bindgen-0.29.0/book/src/using-unions.md => third_party/rust/bindgen/book/src/using-unions.md
rename : third_party/rust/bindgen-0.29.0/book/src/whitelisting.md => third_party/rust/bindgen/book/src/whitelisting.md
rename : third_party/rust/bindgen-0.29.0/ci/assert-docs.sh => third_party/rust/bindgen/ci/assert-docs.sh
rename : third_party/rust/bindgen-0.29.0/ci/assert-no-diff.bat => third_party/rust/bindgen/ci/assert-no-diff.bat
rename : third_party/rust/bindgen-0.29.0/ci/assert-no-diff.sh => third_party/rust/bindgen/ci/assert-no-diff.sh
rename : third_party/rust/bindgen-0.29.0/ci/assert-rustfmt.sh => third_party/rust/bindgen/ci/assert-rustfmt.sh
rename : third_party/rust/bindgen-0.29.0/ci/before_install.sh => third_party/rust/bindgen/ci/before_install.sh
rename : third_party/rust/bindgen-0.29.0/ci/deploy-book.sh => third_party/rust/bindgen/ci/deploy-book.sh
rename : third_party/rust/bindgen-0.29.0/ci/no-includes.sh => third_party/rust/bindgen/ci/no-includes.sh
rename : third_party/rust/bindgen-0.29.0/ci/test-book.sh => third_party/rust/bindgen/ci/test-book.sh
rename : third_party/rust/bindgen-0.29.0/ci/test.bat => third_party/rust/bindgen/ci/test.bat
rename : third_party/rust/bindgen-0.29.0/ci/test.sh => third_party/rust/bindgen/ci/test.sh
rename : third_party/rust/bindgen-0.29.0/example-graphviz-ir.png => third_party/rust/bindgen/example-graphviz-ir.png
rename : third_party/rust/bindgen-0.29.0/rustfmt.toml => third_party/rust/bindgen/rustfmt.toml
rename : third_party/rust/bindgen-0.29.0/src/uses.rs => third_party/rust/bindgen/src/uses.rs
rename : third_party/rust/clap-2.24.2/appveyor.yml => third_party/rust/clap/appveyor.yml
rename : third_party/rust/thread-id/license-apache => third_party/rust/thread-id/license
2017-09-01 22:32:40 -07:00
Kris Maglione
f749e93f73 Bug 1363482: Part 6 - Add Cu.readFile helper to access the file preloader from JS. r=bholley
MozReview-Commit-ID: B7kSvhxbL4f

--HG--
extra : rebase_source : 3d9e11f6eba70e41786bf008eee8ec37ac4caec6
2017-08-31 17:02:06 -07:00
Kris Maglione
c4a2fd3bfb Bug 1363482: Part 2 - Allow pre-loading file and JAR entry contents off-thread during startup. r=erahm
MozReview-Commit-ID: 8bKzYpXBQvT

--HG--
extra : rebase_source : 6750d471a0a39338b5145e2dab9d953b4c30a63f
2017-08-30 15:47:17 -07:00
Nick Fitzgerald
e81778cb20 Bug 1277338 - Part 11: Add js/rust to standalone JS source packages; r=sfink
This commit ensures that we copy the js/rust crate into the resulting source
tarball whenever we make standalone JS releases.
2017-09-01 16:43:15 -07:00
Nick Fitzgerald
8ea43ad861 Bug 1277338 - Part 9: Move the servo/rust-mozjs crate providing bindings to SpiderMonkey to js/rust; r=sfink 2017-09-01 16:43:15 -07:00
Wes Kocher
4cf89b3423 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FusyUW1CQ4s
2017-09-01 16:33:28 -07:00
Wes Kocher
5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Luke Wagner
af782a1283 Bug 1395100 - Don't pass around a mutable Iter*. r=jandem
MozReview-Commit-ID: Syy4Qtt55F
2017-09-01 15:24:14 -04:00
Boris Zbarsky
c395dbb95d Bug 1394598. Stop using a belt-and-suspenders opaque wrapper for eval and Function when they're being exposed by SpecialPowers. r=bholley 2017-09-01 16:30:57 -04:00
Jan de Mooij
58c33b70d0 Bug 1346217 part 9 - Enable some assertions that were commented out a long time ago. r=till 2017-09-01 15:47:26 +02:00
Dan Gohman
a6da168bd0 Bug 1390214 - IonMonkey: Don't test for a 3-byte opcode in a 2-byte opcode predicate r=jandem
MozReview-Commit-ID: KgImWiHrxGP

--HG--
extra : amend_source : eb16da96ca097d02864ae5a4b1d68c119e175619
2017-09-01 15:10:37 +02:00
Ted Campbell
caed9a66be Bug 1394490 - Allow NSVO as global lexical |this| r=jandem
Allow an NSVO to be a valid |this| target and don't skip over in
js::GetThisValue

MozReview-Commit-ID: 3goLslCcc2Q

--HG--
extra : rebase_source : a3b31ebe03b35df50b5900f82d10fe4b73b83f30
2017-08-31 16:35:24 -04:00
Ted Campbell
cfe137ebbf Bug 1394490 - Handle NSVO like Global for js::ComputeImplicitThis r=jandem
ComputeImplicitThis is used when invoking a function in a |with| block.
An NSVO should behave like a GlobalObject and return |undefined|.

MozReview-Commit-ID: InjojinxPuF

--HG--
extra : rebase_source : 94b09090d4378900263b713df4f4cd64ebcda33a
2017-08-31 16:30:28 -04:00
Ted Campbell
475fddcb71 Bug 1394490 - Support NSVOs with JSOP_FUNCTIONTHIS fallback r=jandem
When a non-strict function is called with undefined |this|, we must
substitute in the global |this|. This patch fixes this behavior when a
NonSyntacticVariablesObject is on envChain.

MozReview-Commit-ID: C3oOVQQNhNa

--HG--
extra : rebase_source : cc23f7e2ba13b26c8d2aa3a352f57a89380bf340
2017-08-31 16:25:39 -04:00
Ted Campbell
7e46cb8846 Bug 1394490 - Use global lexical this to initialize NSVO lexical r=jandem
This is already current behavior, but make it explicit to allow cleanup
of NSVOs handling.

MozReview-Commit-ID: LeWjzwxstEB

--HG--
extra : rebase_source : a1d4052d99732ece158c2eacc4a573e7951f71fa
2017-08-31 15:54:23 -04:00
Ted Campbell
0480d01014 Bug 1394490 - Avoid Ion compile for non-syntactic JSOP_FUNCTIONTHIS r=jandem
Ion does not support non-synactic global environments so don't compile
if JSOP_FUNCTIONTHIS needs non-strict non-syntactic fallback.

MozReview-Commit-ID: BiDAeQljjJx

--HG--
extra : rebase_source : c20298518e7850e7daa97d5e8353b79e11b5cac9
2017-08-31 15:40:50 -04:00
Philip Chimento
479aa79ca8 Bug 1384308 - Don't install import library if same as shared library. r=glandium
--HG--
extra : rebase_source : f57a1177e467687efe0dfb93afb6392c2085e335
2017-08-29 21:13:45 -07:00
Tom Schuster
a9f97782af Bug 1395513 - Simply nop Object(object) calls. r=nbp 2017-09-01 12:32:05 +02:00
Jon Coppeard
f624c0f438 Bug 1394493 - Check for uninitialised lexicals in getModuleEnvironmentValue() r=arai 2017-09-01 10:14:11 +01:00
Jon Coppeard
47659f1db3 Bug 1384513 - Remove AutoAssertNoAlloc r=sfink 2017-09-01 10:13:51 +01:00
Till Schneidereit
fb21cc09de Bug 1384513 - Change all public APIs to take JS::AutoRequireNoGC instead of JS::AutoCheckCannotGC. r=jonco
Additionally, change the base class of AutoSuppressGCAnalysis from AutoAssertNoAlloc to AutoAssertNoGC.

In combination, these chances enable passing either JS::AutoCheckCannotGC or JS::AutoSuppressGCAnalysis, depending on whether suppressing the GC analysis is desired or not.

MozReview-Commit-ID: Eg1cl28ezeJ
* * *
Bug 1384513 - Follow-up to fix bustage from template usage of functions with a changed signature, on a CLOSED TREE. r=bustage

MozReview-Commit-ID: 5SsI4DoDwAT
2017-07-26 12:20:59 +02:00
Lars T Hansen
60198b9324 Bug 1146817 - Make mips-shared/AtomicOperations-mips-shared.h cleaner (though not 64-bit aware). r=sstangl
--HG--
extra : rebase_source : 4eb1ed5f54fe63862112a6653d4c3156311ae83e
2017-08-25 16:14:23 +02:00
Lars T Hansen
906cada0be Bug 1146817 - Make arm64/AtomicOperations-arm64.h 64-bit aware, and cleaner. r=sstangl
--HG--
extra : rebase_source : 31d2312afe983f41bf0b2f7925e4fd116f613bbb
2017-08-25 16:00:35 +02:00
Lars T Hansen
bbecafccff Bug 1146817 - Make x86-shared/AtomicOperations-x86-shared-msvc.h 64-bit aware, and cleaner. r=sstangl
--HG--
extra : rebase_source : 33dc3a3724b8dafc86279e38b9ce87d9e2e13f49
2017-08-24 16:02:40 +02:00
Lars T Hansen
e52278cce7 Bug 1146817 - Make x86-shared/AtomicOperations-x86-shared-gcc.h 64-bit aware, and cleaner. r=sstangl
--HG--
extra : rebase_source : 6ba43fbb94430f8c33a01f1f5797c03163a04652
2017-08-24 15:17:58 +02:00
Lars T Hansen
7178a88960 Bug 1146817 - Make arm/AtomicOperations-arm.h 64-bit aware, and cleaner. r=sstangl
--HG--
extra : rebase_source : 09717ad8cbf5f3b644bc9bd194939788b4b40eb9
2017-08-24 14:35:55 +02:00
Lars T Hansen
b13ddf9f1e Bug 1146817 - Make none/AtomicOperations-feeling-lucky.h 64-bit aware, and cleaner. r=sstangl
--HG--
extra : rebase_source : 772f5bed3ff46fdced588fc726c2e0ee50100ef2
2017-08-24 13:36:49 +02:00
Lars T Hansen
2c7cf2b621 Bug 1146817 - Rename isLockfree as isLockfreeJS, plus preparation for 64-bit aware atomics. r=sstangl
--HG--
extra : rebase_source : 78c2af9796ef788fbd9a43c092aa3e409abd5f30
2017-08-28 13:31:11 +02:00
Sebastian Hengst
43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Kris Maglione
6bad4f8ef7 Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan
Also adds a mozilla/ResultExtensions.h header to define the appropriate
conversion functions for nsresult and PRResult. This is in a separate header
since those types are not available in Spidermonkey, and this is the pattern
other *Extensions.h headers follow.

Also removes equivalent NS_TRY macros and WrapNSResult inlines that served the
same purpose in existing code, and are no longer necessary.

MozReview-Commit-ID: A85PCAeyWhx

--HG--
extra : rebase_source : a5988ff770888f901dd0798e7717bcf6254460cd
2017-08-29 21:28:31 -07:00
Kris Maglione
c9899cb3fa Bug 1366511: Part 2 - Allow autoconverting Err(nsresult) to nsresult. r=ehsan,nbp
This allows MOZ_TRY and MOZ_TRY_VAR to be transparently used in XPCOM methods
when compatible Result types are used.

Also removes a compatibility macro in SimpleChannel.cpp, and an identical
specialization in AddonManagerStartup, which are no longer necessary after
this change.

MozReview-Commit-ID: 94iNrPDJEnN

--HG--
extra : rebase_source : 24ad4a54cbd170eb04ded21794530e56b1dfbd82
2017-08-29 21:28:22 -07:00
Nick Fitzgerald
9da40f6365 Bug 1277338 - Part 7: Export mozglue when JS_STANDALONE && !jemalloc; r=glandium,sfink
This makes sure that:

* We don't define `MOZ_GLUE_IN_PROGRAM` so that everything in mozglue gets
  defined.

* `MFBT_API`'s symbol export rules match `JS_PUBLIC_API` and `EXPORT_JS_API`.

* We add mozglue to SpiderMonkey's `USE_LIBS` when jemalloc is disabled.
2017-08-31 15:59:13 -07:00
Sebastian Hengst
51d5af29e6 Backed out changeset d7c36348c05b (bug 1392511) for valgrind failure on Linux x64 opt. r=backout 2017-08-31 19:16:58 +02:00
Paul Bone
778a486dc1 Bug 1392511 - Report the correct information for used bytes. r=jonco
Only use the promotion rate to make pre tenuring and nursery size decisions
(now that it is calculated correctly and not under-estimated) if the nursery
is at least 90% full.
2017-08-25 15:03:24 +10:00
Steve Fink
49eb6242a0 Bug 1394573 - Remove the footgun of having --objdir relative to the source checkout, r=till
autospider.py will also refuse to delete a directory it did not create (as judged by a marker file), unless AUTOMATION is set. (The AUTOMATION restriction could be lifted after all build machines have overwritten their objdirs.)

in case you need it.

--HG--
extra : rebase_source : 66d2b9ed52fabb7c7596b020321010e2b8123408
extra : source : 4d8da479bdd09f31485e7e870ee7a31d370da25a
2017-08-28 14:36:11 -07:00
Jan de Mooij
7a7e0c5a76 Bug 1395095 - Fix MappedArgumentsObject::obj_defineProperty to not create slotful getters/setters. r=evilpie
--HG--
extra : rebase_source : 28704b8a0edcbff682c722b681c9b1a32e4a69f8
2017-08-31 12:20:31 +02:00
Jon Coppeard
bfcb9bab59 Bug 1393597 - Remove FinishIncrementalGC when merging compartments r=sfink 2017-08-31 10:27:04 +01:00
Randell Jesup
9f5e4df6f4 Bug 1395432: Block some inlining for better debugging (in Nightly) r=luke 2017-08-30 23:29:30 -04:00