Commit Graph

1262 Commits

Author SHA1 Message Date
Nathan Froyd
ebdc9f3a27 Bug 952777 - part 5 - move JSJitInfo::argTypes to a separate JSTypedMethodJitInfo subclass; r=efaust,bz 2014-01-07 16:52:40 -05:00
Nathan Froyd
0944831f4e Bug 952777 - part 4 - move JSParallelNative into the union; r=efaust,bz 2014-01-07 14:54:07 -05:00
Nathan Froyd
97e3a3ce74 Bug 952777 - part 3 - use bitfields for integer fields in JSJitInfo; r=efaust,bz 2014-01-07 13:55:06 -05:00
Nathan Froyd
4531e01196 Bug 952777 - part 1 - reorder JSJitInfo slots to pack better; r=efaust,bz 2013-12-21 15:33:12 -05:00
Rick Eyre
ccd2c4f61e Bug 882299 - Implement VTTCue::Line r=smaug,rillian,bz 2014-01-15 08:04:00 -08:00
Boris Zbarsky
373ff737f8 Bug 851891. Make stringifier attributes fail to codegen. r=khuey 2014-01-14 21:46:44 -05:00
Boris Zbarsky
a270796c71 Bug 959677. Fail codegen if a writable attribute is flagged PutForwards or Replaceable. r=smaug 2014-01-14 21:46:43 -05:00
Nathan Froyd
d268d63999 Bug 957730 - set JS values more directly in bindings code; r=bz 2014-01-08 14:35:39 -05:00
Nathan Froyd
8cd15219f2 Bug 958262 - reduce space required by JSPropertySpec; r=till,bz,Waldo 2014-01-10 12:11:31 -05:00
Boris Zbarsky
f3a33d50c3 Bug 957929. Pass undefined, not null, as the this value to callbacks if no other value is provided. r=peterv 2014-01-13 15:08:57 -05:00
Boris Zbarsky
d57a0a8d8a Bug 952365. Add a TreatNonObjectAsNull annotation for WebIDL callback functions and use it for event handlers, since web sites depend on assigning non-callable objects to them in some cases. r=peterv 2014-01-13 15:08:56 -05:00
Nikhil Marathe
51c4c930b8 Bug 957950 - Refactor tempRoot scope in WebIDL codegen. r=bz 2014-01-09 08:58:21 -08:00
Nikhil Marathe
af5c77dbdc Bug 957429 - Method parameters that are callbacks obey [TreatNonCallableAsNull] semantics. r=bz 2014-01-08 22:12:27 -08:00
Ryan VanderMeulen
0e9fcd4bf3 Backed out changesets d8a6bde76293 and 0b28eaf5bde9 (bug 956806) for suspicion of making OSX 10.6 debug mochitest-bc even more orange prone than usual. 2014-01-08 15:34:24 -05:00
Boris Zbarsky
6e037fd3e4 Bug 956806 part 2. Share generic getters/setters/methods across all bindings. r=peterv 2014-01-08 10:29:15 -05:00
Boris Zbarsky
75e42eaf13 Bug 956806 part 1. Output a list of interface names in PrototypeList.cpp. r=peterv 2014-01-08 10:29:15 -05:00
Boris Zbarsky
2cdaf74cee Bug 939581 part 3. Mark DOM calls as movable as needed and allow them to be CSE'd. r=efaust 2014-01-03 16:44:45 -05:00
Ehsan Akhgari
f75815e241 Bug 927728 - Part 2: Stop using PRUnichar in our code generators; r=roc,bzbarsky 2014-01-04 10:02:43 -05:00
Masatoshi Kimura
029fc04f34 Bug 876238 - Convert DeviceAcceleration and DeviceRotationRate to WebIDL bindings. r=smaug 2014-01-02 07:52:47 +09:00
Boris Zbarsky
de1e3a1b13 Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky 2013-12-20 15:33:57 -05:00
Wes Kocher
66930abafb Backed out changeset 6532bf066bb4 (bug 882299) 2013-12-20 18:33:04 -08:00
Wes Kocher
5561d757eb Backed out changeset f84ac36ce832 (bug 952062) for osx debug m1 orange 2013-12-20 14:22:55 -08:00
Boris Zbarsky
2354bbdc37 Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky 2013-12-20 15:33:57 -05:00
Boris Zbarsky
5a837134c4 Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky 2013-12-20 14:28:18 -05:00
Rick Eyre
f9b24c30a4 Bug 882299 - Implement VTTCue::Line. r=smaug, r=rillian 2013-12-16 14:35:01 -05:00
David Zbarsky
ee6eced054 Bug 928953 - WebIDL headers should include the file for enums. r=bz 2013-12-20 11:37:48 -05:00
Boris Zbarsky
8fcad42cd4 Bug 952073. Fix codegen to actually work correctly for the case of a nullable union dictionary member with no default value. r=dzbarsky
This fix just makes us take the normal Optional codepath for this case, since there is no weirdness here.
2013-12-19 23:30:38 -05:00
Boris Zbarsky
f12652197b Bug 951875. Actually apply binarynames to JS-implemented codegen. r=mccr8
Actually, this applies them to all callbacks, but most callback interfaces don't have entries in Bindings.conf.

This removes the extra entry for TestJSImplInterface in Bindings.conf that was covering up this bug.
2013-12-19 00:45:13 -05:00
Boris Zbarsky
2f392722b3 Bug 949501. Make nullable unions that are isMember stop claiming to have a holder. r=dzbarsky 2013-12-18 11:20:43 -05:00
Andrew McCreight
fc3edec4ed Bug 937818, part 0 - Root newly created objects in Bind across ADDREF. r=bz 2013-12-17 19:29:56 -08:00
Boris Zbarsky
2495e06268 Bug 950991. Root on-stack JSObject* and JS::Value return values. r=smaug 2013-12-17 17:09:16 -05:00
Boris Zbarsky
4ad5fed806 Bug 949940. Only enter the uncheckedObj compartment in a crossOriginGetter/Setter/Method around the UnwrapArg call that needs us to be in that compartment. r=peterv 2013-12-17 17:09:05 -05:00
Wes Kocher
4e742eeab0 Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE 2013-12-16 18:27:43 -08:00
Sean Stangl
4a839043a9 Bug 949183 - Fix jsid static constructor explosion. r=Waldo 2013-12-16 14:40:05 -08:00
Boris Zbarsky
970991cef9 Bug 950728. Nicer error reporting when a callback argument is not wrappercached. r=smaug 2013-12-16 13:06:36 -05:00
Boris Zbarsky
376a4942f1 Bug 950657. Give WebIDL callbacks an operator== that does the right thing. r=smaug 2013-12-16 13:06:35 -05:00
Boris Zbarsky
9eb84a99c6 Bug 949682 part 1. Add a [Frozen] annotation on WebIDL attributes that have sequence types. r=peterv 2013-12-16 13:06:35 -05:00
Boris Zbarsky
b7db9e9d61 Bug 949078. Provide information about which return value we're talking about when throwing a conversion failure exception for the return value of a call into a WebIDL callback. r=peterv 2013-12-16 13:06:35 -05:00
Boris Zbarsky
9775758e17 Bug 947351. [Constant] things don't need a way to clear a cached value, since they're not supposed to change. r=peterv 2013-12-06 13:49:44 -05:00
Boris Zbarsky
bddd7b8fba Bug 946909. For a [Cached] or [StoreInSlot] attribute with a setter, clear the cache on set. r=peterv 2013-12-05 16:31:04 -05:00
Boris Zbarsky
85b42d342e Bug 946898. Make sure to not accidentally store COWs in the slot for [Cached] properties. r=peterv 2013-12-05 16:07:33 -05:00
Gregory Szorc
c75ffc75a9 Bug 928195 - Part 4: Rewrite WebIDL build system integration; r=bz, r=glandium
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.
2013-12-12 16:26:38 +09:00
Boris Zbarsky
3c08532948 Bug 949271. Fix callback and JS-implemented codegen for sequence-of-union and variadic-union arguments. r=smaug 2013-12-12 16:11:56 -05:00
Boris Zbarsky
801b948c1c Bug 949264 part 3. Use aRetVal for the outparam return value for CGNativeMember. r=smaug 2013-12-12 16:11:55 -05:00
Boris Zbarsky
c101ec73dc Bug 949264 part 2. Support union members in generated events. r=smaug 2013-12-12 16:11:55 -05:00
Boris Zbarsky
d6bc8b222e Bug 949264 part 1. Share more codegen between events and CGNativeMember. r=smaug 2013-12-12 16:11:55 -05:00
Steve Fink
10bf90b8aa Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz 2013-12-11 17:51:58 -08:00
Bobby Holley
3d665e01ac 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-11 17:51:58 -08:00
Bobby Holley
c3a450ec6c 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-11 17:51:57 -08:00
Boris Zbarsky
b39794d129 Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett 2013-12-02 11:32:22 -05:00