Chris Peterson
677bf4030c
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
David Teller
c572e064a3
Bug 1409852 - Expose an API in ChromeUtils to detect chrome JS dev errors;r=bz
...
MozReview-Commit-ID: GluMLeQOHTZ
2017-11-16 10:48:45 +01:00
Csoregi Natalia
a7ffe7d981
Backed out 3 changesets (bug 1409852) for build bustage and failing test_js_dev_error_interceptor.js. r=backout on a CLOSED TREE
...
Backed out changeset 06368bf1a32c (bug 1409852)
Backed out changeset 46fce9a2622d (bug 1409852)
Backed out changeset 649d7bdf80ad (bug 1409852)
2017-12-21 15:31:27 +02:00
David Teller
ebfea04c0f
Bug 1409852 - Expose an API in ChromeUtils to detect chrome JS dev errors;r=bz
...
MozReview-Commit-ID: GluMLeQOHTZ
2017-11-16 10:48:45 +01:00
Andrea Marchesini
d60c509f58
Bug 1422316 - WorkerJSRuntime::Shutdown must call the base class ::Shutdown method, f=yoric, r=bkelly
2017-12-18 17:59:30 +01:00
Chia-Hung Duan
0bfe9cc488
Bug 1376891 - Support idle runnable for nursery collection. r=jonco, r=smaug
2017-10-30 18:07:42 +08:00
Csoregi Natalia
5a5966a0f1
Backed out changeset fbf84e79c44c (bug 1376891) for bustage CycleCollectedJSRuntime.h:254 r=backout on a CLOSED TREE
2017-11-01 15:32:09 +02:00
Chia-Hung Duan
00ea51de91
Bug 1376891 - Support idle runnable for nursery collection. r=jonco, r=smaug
2017-10-30 18:07:42 +08:00
Jon Coppeard
3fe6456d82
Bug 1378717 - Store JS holders in a vector for faster iteration r=smaug
2017-07-11 16:52:01 +01:00
Boris Zbarsky
7ddf9eea72
Bug 1376954 part 1. Ensure that we don't try to nursery-allocate non-wrappercached DOM objects. r=smaug
2017-06-30 10:15:51 -07:00
Nicholas Nethercote
55c693e8f9
Bug 1375299 (part 1) - Reduce usage of MOZ_GECKO_PROFILER. r=mstange.
...
This patch reduces the differences between builds where the profiler is enabled
and those where the profiler is disabled. It does this by removing numerous
MOZ_GECKO_PROFILER checks.
These changes have the following consequences.
- Various functions and classes are now defined in all builds, and so can be
used unconditionally: profiler_add_marker(), profiler_set_js_context(),
profiler_clear_js_context(), profiler_get_pseudo_stack(), AutoProfilerLabel.
(They are effectively no-ops in non-profiler builds, of course.)
- The no-op versions of PROFILER_* are now gone. The remaining versions are
almost no-ops when the profiler isn't built.
2017-06-22 06:26:16 +10:00
Andrew McCreight
0de06cdb28
Bug 1364528 - Don't synchronously finalize native objects if an exception is pending. r=smaug
...
MozReview-Commit-ID: 6OY3ftH1aWu
2017-05-12 11:16:16 -07:00
Steve Fink
7c0c4ef112
Bug 1322560 - Record minor GC timings in profiles, r=jonco, mccr8, mstange
2017-04-25 13:24:34 -07:00
Bill McCloskey
1a26f8b6f4
Bug 1359245 - Remove references to context from the cycle collector (r=mccr8)
...
MozReview-Commit-ID: 1QoNEiZMvBf
2017-04-27 15:34:46 -07:00
Bill McCloskey
8830029ed4
Bug 1359245 - Keep a linked list of CycleCollectedJSContexts in the runtime (r=mccr8)
...
This patch keeps a list of all the cooperatively scheduled contexts that are
linked to a runtime. In places where we need to iterate over all contexts (for
GC, specifically), it iterates over the list.
MozReview-Commit-ID: 3pKJX78f2l0
2017-04-27 15:34:46 -07:00
Bill McCloskey
99b84aa84e
Bug 1359245 - Remove CycleCollectedJSRuntime::mJSContext (r=mccr8,sfink)
...
This patch eliminates a field where we assume that there is one
CycleCollectedJSContext per runtime.
MozReview-Commit-ID: 5cEL5Ml6Y9v
2017-04-27 15:34:46 -07:00
Bill McCloskey
35b88671ac
Bug 1359245 - Get rid of CycleCollectedJSRuntime::MainContext (r=mccr8)
...
This is another method that assumes one context per runtime. This patch
eliminates the method.
MozReview-Commit-ID: JHcQ1nyiHSP
2017-04-27 15:34:46 -07:00
Bill McCloskey
612db5fd30
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
Jan de Mooij
b402a91ead
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
2016-09-14 15:47:32 +02:00
Olli Pettay
f0930f685c
Bug 1298661, let meta-stable state runnables run during sync loops, r=baku
2016-09-05 18:54:04 +03:00
Jan de Mooij
7aaedf17ba
Bug 1292892 part 2 - Some RootingContext cleanup. r=bz,terrence
2016-08-11 14:39:22 +02: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
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
705fa31f27
Bug 1286795 part 4 - Change some callbacks to take JSContext instead of JSRuntime. r=terrence
2016-07-23 19:52:47 +02:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07: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
Till Schneidereit
705a5e099f
Bug 911216 - Part 27: Properly set up incumbent and current globals for Promise reaction jobs. r=efaust,bz
2016-07-02 02:00:47 +02:00
Boris Zbarsky
78942677dd
Bug 767938 part 11. Move the "safe JS context" to where it belongs: the CycleCollectedJSRuntime. r=bholley
2016-06-24 14:19:51 -04:00
Till Schneidereit
4f5be3e505
Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo
2016-03-22 16:22:24 +01:00
Jan de Mooij
584e74df80
Bug 1278947 part 1 - Stop using JSContext callback in XPConnect. r=bz
2016-06-10 09:27:14 +02:00
Boris Zbarsky
717825d485
Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8
2016-05-27 13:28:26 -04:00
Carsten "Tomcat" Book
a96c2797f7
Backed out changeset e8af287d0d10 (bug 1276112) for causing windows gl crashes
2016-05-30 10:29:44 +02:00
Boris Zbarsky
c578ffd08f
Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8
2016-05-27 13:28:26 -04:00
Till Schneidereit
987d271b83
Bug 911216 - Part 13: Set Promise allocation stack as async stack for Promise callback jobs. r=efaust,bz
2016-03-22 16:22:23 +01:00
Andrew McCreight
af56b4dd55
Bug 1271848, part 1 - Add ClassName() method to the CC participant. r=smaug
...
This will let us report better information about participants at runtime.
2016-05-12 10:54:33 -07:00
Nicholas Nethercote
eaeaf76ae0
Bug 1265035 - Make ~WorkerJSRuntime() handle Initialize() failure better. r=khuey.
2016-04-19 14:04:32 +10: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
Tooru Fujisawa
a844923cae
Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz
2016-01-01 14:19:20 +09:00
Boris Zbarsky
b31f6e14e7
Bug 1252565 part 1. Push the script environment preparer bits up from XPCJSRuntime to CycleCollectedJSRuntime, because we need them on workers to do ctypes on workers properly. r=bholley
2016-03-02 12:38:24 -05:00
Wes Kocher
adfb7f3fb9
Backed out 2 changesets (bug 1252565) for windows build bustage CLOSED TREE
...
Backed out changeset 9de2c10a1cc3 (bug 1252565)
Backed out changeset fc5c4cb02d24 (bug 1252565)
MozReview-Commit-ID: GCQedQwqslg
2016-03-02 10:44:11 -08:00
Boris Zbarsky
cef7adef52
Bug 1252565 part 1. Push the script environment preparer bits up from XPCJSRuntime to CycleCollectedJSRuntime, because we need them on workers to do ctypes on workers properly. r=bholley
2016-03-02 12:38:24 -05:00
Andrew McCreight
f84e7d971f
Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug
2016-02-18 15:21:48 -08:00
Andrea Marchesini
649eecd0f2
Bug 1247122 - Propagate the NS_ERROR_OUT_OF_MEMORY from CycleCollectedJSRuntime CTOR, r=khuey
2016-02-14 13:30:25 +00:00
Boris Zbarsky
f71108b9e6
Bug 1243001 part 8. Tell SpiderMonkey to put its promise jobs into the CycleCollectedJSRuntime job queue. r=peterv
...
This will run the SpiderMonkey promise jobs more or less the same way that we
run Promise jobs right now, including using a Web IDL callback for the actual
invocation.
2016-02-09 17:40:31 -05:00
Chris Pearce
d97e9085a6
Bug 1200514 - Run remaining stable state runnables after final cycle collection. r=froydnj,mccr8
2016-01-13 11:37:57 +13:00
Nick Fitzgerald
a943e0eb38
Bug 1233831 - Part 3: Install a callback to trace nursery collections; r=mccr8
...
This commit makes CycleCollectedJSRuntime install a nursery collection callback
which traces nursery collections with a new `mozilla::TimelineMarker` subclass.
2016-01-19 12:48:22 -08:00
Nicholas Nethercote
7bce317411
Bug 1237169 - Remove some unused parameters in and around xpcom/base/. r=mccr8.
2016-01-05 19:32:28 -08:00
Olli Pettay
4771877f66
Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
2015-12-31 15:21:49 +02:00
Wes Kocher
b6dde9f28a
Backed out changeset 0d55a6e4e98e (bug 1120016) for 980 b2g hazards
2015-12-30 16:34:18 -08:00
Olli Pettay
ed8008ccd2
Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
2015-12-30 19:16:13 +02:00