Commit Graph

753 Commits

Author SHA1 Message Date
Bobby Holley
3cb3d78d8b Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-05 21:34:17 -08:00
Ryan VanderMeulen
ee16665294 Backed out changesets 22770b30545b, 0809370fabdb, 4ef4764c1b55, and bfe768b87464 (bug 697343) due to Gaia UI test bustage.
CLOSED TREE
2013-12-05 16:19:47 -05:00
Boris Zbarsky
d9fddbe1ad Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett 2013-12-02 11:32:22 -05:00
Tom Schuster
b053653c80 Bug 697343 - Remove getElementIfPresent. r=Waldo 2013-12-05 20:07:24 +01:00
Boris Zbarsky
109a5700f1 Bug 945788. Add support for dictionary return values to example codegen and js-implemented codegen. r=smaug 2013-12-05 11:39:50 -05:00
Boris Zbarsky
373e688e4f Bug 942631 part 7. Move INSTANCE_RESERVED_SLOTS into the C++, so it's closer to the things it depends on. r=peterv 2013-12-04 08:02:19 -05:00
Boris Zbarsky
6e8c13b735 Bug 942631 part 6. Fix performance regression in the imagedata getter due to using MaybeWrapValue on a non-DOM object. r=peterv 2013-12-04 08:02:18 -05:00
Boris Zbarsky
5948f54d3e Bug 942631 part 5. Add C++ API for clearing the cached value of a [Cached] property or regetting a [StoreInSlot] property. r=peterv 2013-12-04 08:02:18 -05:00
Boris Zbarsky
3d0aaf3090 Bug 942631 part 3. Preserve the wrapper when caching things in its slots if we're an nsWrapperCache. r=peterv 2013-12-04 08:02:18 -05:00
Boris Zbarsky
daded4df04 Bug 942631 part 2. Make getters for cached properties check and set the reserved slot as needed. r=peterv 2013-12-04 08:02:17 -05:00
Boris Zbarsky
de73ba3093 Bug 938355 part 2. Relax the restriction on [Pure] not mixing with [Throws] and annotate some more things as [Pure]. r=peterv 2013-12-02 09:50:34 -05:00
Boris Zbarsky
02d5a6f4f3 Bug 938355 part 1. Refactor jitinfo to separate out the concepts of side-effects and movability. r=efaust 2013-12-02 09:50:34 -05:00
Ms2ger
8df9a94962 Bug 935362 - Part b: Remove customTrace support; r=khuey 2013-11-28 15:03:15 +01:00
Ms2ger
42c34f4b81 Bug 935362 - Part a: Remove nativeOwnership = 'worker' support; r=khuey 2013-11-28 15:03:15 +01:00
Andrew McCreight
204e61c5d0 Bug 878447 - Don't include nsIDOMGlobalPropertyInitializer.h in generated DOM bindings. r=bz 2013-11-26 14:29:39 -05:00
Boris Zbarsky
e1140c8d87 Bug 938294 part 2. Store information about argument types in jitinfo. r=peterv,efaust 2013-11-25 20:59:39 -05:00
Boris Zbarsky
3da11ce4ff Bug 935855 part 6. Add friend API exposing the max number of fixed slots, and some static asserts that we're not going past it. r=jorendorff 2013-11-25 20:59:38 -05:00
Boris Zbarsky
4c3c790795 Bug 935855 part 4. Codegen a function that updates all the members-in-reserved-slots values for an interface and call it when we finish wrapping an object. r=peterv 2013-11-25 20:59:38 -05:00
Boris Zbarsky
b207193f9f Bug 935855 part 3. Compute the right slot indices to use for members we want to store in slots and save then in the data model the WebIDL parser outputs. r=peterv 2013-11-25 20:59:38 -05:00
Boris Zbarsky
a9759bf016 Bug 935855 part 2. Store isSlot information in jitinfo. r=peterv,efaust 2013-11-25 20:59:37 -05:00
Boris Zbarsky
5d9137eda5 Bug 935855 part 1. Add a [StoreInSlot] WebIDL annotation to bindings. r=peterv 2013-11-25 20:59:34 -05:00
Boris Zbarsky
613a76cab0 Bug 941776. Fix up our includes a bit when a dictionary contains a dictionary from another .webidl file. r=smaug 2013-11-25 20:57:25 -05:00
Jan-Ivar Bruaroey
758fc8ce90 Bug 933447 - Use new weakRef to JSImpl feature. r=smaug, r=mccr8, r=abr 2013-11-08 19:45:59 -05:00
Boris Zbarsky
7ab66366d5 Bug 941437 part 1. Remove the unused cx argument from dom::UnwrapObject. r=smaug 2013-11-21 07:51:15 -05:00
Olli Pettay
88e59b00f1 Bug 928535, Support WeakRef's from c++ to JSImplemented webidl objects, r=mccr8
--HG--
extra : rebase_source : 05736af7ab2d11b10e7e6e917b8647a58e2c2108
2013-11-20 23:42:16 +02:00
Peter Van der Beken
f592ecfe0e Bug 938544 - Add support for a Chrome-only constructor in WebIDL. r=bz.
--HG--
extra : rebase_source : e36fef0090d57947ceae6c2fc11bea8b115423e4
2013-08-12 16:45:33 +02:00
Nathan Froyd
7a55485352 Bug 940573 - make the global's ProtoAndIfaceArray an actual object; r=bz 2013-11-19 14:28:09 -05:00
Gregory Szorc
f8426fa8ea Backed out 4 changesets (c0e8f2c0465f::608c663f691f) (bug 928195) for landing prematurely
--HG--
extra : rebase_source : fa42534ef50a0373738349f17b2ca57510bdd6ac
2013-11-19 10:16:51 -08:00
Gregory Szorc
0c46a02708 Bug 928195 - Part 6: Rewrite WebIDL build system integration
WebIDL build system integration has been rewritten from the ground up.
Changes:

* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
  favor of mozwebidl.py.

* Static .webidl files are now processed directly in their original location
  and aren't copied to the object directory.

* Generated events <stem>.cpp files are now compiled into the unified
  sources. Previously, only the <stem>Binding.cpp files were compiled
  into unified sources.

* Exported .h files are now generated directly into their final location.
  Previously, they were generated into the local directory then
  installed in their final location.

* The list of globalgen-generated files now lives in Python and isn't
  duplicated in 3 places.

* The make dependencies are much simpler as a result of using a single
  command to perform all code generation. The auto-generated .pp file from
  code generation sets up all dependencies necessary to reinvoke code
  generation and Python takes care of dependency management.

--HG--
extra : rebase_source : bde37d7aab3bd224ca8611f3ba4aaf6311e2faab
2013-11-14 09:52:49 -08:00
Gregory Szorc
a0e610f0e5 Bug 928195 - Part 1: Remove trailing whitespace from Codegen.py; r=bz
--HG--
extra : rebase_source : 09a7ed7933ef3c6efac617d3300b709ac2b3f26e
2013-11-14 14:31:58 -08:00
Kyle Huey
0d9571cd68 Bug 940071: Free the proto and iface cache for generated globals. r=bz 2013-11-19 14:05:42 +08:00
Boris Zbarsky
abad3a19e5 Bug 938246. Don't try to tell the JIT that our booleans are 32-bit integers, when they're actually booleans. r=efaust 2013-11-17 00:10:19 -05:00
Boris Zbarsky
0c9f30d0e5 Bug 936634. Drop support for [TreatUndefinedAs] in WebIDL. r=peterv 2013-11-17 00:10:18 -05:00
Ms2ger
786aa40195 No bug - Fix some style issues in DOM code. 2013-11-11 09:04:41 +01:00
Kyle Huey
a754cd2b5a Bug 928312: Convert the worker global object and all remaining EventTargets to new DOM bindings. r=bent,peterv,smaug 2013-11-05 22:16:26 +08:00
Kyle Huey
f8c3be104e Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-11-05 22:16:24 +08:00
Andrew McCreight
535833ef5d Bug 933966 - Fix reindentation in CGWrapper. r=bz 2013-11-01 16:48:35 -07:00
Reuben Morais
50740465ab Bug 929491 - Include dictionary and object types in union construction error messages. r=bz 2013-11-02 16:18:35 -02:00
Peter Van der Beken
3f0768ba00 Bug 932320 - Use JS_DefineProperty for replaceable properties. r=bz.
--HG--
extra : rebase_source : 89afe3e605ca66914912e1718e1558c8e266be32
2013-10-08 17:51:03 +02:00
Peter Van der Beken
a348044a35 Bug 932315 - Throw a different error when this-unwrapping fails for security reasons. r=bz.
--HG--
extra : rebase_source : a92639be64d8d591ea4c97955bc04e6047e0d027
2013-10-16 18:11:25 +02:00
Boris Zbarsky
792f1ad7f6 Bug 933087. Make sure we don't violate stack discipline for Rooted, even when playing Maybe<Rooted> games. r=khuey 2013-10-31 22:07:11 -04:00
Boris Zbarsky
6699bfa524 Bug 932998. Don't try to codegen code that keeps alive objects with 'owned' nativeOwnership, since we have no way to do that. r=smaug 2013-10-31 22:07:11 -04:00
Boris Zbarsky
dd5c49ee18 Bug 925737. Allow copy-constructing owning unions with safe enough members. r=peterv 2013-10-31 22:07:10 -04:00
Boris Zbarsky
7690d94087 Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger 2013-10-11 12:28:24 -04:00
Boris Zbarsky
b4b08a6e79 Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
The major changes are as follows:

1) The new algorithm no longer adjusts "argcount" based on the
   interaction of trailing undefined and [TreatUndefinedAs=Missing]
   arguments.  We never implemented this; just asserted that we didn't
   have to deal with this situation.

2) If the distinguishing argument is undefined and there is an
   overload that has an optional argument at the distinguishing
   argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
c0b03f21a5 Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
70192ce8ff Bug 924402. When an object that can only be returned from [NewObject] methods is used in a dictionary, just skip generating a ToObject for that dictionary. r=peterv 2013-10-28 19:34:08 -04:00
Boris Zbarsky
77ea872b8d Bug 929512. Fix null default values for non-nullable unions containing a nullable type. r=dzbarsky, r=smaug pending 2013-10-28 00:33:15 -04:00
Peter Van der Beken
69e7c5ae55 Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Tom Schuster
ce701cf26f Bug 930782 - Handlify JS_WrapValue. r=terrence 2013-10-26 18:19:05 +02:00