Commit Graph

957 Commits

Author SHA1 Message Date
Boris Zbarsky
b9dd434dd6 Bug 917958 part 1. Stop using JSObject* to represent WebIDL callback functions in workers. r=smaug 2013-09-20 01:07:03 -04:00
Boris Zbarsky
f5e690a0d5 Bug 917539. Move the JSCompartment argument to the end of the list for JS-implemented WebIDL, so C++ callers can call into it sanely too. r=peterv 2013-09-20 01:07:03 -04:00
Jon Coppeard
1d126a079a Bug 917295 - GC: Handlify public date APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Vendelin Ruzicka
87f29eed37 Bug 917410: Add specializations of Optional for 'any' and 'object' types for callbacks in workers to bindings code. r=bz 2013-09-18 06:47:08 +02:00
Boris Zbarsky
7113aaeec6 Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky 2013-09-17 11:16:02 -04:00
Randell Jesup
7ca83ce649 Bug 882145: reland changesets bc4ee7cbd7bd and cf373e408a6b r=bz 2013-09-16 02:34:57 -04:00
Ryan VanderMeulen
b7b02c5df1 Backed out changesets bc4ee7cbd7bd and cf373e408a6b (bug 882145) for causing bug 916609. r=jsmith 2013-09-15 18:19:42 -04:00
Jan-Ivar Bruaroey
9d73fee859 Bug 882145: gUM constraints converted to webidl + gUMDevices() takes constraints. r=bz r=jesup 2013-09-14 00:48:39 -04:00
Boris Zbarsky
b9856ff043 Bug 915368. Give dictionaries copy constructors and assignment operators when it's safe. r=khuey 2013-09-13 13:21:59 -04:00
Boris Zbarsky
f8e0fbd4e5 Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting.  It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing.  TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing).  Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.

The wrapping code for dictionary arguments to constructors is fixed to
actually work.  This required adding GetAs* methods to union return
values that return references to the internal data.

The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Boris Zbarsky
09c18e1f44 Bug 915100. Make sure to actually include the headers we need in UnionTypes.h. r=khuey 2013-09-11 23:19:07 -04:00
David Zbarsky
76bef13c16 Bug 856373 - WebIDL-ify Gamepad events r=smaug 2013-09-11 18:35:51 -04:00
Dan Gohman
94cd9b8531 Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Olli Pettay
3bfb72e331 Bug 900904 - Support webidl-only generated events, r=khuey,gps 2013-09-10 21:27:39 +03:00
Andrew McCreight
19999134d8 Bug 911333 - Remove customTrace from bindings codegen. r=bz 2013-09-10 08:29:44 -07:00
Ms2ger
544510e93b Merge last PGO-green inbound changeset to m-c. 2013-09-10 10:13:12 +02:00
Ms2ger
16b2a22edb Bug 913923 - Part c: Stop including BindingUtils.h in UnionTypes.h; r=dzbarsky 2013-09-10 09:03:38 +02:00
Ms2ger
869341c41c Bug 913923 - Part b: Move OwningNonNull into its own header; r=dzbarsky 2013-09-10 09:03:37 +02:00
Ms2ger
590fb58625 Bug 913923 - Part a: Move UnionMember into its own header; r=dzbarsky 2013-09-10 09:03:37 +02:00
Boris Zbarsky
d4b46684c9 Bug 914334. Change codegen to reflect EventListener as a WebIDL callback on workers. r=khuey 2013-09-09 22:10:45 -04:00
Boris Zbarsky
0d69c103b0 Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey 2013-09-09 22:10:45 -04:00
Boris Zbarsky
ffe92d0827 Bug 912948 part 1. Add support for [Clamp] and [EnforceRange] on dictionary members. r=khuey 2013-09-09 22:10:44 -04:00
Kyle Huey
10d56b428a Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz 2013-09-08 20:29:21 -07:00
David Zbarsky
5a890e9254 Bug 767926 - Implement unions as member types of sequences or dictionaries for WebIDL r=bz 2013-09-09 14:39:17 -04:00
Peter Van der Beken
a841def730 Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object - bustage fix on a CLOSED TREE. 2013-09-06 15:27:25 +02:00
Peter Van der Beken
d92c45e00d Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object. r=bz. 2013-09-03 14:01:53 +02:00
Boris Zbarsky
68b0fed6e2 Bug 910795 part 2. Use the new Rebind() setup to avoid creating string copies for variadic string arguments. r=smaug 2013-09-04 16:43:12 -04:00
Boris Zbarsky
104dc42976 Bug 910220 part 3. Always generate a defineProperty hook for DOM proxies. r=peterv 2013-08-31 00:21:31 -04:00
Boris Zbarsky
4053c72b1d Bug 910220 part 2. Use the new API in codegen to only throw when needed. r=peterv 2013-08-31 00:21:28 -04:00
David Zbarsky
0a0c767546 Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky 2013-08-29 23:29:38 -04:00
Boris Zbarsky
0801664304 Bug 909863. Add support for the [SameObject] extended attribute in WebIDL. r=khuey 2013-08-29 00:30:05 -04:00
Boris Zbarsky
a902b89373 Bug 868799 part 3. Use RootedTypedArray in codegen. r=smaug 2013-08-29 00:30:05 -04:00
Boris Zbarsky
8d6ff8a409 Bug 909639 part 4. Make previously-unconditional headers conditional. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
94d2395119 Bug 909639 part 3. Move our various conditional headers to the new bindingHeaders setup. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
460cd51b51 Bug 909639 part 2. Refactor our computation of whether we need the nsDOMQS header to make it easier to do similar other things. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
99be7fb552 Bug 909639 part 1. Refactor callForEachType to return a generator so we can use it more easily, and rename it to getAllTypes. r=smaug 2013-08-28 00:14:56 -04:00
Jeff Walden
895a3c1601 Bug 908898 - Move the JS_PS{G,GS,_END} macros from jsobj.h into jsapi.h for general use. r=jorendorff 2013-08-21 15:33:11 -07:00
Nathan Froyd
b734d219e3 Bug 909328 - make NativePropertyHook pointers resolvable at compile-time, rather than run-time; r=bz 2013-08-26 12:35:28 -04:00
Boris Zbarsky
d36d54c1a4 Bug 908837. Include a bit less stuff in binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Boris Zbarsky
05b8d5d470 Bug 908576 part 7. Move the various DOMProxyHandler classes into the binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Boris Zbarsky
a5778a8cb3 Bug 908576 part 6. Expose just a NativePropertyHooks pointer, not the object itself, so we can forward-declare it in bindings headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
d5f55942ec Bug 908576 part 5. Make GetProtoObject and GetConstructorObject not inline so they don't force us to include PrototypeList.h in all binding headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
dad89990b9 Bug 908576 part 4. Move all the PrototypeTraits bits into PrototypeList.h so they don't force us to include that header in all binding headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
ed572afc24 Bug 908576 part 3. Get rid of PrototypeIDMap structs. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
631cbb6865 Bug 908576 part 2. Move DOMClass/DOMJSClass declarations out of binding headers. r=smaug 2013-08-23 22:42:40 -04:00
Boris Zbarsky
6f298899e6 Bug 908576 part 1. Remove unused Is() method from proxy bindings. r=smaug 2013-08-23 22:42:40 -04:00
David Zbarsky
ca6fb7c795 Bug 905542: IsNull/SetNull functions for nullable unions should have bodyInHeader=True to prevent compiler warnings r=Ms2ger 2013-08-23 13:56:20 -04:00
Kyle Huey
1223cd0b94 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00
Kyle Huey
1157b590a9 Back out Bug 887533 for test failures. 2013-08-22 23:40:32 -07:00
Kyle Huey
2ed42c4d19 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00