Alexandre Lissy
e4fd2dab03
Bug 1286530 - Clean AvailableIn, CheckAnyPermissions and CheckAllPermissions from WebIDL r=bz,fabrice
...
MozReview-Commit-ID: 6EQfBM09xUE
2016-04-21 15:48:59 +02:00
Andrew McCreight
674b48dead
Bug 1283636 - Use CallbackPreserveColor() less. r=bz
...
Some places call CallbackPreserveColor() because they know the object
must have already been marked black. This patch replaces those calls
with a new function CallbackKnownNotGray() which documents and
dynamically checks this assumption.
2016-07-13 13:28:00 +02:00
Boris Zbarsky
32ec08aef5
Bug 1275315 part 2. Use the new Realm getters in binding code. r=peterv
2016-07-09 00:19:52 -04:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Boris Zbarsky
643a556c0a
Bug 1257037 part 14. Remove the now-unused skipGen bits from binding code. r=khuey
2016-07-08 00:37:55 -04:00
Boris Zbarsky
7e8806a0d8
Bug 1257037 part 13. Get rid of the concept of worker vs non-worker descriptors. r=khuey
2016-07-08 00:37:55 -04:00
Boris Zbarsky
71a0ebf762
Bug 1257037 part 12. Simplify CGRegisterWorkerBindings now that there are no more worker descriptors. r=khuey
2016-07-08 00:37:55 -04:00
Boris Zbarsky
86a182786b
Bug 1257037 part 11. Get rid of getRelevantProviders, since all the places that use it have a Configuration. r=khuey
2016-07-08 00:37:55 -04:00
Boris Zbarsky
19e6646e8e
Bug 1257037 part 10. Store only one descriptor per interface name in the configuration. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
81e9f256e6
Bug 1257037 part 9. Get rid of the concept of mainthread callbacks or worker callbacks; just codegen all the callbacks. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
78fc12cb78
Bug 1257037 part 8. Remove Configuration.getDescriptorProvider. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
62040a9385
Bug 1257037 part 6. Simplify the toBindingNamespace function now that there are no worker bindings. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
1c59e1473a
Bug 1257037 part 5. Remove remaining checks for worker descriptors from Codegen.py. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
fc334aa87d
Bug 1257037 part 4. Remove the worker-only XXX comments from CGWrapGlobalMethod, since we never have worker descriptors for globals anyway. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
98f988cb43
Bug 1257037 part 3. Remove filteredSignatures, since it's a no-op unless we're dealing with a worker descriptor. r=khuey
2016-07-08 00:37:54 -04:00
Boris Zbarsky
52580f20e9
Bug 1257037 part 2. Remove isMaybeExposedIn, since it always returns true now. r=khuey
2016-07-08 00:37:53 -04:00
Boris Zbarsky
f71aa00dc9
Bug 1257037 part 1. Remove the worker-descriptor-related complexity in getControllingCondition, since workerDesc.workers never tests true anymore. r=khuey
2016-07-08 00:37:53 -04:00
Boris Zbarsky
2a134ccdee
Bug 1281071. Be a bit more careful with our cross-origin-accessible stuff on windows. r=bholley
2016-06-23 19:39:53 -04:00
Boris Zbarsky
2d77606870
Bug 1277401 part 5. Change dictionary codegen to output Func stuff as needed. r=peterv
2016-06-07 10:34:54 -04:00
Boris Zbarsky
d5a371dc1f
Bug 1277401 part 4. Fix up includes for dictionary members with [Func] on them. r=peterv
2016-06-07 10:34:54 -04:00
Boris Zbarsky
34dfba2335
Bug 1277401 part 2. Fix up includes for dictionaries that have [ChromeOnly] members. r=peterv
2016-06-07 10:34:54 -04:00
Boris Zbarsky
a20820f267
Bug 1277401 part 1. Factor out the condition list generation for pref/func so we can reuse it for dictionary members. r=peterv
2016-06-07 10:34:53 -04:00
Andrea Marchesini
53b92f42e3
Bug 989619 - patch 1 - Codegen should allow static methods with a reserved C++ keywords as the name, r=peterv
2016-06-04 09:31:44 +02:00
Cameron McCormack
083ce40a34
Bug 1141916 - Part 2: Support [ChromeOnly] on dictionary members. r=peterv
2016-06-02 12:14:24 -04:00
Boris Zbarsky
5b01d01a44
Bug 1270601 part 3. Add a way to annotate and IDL namespace as needing a new plain object as its prototype, because using Object.prototype as the prototype of 'console' is not web-compatible. r=peterv
2016-06-02 10:34:39 -04:00
Boris Zbarsky
ed65a86f35
Bug 1270601 part 2. Add codegen support for IDL namespaces. r=peterv
2016-06-02 10:34:39 -04:00
Olli Pettay
bdee7ece4a
Bug 1276424 - EventListenerWasAdded/Remove doesn't work in JS implemented webidl because of missing 'override', r=bz
2016-05-31 23:05:55 +03:00
Boris Zbarsky
58cee00709
Bug 1273661 part 3. Add the codegen bits and Trace implementation to allow Web IDL callbacks to not have to HoldJSObjects until the bindings have determined that someone is actually holding on to the callback object. r=smaug,terrence
2016-05-18 12:23:35 -04:00
Boris Zbarsky
64b3449db5
Backed out changesets bdb5b50fd858, 74dbcb56456d, 8f319062be85, 9806d7a88802, c08f417d85fd (bug 1273661) for build bustage and CLOSED TREE.
2016-05-19 00:26:24 -04:00
Boris Zbarsky
934700b56c
Bug 1273661 followup. We need different RootedCallback destructors for the OwningNonNull and RefPtr cases, unfortuntately. r=CLOSED TREE
2016-05-18 23:38:23 -04:00
Boris Zbarsky
634f848b9d
Bug 1273661 part 3. Add the codegen bits and Trace implementation to allow Web IDL callbacks to not have to HoldJSObjects until the bindings have determined that someone is actually holding on to the callback object. r=smaug,terrence
2016-05-18 12:23:35 -04:00
Jonathan Watt
ddccefa965
Bug 177957, part 3 - Make the WebIDL code generator support the [SecureContext] extended attribute. r=bz
...
MozReview-Commit-ID: 3O3V4MTgLuR
2016-05-16 10:04:38 +01:00
Xidorn Quan
9daa03b9d8
Bug 1268798 part 3 - Add LenientSetter extended attribute. r=khuey
...
MozReview-Commit-ID: 61wybyS36KE
2016-05-12 10:28:56 +10:00
Peter Van der Beken
687ebdd0ea
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
2016-05-09 17:08:31 +02:00
Boris Zbarsky
79a0215206
Bug 1270349 part 5. Use LegacyUnenumerableNamedProperties instead of passing flags to GetSupportedNames to determine whether named props on DOM proxies should be reflected in ownPropertyKeys. r=peterv
2016-05-09 22:25:40 -04:00
Boris Zbarsky
15e0a33e25
Bug 1270349 part 4. Use LegacyUnenumerableNamedProperties instead of NameIsEnumerable() calls to determine whether named props on DOM proxies should be enumerable. r=peterv
2016-05-09 22:25:40 -04:00
Carsten "Tomcat" Book
08a1dea94e
Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures
2016-05-09 13:40:01 +02:00
Peter Van der Beken
182c8eab61
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
2016-03-09 15:48:12 +01:00
Sebastian Hengst
f12bff1978
Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout
2016-05-06 18:11:03 +02:00
Peter Van der Beken
dd543ce6be
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
2016-03-09 15:48:12 +01:00
Boris Zbarsky
51a29ce9ae
Bug 1269400. Provide better error messages for the cases when a CallSetup fails and we hence fail to execute a Web IDL callback. r=bholley
2016-05-04 13:59:42 -04:00
Jeff Walden
73ae0a51ca
Bug 888969 - Permit a cyclic [[Prototype]] chain to be created through a Location object. r=bz, r=efaust
2016-04-29 19:59:40 -07:00
Boris Zbarsky
15232b8746
Bug 1265770. Don't try to get a prototype for the interface object for an interface that's [NoInterfaceObject], since it's just unnecessary work that can't even be done at all in some cases (e.g. when the parent interface is also [NoInterfaceObject]). r=peterv
2016-04-20 18:04:56 -04:00
Nicholas Nethercote
a35143c546
Bug 1261723 (part 2) - Separate class ops from js::Class. code=njn,h4writer. r=efaust,bz.
...
js::Class op are often all null. And when they're not all null, they're often
duplicated among classes. By pulling them out into their own struct, and using a
(possibly null) pointer in js::Class, we can save 114 KiB per process on
64-bit, and half that on 32-bit.
* * *
imported patch separate-ClassOps-2
2016-04-01 11:00:01 +11:00
Peter Van der Beken
b5fc42d77a
Bug 1245650 - remove JavaScript-navigator-property category support. r=bz.
...
Generate normal properties with getters for things marked as NavigatorProperty,
instead of defining these from a resolve hook.
2016-02-05 20:20:08 +01:00
Nicholas Nethercote
ea5ce3931c
Bug 1261720 (part 2) - Move ClassExtension::isWrappedNative into js::Class::flags. r=jorendorff.
...
This saves 10 KiB of static data on 64-bit, and half that on 32-bit.
2016-04-04 08:47:15 +10:00
Nicholas Nethercote
a34f03aa34
Bug 1261720 (part 1) - Separate js::ClassExtension from js::Class. r=jorendorff,bz.
...
js::ClassExtension is often all null. When it's not all null, it's often
duplicated among classes. By pulling it out into its own struct, and using a
(possibly null) pointer in js::Class, we can save 17 KiB per process on
64-bit, and half that on 32-bit.
2016-04-04 08:45:07 +10:00
Boris Zbarsky
6fdfdc2f01
Bug 1246153 part 3. Use the new clean global setup for doing from-JSON creation of dictionaries. r=bholley
2016-04-04 12:29:18 -04:00
Boris Zbarsky
6eb555a661
Bug 1246153 part 1. Restrict initialization of dictionaries from JSON to dictionaries that can actually be represented in JSON. r=bholley
2016-04-04 12:16:13 -04:00
Nicholas Nethercote
de1ca2f86c
Bug 1260653 - Shrink NativeProperties. r=bz.
...
This patch makes NativeProperties variable-length and reduces static data by
110,336 bytes on 64-bit, and half that on 32-bit.
MozReview-Commit-ID: 2etZ5AnEhgO
2016-03-31 09:57:20 +11:00