Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove some usage of unsafe code in iterator.rs | marmeladema | 2019-08-09 | 1 | -14/+14 |
| | |||||
* | Convert CGTraitInterface to use safe JSContext instead of raw JSContext | marmeladema | 2019-07-24 | 1 | -12/+12 |
| | |||||
* | Wrap(Global)Method now takes a SafeJSContext instead of a JSContext | marmeladema | 2019-07-24 | 1 | -1/+2 |
| | | | | as first argument. | ||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -7/+7 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -26/+39 |
| | |||||
* | Make (dictionary)::empty() safe | Manish Goregaokar | 2018-07-06 | 1 | -2/+2 |
| | | | | | | | | | It currently works by constructing from null (which will throw a runtime error if there are non-defaultable members). This changes it so that we no longer need a JSContext to construct this, so it can be safely constructed. In the case of non-defaultable members, this method simply does not exist. | ||||
* | Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 | Marcin Mielniczuk | 2018-03-28 | 1 | -3/+4 |
| | |||||
* | Root `any` members in dictionaries | Igor Matuszewski | 2018-03-16 | 1 | -5/+5 |
| | |||||
* | Use safe NonZero constructor instead of an explicit null check | Simon Sapin | 2018-01-22 | 1 | -2/+1 |
| | |||||
* | Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject> | Simon Sapin | 2018-01-22 | 1 | -3/+3 |
| | |||||
* | Fix tyvar_behind_raw_pointer warnings | Simon Sapin | 2018-01-10 | 1 | -2/+2 |
| | | | | https://github.com/rust-lang/rust/issues/46906 | ||||
* | Replace all uses of the `heapsize` crate with `malloc_size_of`. | Nicholas Nethercote | 2017-10-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`. | ||||
* | Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls. | Simon Sapin | 2017-10-16 | 1 | -4/+4 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax. | ||||
* | Rename Root<T> to DomRoot<T> | Anthony Ramine | 2017-09-26 | 1 | -2/+2 |
| | | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned. | ||||
* | Rename JS<T> to Dom<T> | Anthony Ramine | 2017-09-26 | 1 | -3/+3 |
| | |||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Remove almost all uses of Heap::new. | Josh Matthews | 2017-09-25 | 1 | -1/+4 |
| | |||||
* | Store rootable dictionary members of dictionaries in RootedTraceableBox. | Josh Matthews | 2017-09-25 | 1 | -3/+3 |
| | |||||
* | Be more conservative about safety of dictionary and union values. | Josh Matthews | 2017-09-25 | 1 | -3/+3 |
| | | | | | | | | Mark dictionaries containing GC values as must_root, and wrap them in RootedTraceableBox in automatically-generated APIs. To accommodate union variants that are now flagged as unsafe, add RootedTraceableBox to union variants that need to be rooted, rather than wrapping the entire union value. | ||||
* | order derivable traits lists | Clément DAVID | 2017-08-23 | 1 | -1/+1 |
| | | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs | ||||
* | Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26) | Simon Sapin | 2017-07-27 | 1 | -1/+1 |
| | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Use Heap for dictionary and union members. | Ms2ger | 2017-02-16 | 1 | -3/+3 |
| | |||||
* | Use #[dom_struct] on IterableIterator<T> (fixes #12811) | Anthony Ramine | 2017-02-15 | 1 | -27/+3 |
| | |||||
* | Change #[privatize] into #[derive(DenyPublicFields)] | Anthony Ramine | 2017-02-15 | 1 | -3/+1 |
| | |||||
* | Rename `Reflectable` to `DomObject`. | Corey Farwell | 2016-12-08 | 1 | -7/+7 |
| | | | | Fixes https://github.com/servo/servo/issues/8473. | ||||
* | script creates methods taking '*mut JSContext' unsafe | Abelardo E. Mendoza | 2016-11-14 | 1 | -1/+1 |
| | | | | rebase + marked the necessary new code as unsafe | ||||
* | Rename Reflectable::global_scope to global | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Introduce Reflectable::global_scope | Anthony Ramine | 2016-10-06 | 1 | -2/+1 |
| | |||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -3/+3 |
| | |||||
* | Extract mutability out of Reflectable trait. | Josh Matthews | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | Compile WebIDL return type "object" to NonZero<*mut JSObject> | Anthony Ramine | 2016-08-30 | 1 | -23/+27 |
| | |||||
* | Implement pair iterators in WebIDL interfaces. | Josh Matthews | 2016-08-24 | 1 | -0/+161 |