Boris Zbarsky
2b85439c92
Bug 778150 part 1. Remove the vestigial ability to specify infallibility stuff in the conf file. r=peterv
2012-09-05 09:21:33 -04:00
Eric Faust
497dfe5e4e
Bug 781387 - Codegen infallibility data for Paris bindings methods. (r=peterv)
2012-09-04 14:46:38 -04:00
Boris Zbarsky
a9228f3218
Bug 786105. Setting inline style properties to null should remove them, just like setting them to empty string does. r=peterv
2012-08-31 20:59:46 -04:00
Boris Zbarsky
01c109f2d3
Bug 774970. Add the ability to generate code for dealing with an XPConnect 'this' object in some cases. r=peterv
2012-08-28 13:10:09 -04:00
Boris Zbarsky
926bf57664
Bug 767930. Add support for typed array return values (as just JSObject*) in WebIDL bindings. r=peterv
2012-08-28 13:10:09 -04:00
Peter Van der Beken
82dbb096f7
Fix for bug 742195 (Implement the extended attributes for null and undefined handling on strings in Paris bindings). r=bz.
2012-07-12 15:55:30 +02:00
Peter Van der Beken
deff3652d9
Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap.
2012-06-06 21:52:26 +02:00
Luke Wagner
94264a0bc8
Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
...
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Peter Van der Beken
13f425b97c
Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
...
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Eric Faust
ba5cbc8591
Bug 773546 - Part 2: Centralize Paris binding accessor and method top halves. (r=peterv)
2012-08-07 22:26:20 -07:00
Eric Faust
96d7ea57ce
Bug 775289 - Remove generateNativeAccessors branching from Paris binding codegen. (r=peterv)
2012-08-07 22:26:19 -07:00
Eric Faust
a9e0d44101
Bug 773548 - Part 2: Pass the generated JSJitInfos into JSFunctionSpec. (r=peterv)
2012-08-07 22:26:19 -07:00
Eric Faust
94f0940e41
Bug 773548 - Part 1: Modify Paris bindings to specialize methods. (r=peterv)
2012-08-07 22:26:19 -07:00
Boris Zbarsky
a00c8cb2bd
Bug 747287 - Part 3: Add callback interface to allow JIT to interrogate DOM. (r=peterv)
2012-08-07 22:26:18 -07:00
Eric Faust
513357911e
Bug 747287 - Part 2: Generate infalliblity data for further JIT optimization. (r=peterv)
2012-08-07 22:26:18 -07:00
Eric Faust
b451a97a53
Bug 747287 - Part 1: Generate JSJitInfos and specialized accessors for Paris bindings. (r=peterv)
2012-08-07 22:26:18 -07:00
Ms2ger
391eca3b71
Bug 776224 - CheckPref should always initialize its outparam; r=peterv
2012-08-04 09:44:00 +02:00
Ms2ger
e1e44bb6f1
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
Ed Morley
bba173e66e
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
de54e5b696
Bug 776224 - CheckPref should always initialize its outparam; r=peterv
2012-08-04 09:44:00 +02:00
Ms2ger
5363dc0480
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
William Chen
a7026edb01
Bug 779573 - Fix generated code for empty string as default dictionary member in WebIDL. r=khuey
2012-08-01 14:34:36 -04:00
Eric Faust
012112cde8
Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke)
2012-08-01 17:59:47 -07:00
Nicholas Cameron
27a424af1c
Bug 776685; throw TypeError exceptions from Azure canvas bindings. r=bz
2012-07-26 14:31:26 +12:00
Eric Faust
a58ac0611e
Bug 749535 - Part 3: Remove JS_Is*Array() from Paris Binding argument unwrapping. (r=bz)
2012-07-31 20:45:22 -07:00
Eric Faust
e8671110a6
Backout changesets 6e78bc0145ee, 97a1463cde9c, and 9097d0b3acc6 (Bug 749535) for
...
erroneous bug number (r=me).
2012-07-31 20:24:32 -07:00
Eric Faust
1f08362f9e
Bug 749535 - Part 3: Remove JS_Is*Array() from Paris Binding argument unwrapping. (r=bz)
2012-07-31 20:07:55 -07:00
Boris Zbarsky
fc2f5cd147
Bug 771636 part 3. Implement default values for WebIDL strings. r=peterv
2012-07-31 00:22:23 -04:00
Boris Zbarsky
f9ac7c28ba
Bug 771636 part 2. Implement default values for WebIDL enums. r=peterv
2012-07-31 00:22:23 -04:00
Boris Zbarsky
5186d5c397
Bug 771636 part 1. Rearrange default-value handling so we actually set C++ values directly instead of round-tripping through jsval. r=peterv
2012-07-31 00:22:22 -04:00
Brian Hackett
ffc948bbbe
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Boris Zbarsky
43ca50a784
Bug 777438. Make sure our C++ declarations are in the right order when a dictionary has a dictionary member. r=khuey
2012-07-27 00:09:10 -04:00
Boris Zbarsky
1aab881a5b
Bug 775844. Make sure to examine constructor signatures when looking for union types. r=peterv
2012-07-27 00:09:10 -04:00
Boris Zbarsky
0349f66760
Bug 775845. Fail codegen for variadic arguments until we add support for them. r=peterv
2012-07-27 00:09:09 -04:00
Boris Zbarsky
a6578c446a
Bug 775852. Actually follow the WebIDL spec for creating JS representations of sequences. r=khuey
2012-07-27 00:09:09 -04:00
Boris Zbarsky
3268be0569
Bug 764456 part 5. Actually look at hasConcreteDescendant in hasInterfacePrototypeObject() so that we can avoid codegen for [NoInterfaceObject] interfaces hat are only implemented via "implements". r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
229fdff391
Bug 764456 part 4. Make sure consequential interface used as arguments are non-castable. r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
768e966647
Bug 764456 part 3. Clean up meaning of 'castable' and use thereof a bit. r=peterv
2012-07-19 14:48:58 -04:00
Peter Van der Beken
d5f4fcc033
Fix for bug 774775 (XRayWrapper does not handle new bindings constants) - refactor code. r=bz.
...
--HG--
extra : rebase_source : 317d5942dde4427384320cb334f794f7fef37a2e
2012-07-18 13:52:07 +02:00
Peter Van der Beken
63b03ad0ef
Fix for bug 774775 (XRayWrapper does not handle new bindings constants). r=bz.
...
--HG--
extra : rebase_source : fef985d0417c394ae5997b4450c7076005bdf870
2012-07-17 22:54:25 +02:00
Ed Morley
ab4a6323cd
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-18 13:32:24 +01:00
Ms2ger
2be7de56d2
Bug 765464 - Part c: Throw some TypeErrors; r=khuey
2012-07-18 12:36:08 +02:00
Boris Zbarsky
92f87e5c2f
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
fa17d85d47
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Ed Morley
8a2ea81bc5
Backout 9deb8edb5070 (bug 773519), ea5a243a60f1 & 0cad1e553bea (bug 768537) for compilation failures
2012-07-17 17:48:11 +01:00
Boris Zbarsky
27e9cc02ef
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
c93c708107
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Peter Van der Beken
00a583bb63
Fix for bug 762280 (Use nsContentUtils::PreserveWrapper for preserving expandos). r=bz.
...
--HG--
extra : rebase_source : cd426b3c3b987d8e39196e1dd1e468bc87e87f53
2012-07-16 16:52:53 +02:00
Peter Van der Beken
7efab19797
Fix for bug 756258 (Support union types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 5352801a4eb5085f73a5b6e78aa238c5c9d44179
2012-05-18 23:25:47 +02:00
Boris Zbarsky
3e7e99e0c5
Bug 742152. Move distinguishing index determination and verification of type-identity of preceding arguments out of codegen and into the WebIDL parser. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
7da04fee8b
Bug 764456 part 1. Flag consequential interfaces in the WebIDL data model. r=khuey
2012-06-22 16:18:50 -04:00
Boris Zbarsky
22dc1c73f5
Bug 764698. Fix isDistinguishableFrom for dictionaries to work right. r=peterv
2012-06-21 12:29:11 -04:00
Ms2ger
7199ac064a
Bug 766615 - Fix nullable WebIDL dictionaries; r=bz
2012-06-21 09:21:53 +02:00
Ms2ger
8ffd5be09b
Bug 764539 - Stringify the prototype class in Paris bindings to "InterfacePrototype" instead of "Interface Prototype"; r=bz
2012-06-21 09:20:28 +02:00
Ms2ger
52f62c5641
Bug 765704 - Don't throw when setting XHR.responseType to an invalid value; r=bz
2012-06-21 09:11:07 +02:00
Boris Zbarsky
1a57def9ed
Bug 763911. Add support for interface members of dictionaries. r=khuey
2012-06-19 12:09:37 -04:00
Boris Zbarsky
32972789c0
Bug 764420. Fix ArrayBufferView unwrapping to allow DataViews. r=khuey
2012-06-19 12:08:39 -04:00
Boris Zbarsky
74559f9cee
Bug 746570. Get rid of bogus uses of rstrip() that are leaving random trailing spaces in the middle of our string. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
86ff83d74b
Bug 764104. Avoid collisions with C++ reserved words by using initial-caps for WebIDL enum values. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
a20f0507aa
Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob
2012-06-15 16:25:51 -04:00
Boris Zbarsky
5e2f09ce01
Bug 750297 part 1. Add support for objects that do not have a wrapper cache in WebIDL bindings. r=peterv
2012-06-15 16:25:50 -04:00
Boris Zbarsky
2162d8e5fc
Bug 742153 part 4. Allow strings inside sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Boris Zbarsky
cc973eeeb9
Bug 742153 part 3. Implement codegen for dictionary arguments. r=peterv
...
Another implementation option would be to put all the dictionaries in a single
file and have a static global set of ids which works across all dictionaries
and is initialized once at startup or so. That would also handle cross-file
dictionary inheritance better.
One problem that remains is the fake descriptor business. At the moment this
does not allow interface types inside dictionaries. We could probably work
around this by either refactoring code to make it possible to get the declType
independently of the actual conversion template (whether because it lives in a
separate function or because the conversion template generator knows to just
return an empty string when the fake descriptor provirder is passed) or by
figuring out a way to pass an actual descriptor provider to dictionary codegen.
2012-06-12 10:22:05 -04:00
Boris Zbarsky
e23075af03
Bug 742153 part 2. Rename isSequenceMember to isMember, since it will apply to both sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Kyle Huey
5c863e56f1
Bug 763573: Don't export PrimitiveConversions.h. r=bz
2012-06-11 13:04:34 -07:00
Boris Zbarsky
b4e6056558
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
1cf783e451
Bug 761707 part 1. Rip out the various infrastructure for allowing different slot indices on different DOMJSClass instances. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
3f887fdbe1
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
fddc56821d
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
Boris Zbarsky
c46a9a1068
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
8839249ab0
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : f676440e468c23e6c1e9458f6d75a615b9a6b8d7
2012-05-21 23:29:58 +02:00
Peter Van der Beken
5f147ab73e
Fix for bug 759278 (Support binarynames for attributes too in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 352a4d33db77dd80915700db335799bb8c19ac72
2012-05-18 23:25:47 +02:00
Boris Zbarsky
6785038c42
Bug 743906 part 3. Stop listing default values for optional arguments with no defaults, now that we're guaranteed to only examine such values if argc is big enough. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
f4767d734a
Bug 743906 part 2. Use Optional<> for optional arguments that don't have default values. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
c678f9e315
Bug 755636 part 2. Add some tests (not exhaustive!) for sequence codegen and fix the bugs they uncover. r=peterv
2012-05-25 01:08:26 -04:00
Boris Zbarsky
52a20a9207
Bug 755636 part 1. Convert sequence argument codegen to dom::Sequence. r=peterv
2012-05-25 01:08:22 -04:00
Boris Zbarsky
4282e2d242
Bug 749864. Codegen for typed array and arraybuffer arguments. r=peterv
2012-05-25 01:07:03 -04:00
Boris Zbarsky
61f32ddabf
Bug 753642. Rip out the codegen for the Xray-related bits of worker bindings, since we don't have Xrays in workers. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
e773b80a28
Bug 755080 part 1. Add infrastructure for binding codegen tests. r=khuey,peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
1e84000e3b
Bug 753522. Add support for controlling the existence of methods, properties, interface constants, etc with a pref. r=peterv
2012-05-23 12:44:48 -04:00
Peter Van der Beken
edd0f71b9b
Fix for bug 756257 (Replace xpc_qsDOMString with a conversion function in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 3f5ac89f72fade970f9f3505b93e51ac44ee7525
2012-05-18 23:25:46 +02:00
Peter Van der Beken
6556500061
Fix for bug 756256 (Add support for object arguments and return types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : ceffb38d662395c6aa8e02281fe6e07925fc2362
2012-04-26 23:44:28 +02:00
Peter Van der Beken
0286ef621c
Fix for bug 756251 (Pass extendedAttributes to CGCallGenerator). r=bz.
...
--HG--
extra : rebase_source : ceb7b4516b8ddfed63e2abada2cff5222f4f6973
2012-04-26 23:44:28 +02:00
Peter Van der Beken
4865f91951
Fix for bug 756231 (Remove NativeToSupports, replace with reinterpret_cast). r=bz.
...
--HG--
extra : rebase_source : b7a2e204b9db7457312af6179aa516f4849c7f92
2012-04-26 23:44:28 +02:00
Peter Van der Beken
889699aeee
Fix for bug 756225 (Make CGNamespace.build respect declareOnly). r=bz.
...
--HG--
extra : rebase_source : 77729639e018cef8aef04ecb3f3cc0f818cb560c
2012-04-26 23:44:28 +02:00
Peter Van der Beken
1196e09714
Fix for bug 741263 (Paris bindings constructors shouldn't abuse reserved identifiers). r=bz.
...
--HG--
extra : rebase_source : cec6a0ffc58f3d7d262dc9658d52aac424ec715a
2012-04-26 22:57:33 +02:00
Brian Hackett
c07eaa0e3e
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
9ae1966596
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
a863456144
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Boris Zbarsky
f9c55c7598
Bug 748267 part 3. Codegen for sequence return values. r=peterv
...
The big block in getRetvalDeclarationForType is just direct cut/paste from CGCallGenerator plus the addition of the sequence case. The IDL parser changes were OKed by khuey; they're needed so that we don't have to worry about the ordering of sequence with conversions for strings and primitives.
2012-05-15 14:23:29 -04:00
Boris Zbarsky
2e5443afcb
Bug 748267 part 2. Implement codegen for dealing with sequence arguments. r=peterv
2012-05-15 14:23:29 -04:00
Boris Zbarsky
47ff20f5dc
Bug 748267 part 1. Refactor js-to-native conversion to make it not assume it's only happening on stack arguments. r=peterv
...
The changes in CastableObjectUnwrapper and CallbackObjectUnwrapper are
basically reindentation. Similar for the actual conversion changes for all the
non-interface types, though for those the actual declaration of the thing being
converted to has moved out, since we may not be converting onto the stack.
2012-05-15 14:23:29 -04:00
Peter Van der Beken
e8ffd52b82
Fix for bug 752042 (Support running code after successful wrapping in Paris bindings). r=bz.
2012-04-26 23:44:24 +02:00
Luke Wagner
d266538fea
Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
...
--HG--
extra : rebase_source : 036acbd046ff8b42f81e63933901b6aaaa595a76
2012-05-07 12:44:08 -07:00
Boris Zbarsky
90b5c814e8
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Phil Ringnalda
ce8665a6aa
Back out 1907bf7e6d7c (bug 749485) for build bustage
2012-05-05 20:33:59 -07:00
Boris Zbarsky
1833a29c14
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Boris Zbarsky
2bed717c4f
Bug 748637. Refactor argument conversion to primitive values to make it easier to extend in the future. r=peterv
2012-05-04 12:38:48 -04:00
Boris Zbarsky
577419e736
Bug 748983. Fix the instanceof behavior for new bindings in situations where we don't need a custom hasInstance hook. r=peterv
2012-05-03 00:35:38 -04:00
Boris Zbarsky
32c7f6e634
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00