Commit Graph

758 Commits

Author SHA1 Message Date
Bobby Holley
0b02f5ecfa Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Bobby Holley
6475f72863 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-06 12:01:42 -08:00
Carsten "Tomcat" Book
0139af29f2 Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
22b9fc1982 Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE 2013-12-06 08:41:59 +01:00
Bobby Holley
8ca6ed8d97 Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-05 21:34:17 -08:00
Bobby Holley
8ed094280d 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
33d0976fb1 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
0c1c9fe5f9 Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett 2013-12-02 11:32:22 -05:00
Tom Schuster
24a3fda1a8 Bug 697343 - Remove getElementIfPresent. r=Waldo 2013-12-05 20:07:24 +01:00
Boris Zbarsky
b291d17548 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
ff32aca614 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
7a906fe78a 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
bc7799238c 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
a8888521b9 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
b5bcbf7665 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
05c9acd84a 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
2bc7ce912e 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
b0e23ee2d0 Bug 935362 - Part b: Remove customTrace support; r=khuey 2013-11-28 15:03:15 +01:00
Ms2ger
d217ed9350 Bug 935362 - Part a: Remove nativeOwnership = 'worker' support; r=khuey 2013-11-28 15:03:15 +01:00
Andrew McCreight
c01dc2cf70 Bug 878447 - Don't include nsIDOMGlobalPropertyInitializer.h in generated DOM bindings. r=bz 2013-11-26 14:29:39 -05:00
Boris Zbarsky
811841efee Bug 938294 part 2. Store information about argument types in jitinfo. r=peterv,efaust 2013-11-25 20:59:39 -05:00
Boris Zbarsky
100e122d32 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
0530bd2b6f 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
32434c276b 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
83e5da85cc Bug 935855 part 2. Store isSlot information in jitinfo. r=peterv,efaust 2013-11-25 20:59:37 -05:00
Boris Zbarsky
a68924fda0 Bug 935855 part 1. Add a [StoreInSlot] WebIDL annotation to bindings. r=peterv 2013-11-25 20:59:34 -05:00
Boris Zbarsky
3f7b46625d 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
8bdf89552d Bug 933447 - Use new weakRef to JSImpl feature. r=smaug, r=mccr8, r=abr 2013-11-08 19:45:59 -05:00
Boris Zbarsky
62cf6930a1 Bug 941437 part 1. Remove the unused cx argument from dom::UnwrapObject. r=smaug 2013-11-21 07:51:15 -05:00
Olli Pettay
f9671a72bc 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
fb3f5ea859 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
bf56be08aa Bug 940573 - make the global's ProtoAndIfaceArray an actual object; r=bz 2013-11-19 14:28:09 -05:00
Gregory Szorc
fa9bd3e7b1 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
cd28c58eaa 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
577455026d 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
7b4374f293 Bug 940071: Free the proto and iface cache for generated globals. r=bz 2013-11-19 14:05:42 +08:00
Boris Zbarsky
c6ec440a91 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
6d1df233c8 Bug 936634. Drop support for [TreatUndefinedAs] in WebIDL. r=peterv 2013-11-17 00:10:18 -05:00
Ms2ger
5e1bd894df No bug - Fix some style issues in DOM code. 2013-11-11 09:04:41 +01:00
Kyle Huey
2789485d96 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
d00c5443e9 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-11-05 22:16:24 +08:00
Andrew McCreight
b1f5cbede5 Bug 933966 - Fix reindentation in CGWrapper. r=bz 2013-11-01 16:48:35 -07:00
Reuben Morais
5d834432ee 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
2016f04930 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
aa80a8b215 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
0c16b1d1ed 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
d5214f1e59 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
e621b0acbc Bug 925737. Allow copy-constructing owning unions with safe enough members. r=peterv 2013-10-31 22:07:10 -04:00
Boris Zbarsky
4eb56cc9c3 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
156b3eac57 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