Jan de Mooij
6ad0a86b42
Bug 1237504 - Refactor proxy slot layout to allow proxies to have more than 2 slots. r=bz,jonco
...
The patch makes the following proxy changes:
* The number of slots in ProxyValueArray is now dynamic and depends on the number of reserved slots we get from the Class.
* "Extra slots" was renamed to "Reserved slots" to make this clearer.
* All proxy Classes now have 2 reserved slots, but it should be easy to change that for proxy Classes that need more than 2 slots.
* Proxies now store a pointer to these slots and this means GetReservedSlot and SetReservedSlot can be used on proxies as well. We no longer need GetReservedOrProxyPrivateSlot and SetReservedOrProxyPrivateSlot.
And some changes to make DOM Proxies work with this:
* We now store the C++ object in the first reserved slot (DOM_OBJECT_SLOT) instead of in the proxy's private slot. This is pretty nice because it matches what we do for non-proxy DOM objects.
* We now store the expando in the proxy's private slot so I removed GetDOMProxyExpandoSlot and changed the IC code to get the expando from the private slot instead.
2017-04-28 14:12:28 +02:00
Bill McCloskey
f32234a94e
Bug 1359245 - Eliminate nsXPConnect::GetContextInstance() (r=mccr8)
...
This method assumes there is one global XPCJSContext. This patch eliminates
uses of it.
MozReview-Commit-ID: L2AkBGh5TnC
2017-04-27 15:34:46 -07:00
Jon Coppeard
d60b70fa01
Bug 1352430 - Add barrier to CPOWs table to remove dying objects r=billm
2017-04-26 11:18:53 +01:00
Jon Coppeard
1690b0506c
Bug 1345177 - Remove use of RegExpGuard r=sfink
2017-03-27 10:38:29 +01:00
Jon Coppeard
f2dc766532
Backed out changesets e66f564d9749 and 0380d914ad39 (bug 1345177) for rooting hazards
2017-03-27 11:09:54 +01:00
Jon Coppeard
08352c6c76
Bug 1345177 - Remove use of RegExpGuard r=sfink
2017-03-27 10:38:29 +01:00
Jon Coppeard
b0a63f7241
Bug 1341044 - Rename the GC's 'zone group' concept to 'sweep group' r=sfink
2017-03-22 17:30:50 +00:00
Tom Tromey
e90d95a3f9
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Tom Schuster
932e8ca649
Bug 1339036 - Rename JSTYPE_VOID to JSTYPE_UNDEFINED. r=arai
2017-02-13 17:26:16 +01:00
Boris Zbarsky
b0f35c60e3
Bug 1335368 part 8. Stop using IsCallerChrome in UnwrapArgImpl. r=bholley
2017-02-01 15:43:37 -05:00
Tooru Fujisawa
4b595b32f4
Bug 1332245 - Move nsScriptError from js/xpconnect to dom/bindings. r=bz
2017-01-28 00:42:47 +09:00
Andrew McCreight
1bde316c56
Bug 1331809 - Remove unused variable in WrapperOwner::hasInstance(). r=kanru
...
MozReview-Commit-ID: 3de6HDTVpU0
2017-01-17 16:34:16 -08:00
Andrew McCreight
40df076a4a
Bug 1330018 - Ensure we always unwrap CpowEntries. r=bholley,billm
...
We can drop async messages that contain CPOWs, which can cause us to
leak them either until we successfully send a CPOW or forever,
depending on the direction of the message. This is causing
intermittent leaks until shutdown with e10s-multi.
MozReview-Commit-ID: 3iIaIBZKZR2
2017-01-13 13:50:35 -08:00
Andrew McCreight
4f6b7d8ac4
Bug 1331115 - Fix two typos in CPOW code. r=billm
...
MozReview-Commit-ID: FAh7O1U9hGP
2017-01-13 09:49:17 -08:00
Steve Fink
ba86250240
Bug 1308236 - Don't trigger read barriers when comparing wrapped pointers types r=sfink r=mccr8
2016-10-28 15:11:56 -07:00
Jon Coppeard
1bf98927a2
Bug 1318384 - Don't trigger pre barrier in WrapperAnswer::RecvDropObject r=billm
2016-11-18 13:18:09 +00:00
Kan-Ru Chen
1b9dd22e2d
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Bill McCloskey
f4301a8121
Bug 792652 - Simplify IPDL type hierarchy (r=dvander)
...
Currently all our protocols inherit from IProtocolManager<IProtocol>. I have
no idea why. This patch switches everything over to IProtocol, without any
templates. I had to move ReadActor to the .cpp file to avoid redefinition
errors.
2016-11-08 15:22:34 -08:00
Wes Kocher
9ae70893b6
Backed out 18 changesets (bug 792652) for build bustage on linux64 a=backout CLOSED TREE
...
Backed out changeset 90eaf6aec002 (bug 792652)
Backed out changeset ddd915ab4a48 (bug 792652)
Backed out changeset 95eff6c45cae (bug 792652)
Backed out changeset 75855b5a9ab9 (bug 792652)
Backed out changeset b658ebaad5d7 (bug 792652)
Backed out changeset 2ba36b8ac60c (bug 792652)
Backed out changeset 94fcd3bf3f34 (bug 792652)
Backed out changeset cf9c4164eb43 (bug 792652)
Backed out changeset 59e6d0a4f35b (bug 792652)
Backed out changeset bdf86b8b9c43 (bug 792652)
Backed out changeset 8edf4b247250 (bug 792652)
Backed out changeset 63a3c8e4016e (bug 792652)
Backed out changeset e3e496eab991 (bug 792652)
Backed out changeset 5a1e3136323a (bug 792652)
Backed out changeset dbbe3a8c00e7 (bug 792652)
Backed out changeset 1829d5358808 (bug 792652)
Backed out changeset 004cd692ba6d (bug 792652)
Backed out changeset 92e7fee81fa2 (bug 792652)
2016-11-08 12:05:28 -08:00
Bill McCloskey
bddad17826
Bug 792652 - Simplify IPDL type hierarchy (r=dvander)
...
Currently all our protocols inherit from IProtocolManager<IProtocol>. I have
no idea why. This patch switches everything over to IProtocol, without any
templates. I had to move ReadActor to the .cpp file to avoid redefinition
errors.
2016-11-08 11:32:24 -08:00
David Major
c4864e69d5
Bug 1311825: Pass by reference in fromObjectVariant and related methods. r=billm
...
MozReview-Commit-ID: GIhK1zRMsYb
2016-10-20 15:37:26 -05:00
Bill McCloskey
1deceb4b29
Bug 1311212 - Add dead CPOW debugging facility (r=mrbkap)
2016-10-19 16:26:23 -07:00
Bill McCloskey
efff0482ee
Bug 1306708 - Rename prio to nested in IPDL (r=dvander)
2016-10-04 20:34:54 -07:00
Bill McCloskey
71303baeea
Revert "Bug 1306708 - Rename prio to nested in IPDL (r=dvander)" on a CLOSED TREE
...
This reverts commit b1460c626078afbb9290e7d9ecaf3af605d5e893.
2016-10-04 15:55:19 -07:00
Bill McCloskey
308f9f039b
Bug 1306708 - Rename prio to nested in IPDL (r=dvander)
2016-10-04 15:28:14 -07:00
Terrence Cole
ed32b698b3
Bug 1297558 - Use a read barrier on Heap to ExposeToActiveJS r=sfink r=mccr8
2016-02-07 09:08:55 -08:00
Tooru Fujisawa
a33ab4d32a
Bug 1290337 - Part 13: Replace Value parameter to const Value& in finalizeInBackground. r=sfink
2016-09-11 18:15:23 +09:00
Tooru Fujisawa
a5294e0308
Bug 1289050 - Part 1: Use ASCII variant of JS_ReportError in simple case. r=jwalden
2016-08-14 20:39:28 +09:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Jan de Mooij
519f0d4bf1
Bug 1292892 part 7 - Remove unnecessary JSContext arguments from IPC classes. r=bz
2016-08-11 14:39:23 +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
Wei-Cheng Pan
0a2691dccf
Bug 1249698 - Use parent stack instead of vanished child stack. r=billm
...
MozReview-Commit-ID: LaX5K1uPZo9
2016-07-26 18:30:42 +08: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
Tom Tromey
1b5a2bdb96
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Nicholas Nethercote
0e059d48ee
Bug 1197973 - Use MOZ_MUST_USE in AutoJSAPI. r=bz.
2016-07-14 13:18:11 +10:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Jan de Mooij
da141f30c3
Bug 1283855 part 21 - Make performance monitoring APIs take JSContext instead of JSRuntime. r=Yoric
2016-07-06 16:53:50 +02:00
Bill McCloskey
30522c51bd
Bug 1214824 - Forbid CPOW usage if add-on declares it is multiprocessCompatible (r=mrbkap)
2016-07-05 13:59:36 -07:00
Jan de Mooij
24d5a9da4c
Bug 1283855 part 11 - Make some GC callback APIs take JSContext instead of JSRuntime. r=terrence,mccr8
2016-07-05 14:35:19 +02:00
Jan de Mooij
7db749e17a
Bug 1283855 part 10 - Make some GC callback APIs take JSContext instead of JSRuntime. r=jonco
2016-07-05 14:35:16 +02:00
Phil Ringnalda
7612068980
Back out 14928a6b38f3 (bug 1214824) for leaking an nsStringBuffer in debug e10s devtools
2016-06-30 21:12:11 -07:00
Bill McCloskey
d030f958ce
Bug 1214824 - Forbid CPOW usage if add-on declares it is multiprocessCompatible (r=mrbkap)
2016-06-30 17:38:54 -07:00
Tom Schuster
88135ce2c1
Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff
2016-06-30 00:04:56 +02: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
Jan de Mooij
2474a5e7b4
Bug 1277278 part 1 - Remove ContextOptions and make autoJSAPIOwnsErrorReporting the default. r=luke
2016-06-07 20:30:48 +02:00
Chris Peterson
db4ed6af7b
Bug 1276567 - Fix -Wstring-conversion warnings in js/ directory. r=billm
...
js/ipc/WrapperAnswer.cpp:531:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [12]' to 'bool'
js/src/jit/MIR.h:63:25 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [26]' to 'bool'
js/src/jit/SharedIC.cpp:1648:21 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [30]' to 'bool'
js/src/jsgc.cpp:7135:21 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [59]' to 'bool'
2016-05-31 21:49:52 -07:00
Boris Zbarsky
e0ebffdf39
Bug 1276400 part 3. Stop setting the dontReportUncaught option in IPC code, since we're working with an AutoJSAPI there. r=bkelly
2016-05-31 22:04:33 -04:00
Chris Peterson
57a1006d4d
Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium
2016-05-11 00:00:01 -07:00
Terrence Cole
315ff1f2c2
Bug 1267699 - Move some public types to the right namespace; r=sfink
2016-04-26 09:18:48 -07:00
Jon Coppeard
2eca49bb45
Bug 1268085 - Remove unused post barrier callbacks r=terrence
2016-04-29 10:44:22 +01:00