Boris Zbarsky
0fca6dde6f
Bug 1189822 part 4. Fix finalization for DOM overridebuildins proxies to not clear the expando if it's for a different reflector. r=peterv, sfink
...
This is something that should have happened in bug 1352430 but was missed there.
2017-05-17 00:52:53 -04:00
Boris Zbarsky
4a82be2233
Bug 1189822 part 3. Stop using EnsureExpandoObject in codegen code when we just want to preserver the wrapper for a DOM proxy. r=peterv
2017-05-17 00:52:53 -04:00
Boris Zbarsky
3f0471d0c3
Bug 1363874. Disallow [Cached] and [StoreInSlot] on static attributes for now. r=qdot
2017-05-12 11:15:12 -04:00
btian
ca49af0b6b
Bug 1338059 - Part 1: Generate cycle collection related code for WebIDL type Promise, r=bz
...
MozReview-Commit-ID: 1wQFBCur0Uy
2017-05-05 10:12:40 +08:00
Boris Zbarsky
cf60d0da2b
Bug 1358596. Restore check for sanity of slot indices on DOM objects that got lost. r=qdot
2017-05-02 01:55:47 -04:00
Jan de Mooij
e4fc7fd7b6
Bug 1360523 - Define number of reserved slots explicitly for each proxy js::Class. r=bz
2017-04-29 14:41:49 +02:00
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
Jon Coppeard
48dadf1863
Bug 1352430 - Add barrier to wrapper cache to clear dying objects that have not yet been finalized r=bz r=sfink
...
* * *
Code review followup
2017-04-26 11:18:39 +01:00
John Dai
a3f1880eb3
Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen. r=bz
...
MozReview-Commit-ID: F1mxKzlru9s
2017-03-08 17:11:48 +08:00
John Dai
e376887ecb
Bug 1309147 - Part 2: Add the name of 'this' value's JSObject* for codegen to generate CEReaction code. r=bz
...
MozReview-Commit-ID: BZwO7I4uh2
2017-03-08 17:09:59 +08:00
Andrew McCreight
d3620de16a
Bug 1338272 - Require that the return value of MaybeSetPendingException is used. r=bz
...
Most of the time, the return value of this method should be checked,
because behavior should depend on whether or not an exception is
thrown. However, if it is called immediately after a throw it doesn't
need to be checked because it will always return true. bz said there
is no public API that lets you assume there is an exception because it
would be "too easy to misuse".
MozReview-Commit-ID: CqyicBbcNjW
2017-02-14 16:17:02 -08:00
Olli Pettay
25436934bc
Bug 1352746 - Rename ProbablyShortLivingObject to ProbablyShortLivingWrapper in webidl, r=qDot
2017-04-11 00:01:29 +03:00
Boris Zbarsky
3b57dc6f3d
Bug 1291397. Work around clang bug that they didn't actually manage to ship a fix for which causes it to give spurious warnings it shouldn't be giving, which are then fatal due to -Werror. r=dholbert
...
MozReview-Commit-ID: GbMEvoxGpH1
2017-03-31 17:09:48 -04:00
Michael Layzell
1e2d4b81aa
Bug 1331434 - Part 5: Mark some Throw calls in /dom/bindings as having custom cleanup, r=baku
...
MozReview-Commit-ID: CooKyfkMlWq
2017-03-07 19:06:48 -05:00
Jon Coppeard
84d08ee0ab
Bug 1338623 - Add a slower but more exact gray marking check for checking correctness r=sfink r=mccr8
2017-03-02 10:22:47 +00:00
David Major
7c3cac106f
Bug 1339275: Define JSPropertySpec values in a way that's easier for Visual Studio to initialize. r=Waldo
...
MozReview-Commit-ID: BMCunTjUapN
2017-02-22 10:11:54 +13:00
Boris Zbarsky
a3268b9091
Bug 1333045. Update Location object properties to current spec. r=qdot
...
Specifically, three changes:
1) valueOf should be non-enumerable.
2) valueOf should be === to Object.prototype.valueOf.
3) There should be no toJSON.
The tests come directly from https://github.com/w3c/web-platform-tests/pull/4623
so not much need to review them.
2017-02-15 00:01:48 -05:00
Boris Zbarsky
df18fafa9f
Bug 1330699 part 13. Implement the spec provision for handling repeated keys in records by updating the existing value. r=qdot
2017-02-15 00:01:41 -05:00
Boris Zbarsky
e2448ade13
Bug 1330699 part 12. Actually change the key type of a record, and its corresponding conversion behavior, depending on what the IDL says. r=qdot
2017-02-15 00:01:39 -05:00
Boris Zbarsky
59661a2319
Bug 1330699 part 11. Add ConvertJSValueTo*String functions that just take a value and hand out a string, without extra complications. r=qdot
2017-02-15 00:01:37 -05:00
Boris Zbarsky
cd5fd78cdc
Bug 1330699 part 10. Rename the MozMap C++ type to "record" and give it a template parameter for the key type. r=qdot
...
Also renames all the test functions to mention "Record" instead of "MozMap".
2017-02-15 00:01:35 -05:00
Boris Zbarsky
ede63f4d95
Bug 1330699 part 9. Rename "MozMap" to "record" in our IDL parser and IDL files. r=qdot
...
The key type is unused so far.
2017-02-15 00:00:17 -05:00
Boris Zbarsky
0c619c6ae7
Bug 1330699 part 7. Change JS to MozMap conversion to more closely follow the record<> spec. r=qdot
...
The spec says to get all the property keys, then check each one for
enumerability before doing the Get(). Our current code, before this change,
asks for all the _enumerable_ keys instead, which is observably different when
proxies are involved.
2017-02-15 00:00:06 -05:00
Boris Zbarsky
8c532b1d75
Bug 1330699 part 3. Fix up some minor issues with default value handling in codegen. r=qdot
2017-02-15 00:00:01 -05:00
Boris Zbarsky
2fcfa342dd
Bug 1330699 part 2. Change the MozMap API and data storage to more what we want record<> to look like. r=qdot,smaug
2017-02-15 00:00:00 -05:00
Andi-Bogdan Postelnicu
09f9ec2e92
Bug 1335000 - return type& for copy assignment operator. r=peterv
...
MozReview-Commit-ID: 7kHt2l30ZP6
2017-02-01 17:54:49 +02:00
Boris Zbarsky
9873498823
Bug 1338417. Make @@iterator properties on DOM prototypes not enumerable, to match IDL spec. r=qdot
2017-02-10 23:06:14 -05:00
Boris Zbarsky
37de3181f3
Bug 1333556. Assert that an ErrorResult passed to a WebIDL callback as an outparam is not already-failed. r=peterv
2017-02-06 17:00:47 -05:00
Boris Zbarsky
b0f35c60e3
Bug 1335368 part 8. Stop using IsCallerChrome in UnwrapArgImpl. r=bholley
2017-02-01 15:43:37 -05:00
Boris Zbarsky
02d8166d3b
Bug 1335368 part 6. Add a SystemCallerGuarantee class that we use for [ChromeOnly, NeedsCallerType] cases. r=bholley
2017-02-01 15:43:36 -05:00
Brian Hackett
6a2580c190
Bug 1324002 - Mark atoms separately in each zone, r=jonco,mccr8,peterv.
2017-01-30 06:31:47 -07:00
Boris Zbarsky
a727589eb5
Bug 1332713 part 4. Make Promise-returning getters return a rejected Promise on exception instead of throwing. r=qdot
2017-01-27 18:53:37 -05:00
Kris Maglione
db3d847dec
Bug 1273251: Part 3 - Allow CallbackObject to contain a null callable. r=peterv
...
MozReview-Commit-ID: FCXVHouhG3I
2016-11-14 21:25:37 -08:00
Boris Zbarsky
9ec469a35a
Bug 1330536 part 5. Correctly mark fallibility/movability/etc in jitinfo for cases that can OOM but are otherwise infallible. r=smaug
2017-01-17 23:52:13 -05:00
Boris Zbarsky
7e0c2ffba8
Bug 1330536 part 4. Pass OOMReporter from bindings in cases that can OOM but are otherwise infallible. r=smaug
2017-01-17 23:52:13 -05:00
Boris Zbarsky
c3dfe1c1f9
Bug 1330698. Support string default values for unions containing USVString. r=qdot
2017-01-13 10:41:12 -05:00
Xidorn Quan
d29e034a84
Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
...
MozReview-Commit-ID: 3uS9s5ZrPFd
2017-01-12 12:23:37 +11:00
Boris Zbarsky
527da426f1
Bug 1326522. Fix the include situation for unions containing primitives by making UnionTypes/UnionConversions header stuff look more like CGHeaders. r=peterv
2017-01-10 14:46:30 -05:00
Olli Pettay
3898f7d882
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
2017-01-03 21:47:55 +02:00
Boris Zbarsky
1cd4befc4f
Bug 1326105 part 5. Move the getting of the incumbent global to the finish-slow-js codepath too, since it's not needed if no one will ever call our callback. r=smaug
2016-12-29 13:19:26 -08:00
Boris Zbarsky
57375fb1bb
Bug 1326105 part 4. Remove the now-unused JSContext argument of the protected CallbackObject constructor. r=smaug
2016-12-29 13:19:26 -08:00
Boris Zbarsky
247018a02e
Bug 1326105 part 2. Rename CallbackObject::HoldJSObjectsIfMoreThanOneOwner to a more generic name and hand it a JSContext to use. r=smaug
2016-12-29 13:19:26 -08:00
Boris Zbarsky
35aae19836
Bug 1323721 part 11. Make isInterface and isGeckoInterface test false for the isPromise() case. r=qdot
2016-12-19 15:38:44 -08:00
Boris Zbarsky
95f47d7bbe
Bug 1323721 part 10. Move Promise arg-type computation for callbacks out of the isGeckoInterface section. r=qdot
2016-12-19 15:38:43 -08:00
Boris Zbarsky
db489ebbe1
Bug 1323721 part 9. Move Promise JS-to-native conversion out of the isGeckoInterface section. r=qdot
2016-12-19 15:38:43 -08:00
Boris Zbarsky
9742a0b914
Bug 1323721 part 8. Remove the codegen hacks for calling Promise methods and constructors now that we don't do that anymore. r=till
2016-12-19 15:38:43 -08:00
Boris Zbarsky
cfdc177760
Bug 1323721 part 5. Move Promise native-to-JS conversion out of the isGeckoInterface section. r=qdot
2016-12-19 15:38:43 -08:00
Boris Zbarsky
13f35d56b8
Bug 1324044. Add fingerprinting resistance in GetSupportedNames in nsMimeTypeArray and nsPluginArray. r=qdot
2016-12-17 00:25:52 -05:00
Boris Zbarsky
77f51bb80d
Bug 1324035 part 1. Fix codegen to pass a CallerType to Length() calls that are generated for indexed getters if the indexed getter itself needs a CallerType. r=qdot
2016-12-17 00:25:52 -05:00
Boris Zbarsky
a3e87a7e34
Bug 1323930. Align the handling of Promise return values from callbacks with the current wording of the WebIDL spec. r=bholley
2016-12-16 14:08:40 -05:00