Carsten "Tomcat" Book
7decdeb7c8
Merge mozilla-central to autoland
2017-03-15 13:19:12 +01:00
Nicholas Nethercote
8876b32323
Bug 1345262 (part 5) - Fix how JS sampling is started/stopped by the profiler. r=mstange,djvj.
...
Currently, JS sampling has major problems.
- JS sampling is enabled for all JS threads from the thread that runs
locked_profiler_start() -- currently only the main thread -- but the JS
engine can't handle enabling from off-thread, and asserts. This makes
profiling workers impossible in a debug build.
- No JS thread will be JS sampled unless enableJSSampling() is called, but that
only happens in locked_profiler_start(). That means any worker threads
created while the profiler is active won't be JS sampled.
- Only the thread that runs locked_profiler_stop() -- currently only the main
thread -- ever calls disableJSSampling(). This means that worker threads that
start being JS sampled never stop being JS sampled.
This patch fixes these three problems in the following ways.
- locked_profiler_start() now sets a flag in PseudoStack that indicates
JS sampling is desired, but doesn't directly enable it. Instead, the JS
thread polls that flag and enables JS sampling itself when it sees the flag
is set. The polling is done by the interrupt callback. There was already a
flag of this sort (mJSSampling) but the new one is better.
This required adding a call to profiler_js_operation_callback() to the
InterruptCallback() in XPCJSContext.cpp. (In comparison, the
InterruptCallback() in dom/workers/RuntimeService.cpp already had such a
call.)
- RegisterCurrentThread() now requests JS sampling of a JS thread when the
profiler is active, the thread is being profiled, and JS sampling is enabled.
- locked_profiler_stop() now calls stopJSSampling() on all live threads.
The patch makes the following smaller changes as well.
- Renames profiler_js_operation_callback() as profiler_js_interrupt_callback(),
because "interrupt callback" is the standard name (viz.
JS_AddInterruptCallback()).
- Calls js::RegisterContextProfilingEventMarker() with nullptr when stopping
JS sampling, so that ProfilerJSEventMarker won't fire unnecessarily.
- Some minor formatting changes.
--HG--
extra : rebase_source : 372f94c963a9e5b2493389892499b1ca205ebc2f
2017-03-10 09:04:23 +11:00
Nicholas Nethercote
d8023679e3
Bug 1345262 (part 2) - Add profiler_{set,clear}_js_context(). r=mstange.
...
PseudoContext::sampleContext() is always called immediately after
profiler_get_pseudo_stack(). This patch introduces profiler_set_js_context()
and profiler_clear_js_context(), which replace the profiler_get_pseudo_stack()
+ sampleContext() pairs. This takes us a step closer to not having to export
PseudoStack outside the profiler.
--HG--
extra : rebase_source : 8558d1600eafd395cc696d31f3d21fb52a1a74b0
2017-03-09 17:06:35 +11:00
Boris Zbarsky
746467862d
Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits.
2017-03-10 23:52:55 -05:00
Wes Kocher
a7c590aa9c
Merge inbound to central, a=merge
...
MozReview-Commit-ID: KWDF34vWlBx
2017-03-14 17:18:59 -07:00
Geoff Brown
6eac32a3c5
Bug 1338809 - Build android xpcshell as position independent executable; r=glandium
...
This allows xpcshell-test to be run on Android 5.0 and greater at the
expense of Android 4.0: Run xpcshell on Android 4.1 and above.
2017-03-14 08:08:43 -06:00
Jan de Mooij
cdf58c0603
Bug 1344265 - Fix OOM bug in newExternalString testing function. r=bbouvier
2017-03-14 15:00:43 +01:00
Jan de Mooij
a42b1e1a08
Bug 1345707 - Don't attach set-dense-hole stubs for non-extensible objects. r=tcampbell
2017-03-14 14:58:38 +01:00
Carsten "Tomcat" Book
fb74131fe7
Merge mozilla-central to mozilla-inbound
2017-03-14 14:26:07 +01:00
Carsten "Tomcat" Book
dba578960e
merge mozilla-inbound to mozilla-central a=merge
2017-03-14 14:23:03 +01:00
Chih-Yi Leu
ec60526d60
Bug 1315037 - Use NS_ENSURE_SUCCESS for nsresult diagnosis. r=erahm
2017-03-13 02:14:00 +01:00
Makoto Kato
831b62ec11
Bug 1345336 - Part 1. Remove empty zoneStrings entries. r=Waldo
...
MozReview-Commit-ID: EuVZ5sgHoBH
2017-03-13 13:37:47 +09:00
Jan de Mooij
a366376aef
Bug 1341071 - Fix Ion IC post barriers to be part of the IC stubs instead of adding them in IonBuilder. r=jonco,nbp
2017-03-14 13:05:23 +01:00
Steve Fink
e4692e3730
Bug 1346874 - Skip gray mark check stack walk on DEBUG Android, r=mccr8
...
--HG--
extra : rebase_source : 090d65e9f60c6327c4852f3042b57ce8ef5f1e12
extra : histedit_source : df5e8164f89e7ad75ce7032a2dcbae8dbfbd6e28
2017-03-13 10:43:09 -07:00
Luke Wagner
38869370c4
Bug 1342641 - Baldr: make OpIter always validate and produce output (r=bbouvier)
...
MozReview-Commit-ID: 3PD8DqFeV77
--HG--
extra : rebase_source : e79b0de90b612c7bc0e4fc4b7a7767c970d9faa2
2017-03-13 12:25:57 -05:00
Luke Wagner
e887cb00e9
Bug 1342641 - Baldr: validate and compile in a single pass in Rabaldr (r=lth)
...
MozReview-Commit-ID: 22AK6gG1pZ7
--HG--
extra : rebase_source : 29ba24ad1f133148872130b422d705c9972a3583
2017-03-13 12:25:25 -05:00
Luke Wagner
097b235e34
Bug 1342641 - Baldr: validate and compile in a single pass in Ion (r=bbouvier)
...
MozReview-Commit-ID: HRW2BuA6GSs
--HG--
extra : rebase_source : cee7a41a5cc597d3133fa3e19160e4d5eed10388
2017-03-13 12:25:03 -05:00
Luke Wagner
92074ab0d0
Bug 1346269 - Baldr: remove dependency on TlsContext in ModuleGenerator::finish (r=bbouvier)
...
MozReview-Commit-ID: IU3vYQ98ZFB
2017-03-13 10:03:38 -05:00
Zibi Braniecki
f096c9aab9
Bug 1346674 - Migrate all uses of nsILocaleService::GetApplicationLocale to mozILocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: 2E7mj3yQnxB
--HG--
extra : rebase_source : 97ba5b1738b2f116ec75830ed1b23f279680035e
2017-03-12 20:39:22 -07:00
Madeleine Chercover
99f76d739a
Bug 1347241
- Enable linux64-ccov coverage collection for common tests set; r=gmierz,jmaher
...
MozReview-Commit-ID: FLyjCwMGb6L
--HG--
extra : rebase_source : 4c2c56c5ace6fd1f6b933a92ad0f69189ab1df69
2017-03-14 11:40:59 -07:00
Sebastian Hengst
1c387c432b
Backed out changeset da332b097c16 (bug 1345336) for failing jsreftest.html?test=Intl/DateTimeFormat/format.js on Windows 7 VM pgo. r=backout
2017-03-13 10:47:30 +01:00
Makoto Kato
f65c413250
Bug 1345336 - Part 1. Remove empty zoneStrings entries. r=Waldo
...
MozReview-Commit-ID: EuVZ5sgHoBH
--HG--
extra : rebase_source : d8341641ef4dcb01701f3cac8f1537f9278fac92
2017-03-13 13:37:47 +09:00
Benjamin Bouvier
25786342d6
Bug 1346264: Fix debugging of ARM simulator float register debugging; r=nbp
...
MozReview-Commit-ID: 9rVbtqBLHjJ
--HG--
extra : rebase_source : cc0492d698f0430bbb2269742036038f3c8ec2f2
2017-03-10 17:20:56 +01:00
André Bargull
0488a95df8
Bug 1346074 - Part 2: Move ToLengthClamped into jsarray.cpp. r=shu
...
--HG--
extra : rebase_source : a89628cae4e9b8424d2a6eef42d12a6e60a96734
2017-03-10 23:40:17 +01:00
André Bargull
ebd0ed5d8e
Bug 1346074 - Part 1: Align SharedArrayBuffer constructor to match ArrayBuffer constructor and latest spec. r=shu
...
--HG--
extra : rebase_source : 8c79f2b23d9c4f4886afc612c4788400651aec7d
2017-03-10 23:40:10 +01:00
Jan de Mooij
0c50ebd695
Bug 1346191 followup - Add array-isArray-proxy-recursion.js to cgc-jstests-slow.txt. r=red
2017-03-11 14:27:44 +01:00
Jan de Mooij
978a15019e
Bug 1346191 - Change Ion warmup threshold for small functions to be the same as the one for other functions. r=h4writer
2017-03-11 10:21:03 +01:00
Boris Zbarsky
d6b2fc9b4d
Backed out changeset c1978f7d49c4 for build failures.
...
MozReview-Commit-ID: FOwcGtykkXR
2017-03-11 00:10:36 -05:00
Boris Zbarsky
160b2e80e9
Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink
...
MozReview-Commit-ID: 264vsCvhh9Z
2017-03-10 23:52:55 -05:00
Wes Kocher
77632ccd1b
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: JXQqoTEXxwz
2017-03-10 17:22:54 -08:00
Shu-yu Guo
be920d3ccf
Bug 1345968 - Fix [no LineTerminator here] restriction for async arrow functions. (r=arai)
2017-03-10 15:19:50 -08:00
Shu-yu Guo
e95688d82f
Bug 1346067 - Update skip list. (r=anba)
2017-03-10 15:19:50 -08:00
Shu-yu Guo
a1ce0a0649
Bug 1346067 - Sync test262. (rs=anba)
...
--HG--
rename : js/src/tests/test262/built-ins/DataView/proto-from-ctor-realm.js => js/src/tests/test262/built-ins/DataView/proto-from-ctor-realm-sab.js
rename : js/src/tests/test262/built-ins/RegExp/prototype/exec/failure-lastindex-no-access.js => js/src/tests/test262/built-ins/RegExp/prototype/exec/failure-lastindex-access.js
rename : js/src/tests/test262/built-ins/RegExp/prototype/exec/success-lastindex-no-access.js => js/src/tests/test262/built-ins/RegExp/prototype/exec/success-lastindex-access.js
rename : js/src/tests/test262/built-ins/RegExp/proto-from-ctor-realm.js => js/src/tests/test262/built-ins/SharedArrayBuffer/proto-from-ctor-realm.js
rename : js/src/tests/test262/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm.js => js/src/tests/test262/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm-sab.js
rename : js/src/tests/test262/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js => js/src/tests/test262/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration-strict.js
2017-03-10 15:19:50 -08:00
Shu-yu Guo
52cd86417d
Bug 1346067 - $ renamed to $262 upstream. (r=anba)
2017-03-10 15:19:49 -08:00
Shu-yu Guo
f8baaf4f8c
Bug 1341061 - Followup: remove local copy of unscopables-inc-dec.
2017-03-10 15:19:48 -08:00
Shu-yu Guo
e189e2c224
Bug 1346063 - Don't remove test262/local when updating test262. (r=anba)
2017-03-10 15:19:48 -08:00
Yury Delendik
5cb89346cc
Bug 1343579 - Implements Debugger.Script.isInCatchScope for wasm scripts. r=shu
...
MozReview-Commit-ID: 29wj8APhtXW
--HG--
extra : rebase_source : f386750b18ffea1101fa709c3d73a538dd52e909
2017-03-02 22:28:01 -06:00
Benjamin Bouvier
442c38b07e
Bug 1346010: Properly render the name of func imports when there's at least one non-func import; r=yury
...
MozReview-Commit-ID: JqMfC1KrgTY
--HG--
extra : rebase_source : 98ddbfa07a4d8501e93c89f0e4b0f19d60991855
2017-03-10 12:21:39 +01:00
Tooru Fujisawa
a249012d21
Bug 1345960 - Handle shorthand property and destructuring with async keyword properly. r=shu
2017-03-10 13:21:35 +09:00
Tooru Fujisawa
a0b6078831
Bug 1344476 - Add BytecodeEmitter::emitPopN to emit shorter bytecode for given pop count. r=shu
2017-03-10 13:21:35 +09:00
Tooru Fujisawa
db3b7db18f
Bug 1342378 - Update js/src/configure when input files are newer than it. r=sfink
2017-03-10 13:21:35 +09:00
Shu-yu Guo
01f934f106
Bug 1345145 - Remove some frontend tracelogging that's in functions that are too hot, causing regressions, and whose per-call execution times are too low to be useful. (r=h4writer)
2017-03-09 19:24:52 -08:00
Wes Kocher
65140a44e3
Merge inbound to central, a=merge CLOSED TREE
...
MozReview-Commit-ID: Gj4s6DtqKmw
2017-03-09 16:33:31 -08:00
Andrew McCreight
634490d4bf
Bug 1344527 - Give up in ReadScriptAsync if we can't create a promise. r=bholley
...
MozReview-Commit-ID: Hq4vJZmfDpc
--HG--
extra : rebase_source : f3544bfc559aee379f66972ce97764354b6aa658
2017-03-09 09:24:28 -08:00
André Bargull
30d3752f7d
Bug 1345769 - Part 5: Move compareSource's source code normalization to the one remaining test which needs it. r=arai
...
--HG--
extra : rebase_source : 5b99a2f625108e98ab6efb519d2f2d4d726488c5
2017-03-09 09:59:06 -08:00
André Bargull
fcb085bf11
Bug 1345769 - Part 4: Update tests for native function source code. r=arai
...
--HG--
extra : rebase_source : 12d91741377f757b3498f9dab813cb4b909ec986
2017-03-09 09:58:58 -08:00
André Bargull
fdd4efc6a5
Bug 1345769 - Part 3: Keep whitespace unchanged in expected source code for compareSource. r=arai
...
--HG--
extra : rebase_source : a9d7ae56da7869e5e11b0bc625888a176d031e0a
2017-03-09 09:58:49 -08:00
André Bargull
8577312162
Bug 1345769 - Part 2: Remove word normalization step from compareSource. r=arai
...
--HG--
extra : rebase_source : 5a4e6354fdecde816a5180c256452e30100c3890
2017-03-09 09:58:42 -08:00
André Bargull
6b5a8dada2
Bug 1345769 - Part 1: Remove unused NewExpression and e4x normalization from compareSource. r=arai
...
--HG--
extra : rebase_source : 97888c8bd6a67e87f8beec9d74f2e123b2689bc0
2017-03-09 09:58:32 -08:00
Christian Holler
1965d4b2e1
Bug 1345906 - Add ReloadPrefsCallback for fuzzing.enabled pref. r=jandem
...
MozReview-Commit-ID: 5lNyaebmt1h
--HG--
extra : rebase_source : 331dcf55caaa662203a501e5d0fa16f692b61793
2017-03-09 16:47:34 +01:00