Commit Graph

59809 Commits

Author SHA1 Message Date
Shu-yu Guo
8eacb418e2 Bug 1357012 - Use fallible append for compression tasks and use UniquePtrs. (r=jonco) 2017-04-18 18:23:18 -07:00
Boris Zbarsky
c947157599 Bug 1306200 part 2. When a promise is rejected with an object that cannot be securely unwrapped, report the underlying object as an error to its global before replacing the rejection value with a security error placeholder. r=waldo 2017-04-18 20:56:48 -04:00
Boris Zbarsky
0feef7f2d9 Bug 1306200 part 1. Move the "report this error now" machinery from Debugger.cpp to ErrorReporting. r=waldo
This allows other consumers to share this machinery.
2017-04-18 20:56:48 -04:00
Bill McCloskey
207af130a2 Bug 1343396 - Split CycledCollectedJSContext and XPCJSContext into separate context and runtime classes (r=mccr8)
To run JS in separate cooperative threads, we need to split up per-thread state
from per-runtime state. This patch does that for XPConnect.

MozReview-Commit-ID: 407SlJ7nR6v
2017-04-18 17:01:04 -07:00
David Major
e97b534db7 Bug 1353420: Register the JIT region with mozglue so it can avoid stack-walking that code. r=luke 2017-04-18 18:52:04 -04:00
Wes Kocher
61ed56921b Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Wes Kocher
bcaa07a677 Merge inbound to central, a=merge 2017-04-18 14:35:25 -07:00
Jan de Mooij
b7b3c5b8f7 Bug 1356822 - Fix IonBuilder::jsop_bindname to pass the global lexical to the IC in the BINDGNAME case. r=evilpie 2017-04-18 14:58:55 +02:00
Carsten "Tomcat" Book
bb87f43c09 merge mozilla-inbound to mozilla-central a=merge 2017-04-18 10:21:31 +02:00
Shu-yu Guo
cd3756c697 Bug 1216630 - Unskip test262 class toString tests. (r=Yoric) 2017-04-17 19:51:35 -07:00
Shu-yu Guo
1df7352485 Bug 1216630 - Rename preludeStart and postludeEnd to toStringStart and toStringEnd and misc fixes. (r=Yoric) 2017-04-17 19:51:35 -07:00
Shu-yu Guo
159df826fb Bug 1216630 - Print class source when calling toString on the constructor. (r=Yoric)
This is accomplished in the following ways.

LazyScripts and JSScripts now have 4 offsets:

 - Source begin and end for the actual source. This is used for lazy
   parsing.

 - toString begin and end for toString. Some kinds of functions, like
   async, only have a different begin offset. Class constructors have
   different offsets for both begin and end.

For syntactically present (i.e. non-default) constructors, the class
source span is remembered directly on the LazyScript or JSScript. The
toString implementation then splices out the substring directly.

For default constructors, a new SRC_CLASS SrcNote type is added. It's
binary and has as its arguments the begin and end offsets of the class
expression or statement. MakeDefaultConstructor reads the note and
overrides the cloned self-hosted function's source object. This is
probably the least intrusive way to accomplish this.
2017-04-17 19:51:34 -07:00
Luke Wagner
c39bb259da Bug 1356631 - Change LargeAllocationCallback to be process-wide (r=mccr8)
This is necessary to allow helper threads to attempt large allocations and recover from fragmentation situations with the LargeAllocationFailureCallback.

MozReview-Commit-ID: AyA3pbXcaYy

--HG--
extra : rebase_source : 7a5feb779b690ec7f123481e76f2390c850dac91
2017-04-17 21:19:54 -05:00
Sebastian Hengst
4b1c4edae2 Backed out changeset d505fbfbd4e2 (bug 1357468) for asserting an e.g. failing js/src/jit-test/tests/arrays/sort-getter-only.js. r=backout 2017-04-18 19:32:49 +02:00
Tom Tromey
f8b4c97867 Bug 1348419 - Use thread_local on XP_WIN and XP_MACOSX; r=froydnj
MozReview-Commit-ID: 75dTUk27p94

--HG--
extra : rebase_source : f93d5b063a6ff14d8eb6f5236828450f3f784b8c
2017-03-22 12:04:21 -06:00
Mike Hommey
9adb1c6754 Bug 1356931 - Remove gcc-b2g.manifest. r=sfink
The code that could make use of it was removed in bug 1239082.

--HG--
extra : rebase_source : 25f3aaf11ddbab333a60efe6236dc1458f181f10
2017-04-17 08:25:23 +09:00
Sebastian Hengst
8bd051237a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JpAhOPjgvkF
2017-04-15 19:59:24 +02:00
Florian Queze
4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Jan de Mooij
4ee57dc445 Bug 1355058 part 2 - Avoid creating unnecessary type constraints in IonBuilder::typedObjectPrediction. r=h4writer 2017-04-15 10:25:47 +02:00
Jan de Mooij
2d6c825d58 Bug 1355058 part 1 - Try the TypedObject optimizations last as typed objects are disabled by default. r=h4writer 2017-04-15 10:24:54 +02:00
Andrew McCreight
39d3aedd82 Bug 1356666, part 4 - Use handles as arguments in mozJSSubscriptLoader. r=mrbkap
MozReview-Commit-ID: 9fClU6BIWfT

--HG--
extra : rebase_source : 0f255542a13fd1fdad3a950892694bc8684c0ac0
2017-04-14 14:38:51 -07:00
Andrew McCreight
f5c9d2bf30 Bug 1356666, part 3 - Mark some functions in mozJSSubscriptLoader static. r=mrbkap
MozReview-Commit-ID: 7JsyR6B84Gz

--HG--
extra : rebase_source : 05aecd963e0d5e997613306cfc0ea158b68a0902
2017-04-14 14:33:17 -07:00
Andrew McCreight
adaea5fbec Bug 1356666, part 2 - Fix some style issues in mozJSSubScriptLoader. r=mrbkap
mSystemPrincipal is an nsCOMPtr so it does not need to be explicitly
initialized.

Fields don't have to be lined up.

Empty function bodies don't need to be commented as such.

The blank line at the start of mozJSComponentLoader.cpp prevents Emacs
from using the mode line.

MozReview-Commit-ID: 7Az1x8jmxTI

--HG--
extra : rebase_source : 2d818074d82f9a6b1041983efd7a81bde9870619
2017-04-14 14:13:19 -07:00
Andrew McCreight
ec4172c47a Bug 1356666, part 1 - Rename target_obj to targetObj in mozJSSubscriptLoader. r=mrbkap
MozReview-Commit-ID: 89WugjhzPLk

--HG--
extra : rebase_source : 0cdfc9702bed43e5712096082ca9daba755834b3
2017-04-14 14:10:40 -07:00
Jan de Mooij
082b553b4c Bug 1353359 part 4 - Use BindName IC in Ion and remove the old IonCache infrastructure. r=evilpie
--HG--
extra : rebase_source : e2c081588b4658b5098f937a97a3897fe6eb622f
2017-04-14 12:29:15 +02:00
Jan de Mooij
5191a73fa3 Bug 1353359 part 3 - Add BindName stub for non-global (BINDNAME) lookups. r=evilpie
--HG--
extra : rebase_source : 543330c6037b30dddd61754d76d5fb9203ac162c
2017-04-14 12:28:35 +02:00
Jan de Mooij
8cbcd04704 Bug 1353359 part 2 - Add BindName stub for global (BINDGNAME) lookups. r=evilpie
--HG--
extra : rebase_source : 9390a21792ada55e086147eca9ea66743c292cbd
2017-04-14 12:28:14 +02:00
Jan de Mooij
8051ffb670 Bug 1353359 part 1 - Add BindNameIRGenerator and use it in Baseline. r=evilpie
--HG--
extra : rebase_source : 613d7b790cc840f9ef20c4f99d98be79a60c9f8b
2017-04-14 12:26:28 +02:00
Iris Hsiao
93edef392b merge autoland to mozilla-central a=merge 2017-04-14 17:09:58 +08:00
Brian Hackett
9c666746f6 Bug 1353922 - Check all zone groups when adding edges for debugger cross compartment wrappers, r=jandem. 2017-04-13 14:43:32 -10:00
Brian Hackett
2fc979139a Bug 1347539 - Keep track of the Ion lazy link list at the zone group level, r=h4writer.
--HG--
extra : rebase_source : fe9f55908e9bd6e4daecd4802a4229ca18919b04
2017-04-12 13:10:46 -10:00
Wes Kocher
c8a2033f35 Merge m-c to inbound, a=merge 2017-04-13 17:33:39 -07:00
Wes Kocher
514e230373 Merge inbound to central, a=merge 2017-04-13 17:24:01 -07:00
Steve Fink
3eab9fd2e5 Bug 1294915 - Handle templatized C1/C4 constructors, r=bhackett
MozReview-Commit-ID: 2qvI8AHCtHN

--HG--
extra : rebase_source : 997d0777206527f9de0b243553035526de58d720
2017-04-13 16:41:02 -07:00
Wes Kocher
4fab232444 Merge autoland to central, a=merge 2017-04-13 13:03:43 -07:00
Till Schneidereit
3896d887c0 Bug 1346012 - Handle dead object wrappers in more places in Promise code. r=shu
MozReview-Commit-ID: HlmKwoMub9D
2017-04-13 17:15:54 +02:00
Jan de Mooij
24c0897fb2 Bug 1336580 - Attach AddSlot stubs before we run the new-script analysis. r=bhackett 2017-04-13 16:21:16 +02:00
Tom Schuster
f560973ff4 Bug 1355943 - Constant fold ion type-barrier. r=h4writer 2017-04-13 12:57:43 +02:00
Steve Fink
68235ceb4a Bug 1294915 - Safe UniquePtr content can be considered safe, r=bhackett
MozReview-Commit-ID: 1opi1QW4oJz

--HG--
extra : rebase_source : 35091fd1429990f862552c2903e83c0873a14fb5
2017-04-13 09:17:02 -07:00
Shu-yu Guo
d4eaa9c2fa Bug 1354294 - Preserve IsCallable and IsConstructor when nuking wrappers. r=evilpie, a=me
--HG--
extra : amend_source : a91257b419dee811e111c07605e9b3712e66a75f
2017-04-12 17:55:00 -04:00
Wes Kocher
2986c817dc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Wes Kocher
25d50f2c30 Merge inbound to central, a=merge 2017-04-12 14:39:09 -07:00
Steve Fink
a7aad66a58 Bug 1294915 - Allow AsAString to propagate safety, r=bhackett
MozReview-Commit-ID: 9Cko2Azc41u

--HG--
extra : rebase_source : f4a2052303594264b49b65532fa18dd89580ef72
2017-04-12 14:35:44 -07:00
Steve Fink
87abd26b59 Bug 1294915 - trivial changes to the analysis code. r=woof!
MozReview-Commit-ID: KV26IxJNrRW

--HG--
extra : rebase_source : da2ddaf0913c06d7d76b653339ab293b5c1b281d
2017-04-12 14:35:18 -07:00
Steve Fink
4bc841bcc2 Bug 1294915 - Rewrite locations to URLs, r=jonco
MozReview-Commit-ID: ag7GgVmpxE

--HG--
extra : rebase_source : 15594fe7d6e7e5eaf849c5f54c9410b3ae864ab7
2017-04-13 15:51:25 -07:00
Steve Fink
9fcb90d900 Bug 1294915 - Straightforward heap write annotations, r=bholley
MozReview-Commit-ID: 9xvurr7s9EB

--HG--
extra : rebase_source : a14b184a6f16ca87367de9868ba8f853a71e20c1
2017-04-13 10:57:35 -07:00
Sebastian Hengst
1bec3d34e4 Backed out changeset 8417a09fdec3 (bug 1343158) for failing own test in Windows plain shell. r=backout 2017-04-12 18:36:38 +02:00
Emanuel Hoogeveen
262bf8b5a6 Bug 1355133 - Check temporary buffer to detect instances of faulty hardware. r=jandem 2017-04-10 09:37:00 -04:00
Avikalpa Kundu
418fdb835b Bug 1338841 - Change ascii to latin1 in irregexp where it's actually checking latin1. r=arai
--HG--
extra : amend_source : f405e5bb9020ad6233e3ed9f95e029a8658993c1
2017-04-10 08:43:00 -04:00
Steve Fink
59e43b78be Bug 1294915 - Use parameter names when reporting heap write hazards, when available, r=me
MozReview-Commit-ID: G2A2GLoyWDq

--HG--
extra : rebase_source : 9ada8d1f03fda31f8da1505f2a6df8bbe8ab244a
2017-04-04 12:20:41 -07:00