Commit graph

2034 commits

Author SHA1 Message Date
Jan Varga
e161ee742d Bug 1311057 - Part 1: Remove support for packaged apps from asmjscache; r=luke 2017-03-06 18:38:40 +01:00
Carsten "Tomcat" Book
d0bd960945 merge mozilla-inbound to mozilla-central a=merge 2017-03-06 10:53:27 +01:00
Christian Holler (:decoder)
b25bd63bb7 Bug 1341901 - Make timesAccessed property JS shell only. r=jandem
MozReview-Commit-ID: Iq8vqsFCPwj

--HG--
extra : rebase_source : 1b347f0c63f37b056ae1c0a884eb66a4594d66bd
2017-03-03 18:11:07 +01:00
Brian Hackett
8ad28d4fd4 Bug 1341317 - Require runtimes to be single threaded while the Gecko profiler is in use, r=shu.
--HG--
extra : rebase_source : 4dd365b76b2b91b73764bcd28e25cbb5bd324f00
2017-03-02 05:11:28 -07:00
Wes Kocher
9746f81e53 Merge m-c to autoland, a=merge
MozReview-Commit-ID: FzykkWPQCrq

--HG--
rename : browser/modules/test/browser_UsageTelemetry_content.js => browser/modules/test/browser/browser_UsageTelemetry_content.js
rename : browser/modules/test/browser_UsageTelemetry_content_aboutHome.js => browser/modules/test/browser/browser_UsageTelemetry_content_aboutHome.js
rename : browser/modules/test/browser_UsageTelemetry_searchbar.js => browser/modules/test/browser/browser_UsageTelemetry_searchbar.js
rename : browser/modules/test/browser_UsageTelemetry_urlbar.js => browser/modules/test/browser/browser_UsageTelemetry_urlbar.js
2017-03-01 17:48:44 -08:00
André Bargull
23a673a28d Bug 1340146 - Part 1: Normalize paths for module registry in shell module loader. r=jonco 2017-02-28 03:31:25 -08:00
Brian Hackett
deb1eaae99 Bug 1341321 - Require runtimes to be single threaded when using a Debugger, r=jandem.
--HG--
extra : rebase_source : 42f88769ddd36082339664cad86acd1f6dff5d67
2017-03-01 07:15:50 -07:00
Zibi Braniecki
b6bc066991 Bug 1329904 - Introduce mozIntl.DateTimeFormat. r=Waldo
MozReview-Commit-ID: LKUcrg0bht4

--HG--
extra : rebase_source : abe40dec1d13d3f7d372453ae6bf1a69c1252233
2017-02-14 16:05:47 -08:00
Tom Tromey
550affaf12 Bug 1343292 - change return types in GenericPrinter; r=nbp
MozReview-Commit-ID: 1GJYujhrWj7

--HG--
extra : rebase_source : 90aef429db4285707f23105f950d9d930f98c21b
2017-02-28 14:18:40 -07:00
Tooru Fujisawa
f427819398 Bug 1344479 - Use binary mode for reading source code in JS shell. r=jandem 2017-03-05 01:15:26 +09:00
Tooru Fujisawa
8c428ebcee Bug 1342553 - Part 0.1: Use try-catch for IteratorClose in for-of. r=shu 2017-02-26 14:02:36 +09:00
Luke Wagner
fc5f17cd6c Bug 1341749 - Drain job queue even after error (r=bbouvier)
MozReview-Commit-ID: D7rjnADZ5if

--HG--
extra : rebase_source : 09b662af12898c40fcefc3f294abfa4fd577d97c
2017-02-24 09:30:38 -06:00
Jon Coppeard
161b940553 Bug 1340110 - Make shell resolve root module relative to current directory as happens for non-module scripts r=anba 2017-02-23 16:26:14 +00:00
Tom Schuster
fb8e7cea05 Bug 1319087 - Add nukeCCW to the shell and test it. r=jandem 2017-02-23 15:26:49 +01:00
Carsten "Tomcat" Book
a7cadef96e Merge mozilla-central to mozilla-inbound 2017-02-22 14:40:19 +01:00
Carsten "Tomcat" Book
9d982b9508 merge mozilla-inbound to mozilla-central a=merge 2017-02-22 14:33:38 +01:00
Brian Hackett
5b7a11457c Bug 1341303 - Delete things in the right order when finishing shell worker threads, r=jandem. 2017-02-22 05:25:48 -07:00
Brian Hackett
33310aacec Bug 1341283 - Avoid conflicts between GC zeal behavior and cooperative multithreading context switches, r=jonco. 2017-02-22 05:22:47 -07:00
Brian Hackett
f5cdd08aab Bug 1341358 - Don't accidentally clear the incumbent global callback when finishing a cooperative thread, r=jandem. 2017-02-22 05:16:50 -07:00
Zibi Braniecki
27ba812587 Bug 1312053 - Expose an API to get locale information. r=Waldo
MozReview-Commit-ID: LivVJzrb3X1

--HG--
extra : rebase_source : a8c566cf918f01216e9f22e953da935ce41b7654
2017-02-17 20:06:43 -08:00
Emanuel Hoogeveen
03e78aca95 Bug 1338574 - Part 4: Use MOZ_CRASH_UNSAFE_OOL and MOZ_CRASH_UNSAFE_PRINTF in SpiderMonkey. r=jandem
--HG--
extra : rebase_source : 5fdcd747aa47a4b9ccbfea946089c8d1c36ea56f
2017-02-21 18:01:52 +01:00
Brian Hackett
55ab200a7c Bug 1337968 - Add API and shell harness for cooperative multithreading, r=jandem.
--HG--
extra : rebase_source : 077c7f0d3ba4cb5e45303715809be95690294816
2017-02-17 05:13:11 -07:00
Tooru Fujisawa
f4e61b592f Bug 1283712 - Part 10: Support notes in getLastWarning shell-only testing function. r=jwalden 2017-02-15 23:53:07 +09:00
Jeff Walden
096aac1e32 Bug 1287006 - Adjust js/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=luke
--HG--
extra : rebase_source : b26cb2a94fdc218ea7f40931060eecfc50353d48
2017-02-13 09:07:26 -08:00
Brian Hackett
01a649c197 Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00
Brian Hackett
18bc843966 Bug 1337084 - Tolerate multiple threads running JS in JIT simulators, r=jandem.
--HG--
extra : rebase_source : 63625feccd12838cda50fc3650de12c7b147275a
2017-02-09 13:50:22 -07:00
Brian Hackett
ed08d325f6 Bug 1336603 - Move PCCounts state from ZoneGroup back to the runtime, r=jandem.
--HG--
extra : rebase_source : e9a5901541990061e261f2d185f2b45ea4722775
2017-02-03 15:13:29 -07:00
Sander Mathijs van Veen
a84901a6c9 Bug 1331622 - Print inference types before destroying compartments in js shell. r=jandem
MozReview-Commit-ID: GORnTKatCar

--HG--
extra : rebase_source : 26960db9d2a173fe362f31df28a8e9b95e72cbda
2017-02-09 07:43:00 -05:00
Brian Hackett
db7742c7f9 Bug 1325050 - Structure reorganization for multithreaded runtimes, r=jandem,jonco,h4writer,luke,lhansen,nbp.
--HG--
extra : rebase_source : 53c8fbae972fbf2f5e9428ce4d2965c8f86e942d
2017-02-02 12:12:43 -07:00
Nicolas B. Pierron
cc2bc31c6b Bug 1316078 part 5 - Add XDR off-thread decoder test cases. r=bhackett 2017-01-31 20:03:58 +00:00
Nicolas B. Pierron
bed272c792 Bug 1316081 part 3 - Expose a new JSAPI to incrementally encode bytecode when it is generated. r=shu 2017-01-31 20:03:57 +00:00
Nicolas B. Pierron
f6df4f6b59 Bug 1316078 part 3 - Use an ExclusiveContext instead of a JSContext in XDR functions. r=luke 2017-01-31 20:03:57 +00:00
Lars T Hansen
bea7761589 Bug 1333392 - single-step profiling stacks are per-thread. r=jandem
--HG--
extra : rebase_source : bc0a2a2cab974b035c2f2d5f87a1ea56ec3f3140
2017-01-27 09:57:37 +01:00
Nicholas Nethercote
f4ea404f5e Bug 1333296 (part 6) - Remove SPS references in js/. r=shu.
The most significant thing about this is that it changes some built-in function
names:
- enableSPSProfiling() -> enableGeckoProfiling()
- enableSPSProfilingWithSlowAssertions() -> enableGeckoProfiling(WithSlowAssertions)
- disableSPSProfiling() -> disableGeckoProfiling()
- {en,dis}ableSPSProfiling*() -> {en,dis}ableGeckoProfiling*()
- readSPSProfilingStack() -> readGeckoProfilingStack()

It also requires two filename changes:
- SPSProfiler.{h,cpp} -> GeckoProfiler.{h,cpp}

And some type name changes, e.g.:
- AutoSPSEntry -> AutoGeckoProfilerEntry
- SPSProfiler -> GeckoProfiler
- SPSInstrumentation -> GeckoProfilerInstrumentation
- SPSEntryMarker -> GeckoProfilerEntryMarker
- SPSBaselineOSRMarker -> GeckoProfilerBaselineOSRMarker

And various method/function/variable name changes, and some comment changes.

--HG--
rename : js/src/vm/SPSProfiler.cpp => js/src/vm/GeckoProfiler.cpp
rename : js/src/vm/SPSProfiler.h => js/src/vm/GeckoProfiler.h
extra : rebase_source : f681e2c3c269aec483bba9d60c7afc39776e14bf
2017-01-25 09:08:15 +11:00
Lars T Hansen
6d7b1e9cef Bug 1312446 - Enable SharedArrayBuffer and Atomics by default. r=shu
--HG--
extra : rebase_source : 308016a3820017d790d7a77d8fc25e1388f04df4
extra : amend_source : 1fc3635840cd1a1021f6f3f9d6491c381a122dc9
2017-01-19 17:22:47 +01:00
Lars T Hansen
c8d9aa19d1 Bug 1332240 - Enable SharedArrayBuffer and Atomics by default in JS shell also for Aurora. r=bbouvier
--HG--
extra : rebase_source : 2d655580d8c62ac618eff3823f81e92b83a33f0a
2017-01-19 11:52:11 +01:00
Shu-yu Guo
9c2567d79e Bug 1147371 - Implement IteratorClose for array destructuring. (r=arai)
Since result.done is always needed now, always emit the code that pushes
it on the stack.

For throwing, like for-of, IteratorClose is only called when non-iterator
code throws. Unlike for-of, both the iterator object and the done
boolean value are on the stack for the trynote. IteratorClose is only
called when !done.
2017-01-14 14:51:38 -08:00
Shu-yu Guo
093ab96981 Bug 1147371 - Implement IteratorClose for for-of. (r=arai)
Non-local jumps, i.e. |break| and |return| statements, are implemented
by emitting IteratorClose in bytecode.

On throws, the new trynote JSTRY_ITERCLOSE signals that there's an
iterator on the top of the stack that needs IteratorClose. Note that
this only applies to exceptions thrown from non-iterator code. If
iter.next or iter.return itself throws, IteratorClose should *not* be
called. This is why we can't use JSTRY_FOR_OF.
2017-01-14 14:51:38 -08:00
Tooru Fujisawa
b9b4ce1ca0 Bug 1328134 - Clear pending exception when JS::FormatStackDump fails in StackDump. r=evilpie 2017-01-05 20:17:26 +09:00
Tooru Fujisawa
d25e809b11 Bug 1320408 - Part 4: Change JSObject::getGroup to static method. r=jandem 2016-12-31 16:03:01 +09:00
Jeff Walden
d090fc1e7c Bug 1325459 - Expose the PluralRules constructor only by explicit action,, for now. r=anba
--HG--
extra : rebase_source : a14878e0281d3ab1302451e41e18e4b9d5b8f5cf
2016-12-28 15:25:27 -06:00
Pip Cet
95c7ee0695 Bug 1322681 - JS shell: wait for async tasks in DrainJobQueue(); r=bbouvier
Changes DrainJobQueue() to wait for async tasks launched by queued
jobs, rather than ignoring them and potentially causing segfaults.

MozReview-Commit-ID: 3fMoNHzdlUW

--HG--
extra : rebase_source : 1dcd3fd927cf648d2b17b9c894f364324cb80122
2016-12-26 19:00:56 +01:00
Jan de Mooij
e67d1ceec6 Bug 1325345 - Add compartment asserts to JS_FireOnNewGlobalObject and other APIs. r=jonco,bholley
--HG--
extra : rebase_source : 07f26b60760e20f4ada79f02222588e79460ead8
2016-12-22 12:25:26 +01:00
Jeff Walden
373b09baf8 Bug 1289882 - Implement an experimental, off-by-default Intl.NumberFormat.prototype.formatToParts function. r=anba
--HG--
extra : rebase_source : 8e2b6032b3676723a58eb1b87c5909176cd51a49
2016-08-08 13:34:37 -07:00
Till Schneidereit
95b8398292 Bug 1322920 - Remove DOM Promise implementation. r=bz
MozReview-Commit-ID: 1zzd0x2LNNb
2016-12-14 17:11:48 +01:00
Jon Coppeard
ece7148c8f Bug 1321277 - Remove use of AutoKeepAtoms from last ditch GC r=sfink 2016-12-01 10:49:33 +00:00
Zibi Braniecki
6fa9d29045 Bug 1287677 - Add mozIntl.getDisplayNames API. r=Waldo
MozReview-Commit-ID: GYVlvSv3Yd9

--HG--
extra : rebase_source : 75f24ca61ab87529f72bcba3aab2157bc29bed98
2016-11-28 12:06:20 -08:00
Tooru Fujisawa
1b94319fed Bug 1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox. r=jandem 2016-11-29 09:08:43 +09:00
Tooru Fujisawa
a0d3730cfd Bug 1320408 - Part 2: Change JSFunction::getOrCreateScript to static method. r=jandem 2016-11-28 12:29:17 +09:00
Benjamin Bouvier
bf072808d3 Bug 1297901: Fix ordering of taking mutexes for the shell tasks; r=jonco
MozReview-Commit-ID: 66AhMF35BBE

--HG--
extra : rebase_source : 0f10c9190cfed3fc3b3d036b4e9a088fd0830e16
2016-11-14 18:20:44 +01:00