Commit Graph

513 Commits

Author SHA1 Message Date
Olli Pettay
f0930f685c Bug 1298661, let meta-stable state runnables run during sync loops, r=baku 2016-09-05 18:54:04 +03:00
Nicholas Nethercote
887efe04d5 Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Luke Wagner
76965650a4 Bug 1283924 - Implement AsyncTask hooks for worker thread JSContexts (r=bkelly)
MozReview-Commit-ID: CU4tiYaREik
2016-08-19 14:00:53 -05:00
Wes Kocher
9836520505 Backed out 2 changesets (bug 1279086) for causing painting issues a=backout
Backed out changeset b1c893387fdd (bug 1279086)
Backed out changeset 277c54118c8a (bug 1279086)
2016-08-22 16:00:34 -07:00
Andrea Marchesini
1dbd782114 Bug 1286895 - Fix a talos regression, r=me 2016-08-22 12:13:15 +02:00
Andrea Marchesini
f6650e8614 Bug 1286895 - Reintroduce a limit on number of dedicated JS web workers in Firefox, r=bkelly 2016-08-19 08:38:58 +02:00
Sebastian Hengst
51a1e0743d Backed out changeset f4c8b3de527e (bug 1286895) for crashing in test_bug1241485.html. r=backout 2016-08-21 11:31:35 +02:00
Andrea Marchesini
02514ffeca Bug 1286895 - Reintroduce a limit on number of dedicated JS web workers in Firefox, r=bkelly 2016-08-19 08:38:58 +02:00
Luke Wagner
35f0a5cc6e Backed out changeset b6cf6d7a95f9
MozReview-Commit-ID: JtuQh7USSWX
2016-08-19 17:09:56 -05:00
Bill McCloskey
33a2cf30cc Bug 1279086 - Allow multiple interrupt callbacks (r=dvander) 2016-08-19 14:40:52 -07:00
Luke Wagner
f7ed0e5f06 Bug 1283924 - Implement AsyncTask hooks for worker thread JSContexts (r=bkelly)
MozReview-Commit-ID: F31bzEH5rPR
2016-08-19 14:00:53 -05:00
Wes Kocher
bd5bb0eef4 Backed out 2 changesets (bug 1279086) for failures in browser_menu_item_01.js a=backout
Backed out changeset 00bb53b58e96 (bug 1279086)
Backed out changeset cff59fe2b933 (bug 1279086)
2016-08-19 12:31:55 -07:00
Bill McCloskey
3f0616dfba Bug 1279086 - Allow multiple interrupt callbacks (r=dvander) 2016-08-19 09:59:39 -07:00
Jeff Walden
2f139ccf5e Bug 1174386 - Fix a rebase-induced pointer-to-bool conversion error. r=bustage in a CLOSED TREE 2016-08-16 09:08:00 -07:00
Arthur Edelstein
621139730b Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden, r=baku 2016-08-08 13:33:39 -07:00
Jan de Mooij
bd0f1c9018 Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru 2016-08-11 14:39:22 +02:00
Jeff Walden
161e9a00f2 Backed out changeset c3f06ba15fda -- worker setup isn't happening quite as early as it was assumed to occur, so we have impermissible cross-thread happenings occurring sometimes. r=three-to-five-oranges-per-push-per-philor 2016-08-08 19:43:15 -07:00
Arthur Edelstein
1046d08acc Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden 2016-08-08 13:33:39 -07:00
Alexandre Lissy
b2834a3543 Bug 1284674 - Remove NUWA r=cyu
MozReview-Commit-ID: GyMRNzOBKw6
2016-08-02 14:54:00 +02:00
Jan de Mooij
7ff36899cf Bug 1286795 part 6 - Replace JS_NewRuntime/JS_DestroyRuntime with JS_NewContext/JS_DestroyContext. r=luke,bz 2016-07-23 19:54:19 +02:00
Jan de Mooij
0dcc822f2b Bug 1285134 part 1 - Move the runtime private to the context. r=efaust 2016-07-18 14:36:13 +02:00
Andrea Marchesini
d9bad6caa6 Bug 1279498 - Force WorkerPrivate->SetThread(nullptr) using a RAII, r=khuey 2016-07-18 11:46:36 +02:00
Jan de Mooij
6941dba9aa Bug 1284808 - Rename RuntimeOptions to ContextOptions and move it to the context. r=luke,baku 2016-07-07 08:15:15 +02:00
Jan de Mooij
90b703628e Bug 1283855 part 25 - Make JS_GC take JSContext instead of JSRuntime. r=terrence 2016-07-06 11:40:20 +02:00
Jan de Mooij
706da291dc Bug 1283855 part 23 - Make more callback setters take JSContext instead of JSRuntime. r=evilpie 2016-07-06 11:40:20 +02:00
Jan de Mooij
401124ffae Bug 1283855 part 3 - Make some callback setters take JSContext instead of JSRuntime. r=efaust 2016-07-06 11:40:20 +02:00
Jan de Mooij
19682be3ac Bug 1283855 part 20 - Make more principals code take JSContext instead of JSRuntime. r=luke 2016-07-05 16:49:46 +02:00
Jan de Mooij
c9a160c5f1 Bug 1283855 part 19 - Make security callbacks take JSContext instead of JSRuntime. r=jorendorff 2016-07-05 16:49:44 +02:00
Nathan Froyd
68a263d7f1 Bug 1283616 - part 2 - micro-optimize inserting microtask runnables into the queue; r=khuey
We can save an AddRef/Release pair by passing in the reference to the queue.
2016-07-05 18:49:06 -04:00
Jan de Mooij
232d17e931 Bug 1283855 part 14 - Make more callback setters take JSContext instead of JSRuntime. r=shu 2016-07-05 14:35:26 +02:00
Jan de Mooij
9a35d3fcb0 Bug 1283855 part 13 - Make JS_SetNativeStackQuota take JSContext instead of JSRuntime. r=fitzgen 2016-07-05 14:35:23 +02:00
Jan de Mooij
22f78cde9e Bug 1283855 part 12 - Make some GC APIs take JSContext instead of JSRuntime. r=sfink 2016-07-05 14:35:21 +02:00
Jan de Mooij
70b39b7234 Bug 1283855 part 9 - Make asm.js/buildId op setters take JSContext instead of JSRuntime. r=bbouvier 2016-07-05 11:06:06 +02:00
Jan de Mooij
1f565193bd Bug 1283855 part 7 - Make JS_SetGCZeal take JSContext instead of JSRuntime. r=sfink 2016-07-05 11:06:05 +02:00
Jan de Mooij
97cade1c39 Bug 1283855 part 2 - Make some callback setters take JSContext instead of JSRuntime. r=luke 2016-07-05 11:06:05 +02:00
Kyle Huey
17df413084 Bug 1283327: Factor out SynchronouslyCreatePBackground. r=billm 2016-06-30 13:54:06 -07:00
Jan de Mooij
971389ad49 Bug 1279295 - Create the runtime's JSContext when we create the runtime. r=luke 2016-06-22 09:47:52 +02:00
Andrea Marchesini
75e0577df7 Bug 1280241 - Remove the limit of number of workers per domain, r=khuey 2016-06-17 11:25:21 +01:00
Jonathan Watt
9c5b8de022 Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Boris Zbarsky
dd0c0086a9 Bug 1276317 part 1. Change JS_SetGCZeal to take a JSRuntime, not a JSContext. r=jandem 2016-06-02 10:34:38 -04:00
Boris Zbarsky
7eb8c8bc4c Bug 1276400 part 2. Stop setting the dontReportUncaught option on the worker JSContext, since workers should be using AutoJSAPI/AutoEntryScript for everything. r=bkelly 2016-05-31 22:01:30 -04:00
Andrea Marchesini
eebcab2efe Bug 1268230 - RunTime.cpp and ScriptLoader do not have to use MainThreadStopSyncLoopRunnable, r=khuey 2016-05-03 10:21:57 +02:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Nicholas Nethercote
eaeaf76ae0 Bug 1265035 - Make ~WorkerJSRuntime() handle Initialize() failure better. r=khuey. 2016-04-19 14:04:32 +10:00
John Dai
8a27103bcc Bug 1037725 - Add warning message in the console when worker spawn over limit. r=khuey 2016-04-12 01:41:00 +02:00
Emanuel Hoogeveen
d90868f10f Bug 1260475 - Add an option to disable GC slices triggered by painting. r=terrence a=kwierso
MozReview-Commit-ID: B81ZHm0EgZB
2016-03-31 14:26:30 -07:00
Kyle Huey
20d0dc7286 Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Kyle Huey
777ddc3529 Bug 1259290: Part 3 - Remove JS_ReportError and cx handling from RegisterWorker and friends. r=bz,jandem 2016-03-28 10:28:14 -07:00
Kyle Huey
f802c382ed Bug 1259290: Part 2 - Remove the cx from [Add|Remove]ChildWorker. r=bz 2016-03-28 10:28:14 -07:00
Eddy Bruel
e5db48a881 Bug 1229769 - We should be able to use DOM promises in the worker debugger;r=khuey 2016-03-24 16:12:00 +01:00