Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -3/+3 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -7/+7 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -5/+10 |
| | |||||
* | getRandomValues uses ArrayBufferView now | Christian Poveda | 2018-03-22 | 1 | -17/+11 |
| | |||||
* | Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject> | Simon Sapin | 2018-01-22 | 1 | -3/+3 |
| | |||||
* | 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 | -3/+3 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | 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 DOMRefCell<T> to DomRefCell<T> | Anthony Ramine | 2017-09-26 | 1 | -3/+3 |
| | | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things. | ||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | 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 |
| | |||||
* | Replace uses of spidermonkey-specific JS_GetArrayBufferViewType with ↵ | Sam Liu | 2017-02-20 | 1 | -7/+6 |
| | | | | ArrayBufferView impl's method get_array_type() | ||||
* | An in-memory RNG that shares its file descriptor. | Alan Jeffrey | 2017-01-05 | 1 | -4/+4 |
| | |||||
* | Rewrite Crypto::GetRandomValues to use typed array API | deror1869107 | 2016-12-26 | 1 | -4/+4 |
| | | | | | | Fix mut typed_array Redundant code | ||||
* | Mark JSTraceable and its method as unsafe | Anthony Ramine | 2016-12-06 | 1 | -1/+1 |
| | |||||
* | script creates methods taking '*mut JSContext' unsafe | Abelardo E. Mendoza | 2016-11-14 | 1 | -3/+3 |
| | | | | rebase + marked the necessary new code as unsafe | ||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -2/+2 |
| | |||||
* | Compile WebIDL return type "object" to NonZero<*mut JSObject> | Anthony Ramine | 2016-08-30 | 1 | -2/+4 |
| | |||||
* | Say farewell to in-tree HeapSizeOf | Anthony Ramine | 2016-02-04 | 1 | -0/+1 |
| | |||||
* | conversions: Add a checked version to array_buffer_view_data | Emilio Cobos Álvarez | 2016-01-04 | 1 | -1/+1 |
| | |||||
* | conversion: Extrapolate array_buffer_view_data | Emilio Cobos Álvarez | 2016-01-04 | 1 | -13/+12 |
| | | | | And use it instead of the raw jsapi calls. | ||||
* | Rustfmt some of script. | Ms2ger | 2015-11-18 | 1 | -3/+6 |
| | |||||
* | more refactoring | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | sorted the extern crate, mod & use declarations | Ravi Shankar | 2015-09-24 | 1 | -4/+3 |
| | |||||
* | Fix reported test-tidy errors for unmerged import blocks | Brandon Fairchild | 2015-09-19 | 1 | -4/+1 |
| | | | | This merges import blocks that were reported by tidy as unmerged. | ||||
* | Make the traits for the IDL interfaces take &self | Anthony Ramine | 2015-08-27 | 1 | -2/+2 |
| | |||||
* | make dom_struct derive HeapSizeOf, | João Oliveira | 2015-08-27 | 1 | -1/+0 |
| | | | | closes #7357 | ||||
* | sort all uses | Johann Tuffe | 2015-08-20 | 1 | -1/+1 |
| | |||||
* | Measure heap memory usage for more types. Fixes #6951 | Bogdan Cuza | 2015-08-13 | 1 | -0/+1 |
| | |||||
* | Add spec links | Bogdan Cuza | 2015-07-28 | 1 | -1/+1 |
| | |||||
* | Implement window.crypto.getRandomValues() | Tim Taubert | 2015-07-03 | 1 | -0/+82 |