Commit Graph

50127 Commits

Author SHA1 Message Date
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
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
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
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
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