Граф коммитов

61638 Коммитов

Автор SHA1 Сообщение Дата
Ted Campbell bc4240f456 Bug 1395360 - Add ExecuteInNonSyntacticGlobal to jsfriendapi r=jorendorff
This API is for use by mozJSComponentLoader to load JSMs into a
NonSyntacticVariablesObject with a shared global.

MozReview-Commit-ID: LtGdY4ULy45

--HG--
extra : rebase_source : 8d71718b567d7a00c4bfc4514ed342b9ab56c7b0
2017-09-02 13:00:20 -04:00
Ted Campbell 512b08d6d4 Bug 1395360 - Factor out ExecuteInNonSyntacticGlobalInternal r=jorendorff
MozReview-Commit-ID: AMISJPCKqw9

--HG--
extra : rebase_source : 5a72ed6c0a4b28a604f58c296a131a32364ddae8
2017-09-02 12:45:25 -04:00
Sebastian Hengst ec5336561d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3DvwIgw2ORU
2017-09-07 23:59:58 +02:00
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