Commit graph

441 commits

Author SHA1 Message Date
bors-servo
bdb551638e auto merge of #1848 : Ms2ger/servo/refactor-primitive-fromjsval, r=jdm
Probably best read commit-by-commit.
2014-03-07 10:01:36 -05:00
Ms2ger
971a4c58bb Pass Option<JSVal> for optional JSVals. 2014-03-07 12:40:25 +01:00
Ms2ger
4fa12841e7 Don't initialize nullable interface arguments to None in codegen.
This allows Rust to check that we've actually initialized all cases.
2014-03-07 11:28:29 +01:00
bors-servo
4a47145e69 auto merge of #1787 : hgentry/servo/mozilla-servo, r=jdm
Fixes #1779. Most of them were able to be replaced without issue.
2014-03-06 23:55:30 -05:00
hgentry
9b1213ed4d Removed glob imports from CodegenRust.py
Removed glob imports from CodegenRust.py (code review changes)

Removed many glob imports from CodegenRust.py (code review changes)

Removed glob imports from CodegenRust.py (cleanup)
2014-03-06 20:32:47 -05:00
Ms2ger
3a0b7fe621 Common up some more code in the handling of default values for primitive types. 2014-03-06 23:07:42 +01:00
Ms2ger
9fba4bcfba Simplify the code flow in the conversion to primitive types so that default values are handled together. 2014-03-06 22:56:10 +01:00
Ms2ger
922d191948 Common up some code in the conversion to nullable and non-nullable primitive types. 2014-03-06 22:52:57 +01:00
Ms2ger
54a59b9d38 Avoid a type error with a non-null default value for an optional nullable string argument. 2014-03-06 22:42:26 +01:00
Ms2ger
716e1ce144 Avoid a type error with a non-null default value for an optional nullable primitive argument. 2014-03-06 22:26:12 +01:00
Ms2ger
8b5778993a Inline dataLoc in the one place that can see it and the one place that can't. 2014-03-06 22:20:47 +01:00
Ms2ger
57be68ca8b Stop sticking a Page in the JSContext's private. 2014-03-05 21:04:57 +01:00
Ms2ger
14f679d455 Remove some dead code from CGCreateInterfaceObjectsMethod. 2014-03-05 20:01:58 +01:00
bors-servo
cfbcb5c62b auto merge of #1821 : Ms2ger/servo/result-JSValConvertible, r=jdm 2014-03-05 12:19:33 -05:00
bors-servo
5eb7d1cf30 auto merge of #1814 : Ms2ger/servo/more-primitive-setters, r=jdm 2014-03-05 09:55:35 -05:00
bors-servo
da6a571f9e auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdm 2014-03-05 09:31:44 -05:00
Ms2ger
81a9b54bf8 Return Result from JSValConvertible::from_jsval. 2014-03-04 22:44:55 +01:00
bors-servo
d9cf8cc4cc auto merge of #1812 : Ms2ger/servo/ResolveProperty, r=metajack 2014-03-04 14:49:40 -05:00
Ms2ger
1608f842e9 Rewrite the codegen for nullable primitives to use JSValConvertible. 2014-03-04 18:55:58 +01:00
bors-servo
a6410e86b3 auto merge of #1810 : Ms2ger/servo/test-binding, r=jdm 2014-03-04 12:05:57 -05:00
Ms2ger
d063601ba0 Implement support for returning nullable primitive types. 2014-03-04 17:30:19 +01:00
Ms2ger
3d28f31ea9 Use JSValConvertible::to_jsval from codegen. 2014-03-04 17:08:56 +01:00
Ms2ger
4166ff4794 Introduce a test IDL file. 2014-03-04 16:28:34 +01:00
Ms2ger
8acf36c6d4 Get the Page from the global object for ResolveProperty. 2014-03-04 15:28:12 +01:00
Ms2ger
d3ca4afaf5 Get the Page directly off the Window in CreateBindingJSObject. 2014-03-04 15:17:12 +01:00
Ms2ger
787108deaf Pass &JS<Window> to the Wrap functions in codegen. 2014-03-04 15:08:44 +01:00
Ms2ger
6291aac170 Pass &JS<Window> to some constructors. 2014-03-04 14:10:33 +01:00
Ms2ger
b6138580d3 Stop passing the scope argument to global object bindings' Wrap functions. 2014-03-04 13:24:16 +01:00
Ms2ger
12380edc63 Merge the Wrap and Wrap_ functions in codegen. 2014-03-04 13:17:36 +01:00
Ms2ger
99574f14d9 Return a JS<Window> from global_object_for_{dom,js}_object. 2014-03-04 11:41:46 +01:00
Ms2ger
c8bd9615f4 When calling constructors, retrieve the global object from the callee rather than the JSContext. 2014-03-04 10:46:49 +01:00
Ms2ger
3530f1e107 Remove support for external (i.e. XPIDL) interfaces. 2014-03-03 19:49:08 +01:00
bors-servo
b8de1b3ca7 auto merge of #1791 : Ms2ger/servo/conversions, r=jdm 2014-03-03 13:13:35 -05:00
Ms2ger
bec0dcd023 Remove unused argument to CreateInterfaceObjects2. 2014-03-03 16:00:49 +01:00
Ms2ger
6bc2c79f92 Pass a JSContext to JSValConvertible::from_jsval. 2014-03-02 22:30:54 +01:00
Josh Matthews
fa542e5de7 De-@mut the script crate. 2014-02-28 13:42:03 -05:00
Saurabh Anand
5c5cb3e9a7 Move Error, Fallible, ErrorResult out of utils.rs (fixes #1749) 2014-02-28 13:32:00 +05:30
bors-servo
421ba1a856 auto merge of #1736 : sankha93/servo/issue1733, r=jdm 2014-02-26 17:52:36 -05:00
Sankha Narayan Guria
1e9fec9172 Merge master into this branch 2014-02-27 03:31:05 +05:30
lpy
f706123208 Move Traceable, trace_reflector from utils.rs to trace.rs.(fixes #1748) 2014-02-26 19:33:21 +08:00
Ms2ger
1c49319173 Remove support for some more obsolete configurations. 2014-02-25 14:41:17 +01:00
Ms2ger
3c7f9832f0 Remove support for workers-specific codegen. 2014-02-25 14:28:27 +01:00
Ms2ger
c96c7bab12 Remove support for some more obsolete configurations. 2014-02-25 13:45:58 +01:00
Ms2ger
8360aa24d6 Remove support for some obsolete configurations. 2014-02-25 13:30:36 +01:00
Ms2ger
8429df46cc Remove dead code from Bindings.conf. 2014-02-25 13:19:28 +01:00
bors-servo
df993fdaf3 auto merge of #1689 : jdm/servo/unions, r=kmcallister
Seven hours on a train without internet will do this to you. Fixes #541.
2014-02-24 20:01:39 -05:00
Josh Matthews
232ca59708 Address review comments. Fix union conversion result mistakes introduced in refactoring. 2014-02-24 17:20:37 -05:00
Ms2ger
e2617a6396 Remove HTMLDocument. 2014-02-24 22:23:11 +01:00
Josh Matthews
4cdb4df70c Remove commented bits that aren't necessary. 2014-02-24 15:56:38 -05:00
Josh Matthews
9f05f70754 Clean up TrySetTo interface to avoid mutable outrefs. 2014-02-24 15:56:38 -05:00