Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary Result::ok calls | Matt Brubeck | 2017-10-20 | 1 | -1/+1 |
| | |||||
* | 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`. | ||||
* | Make Promise::new_resolved unsafe | Anthony Ramine | 2017-09-22 | 1 | -5/+3 |
| | |||||
* | Make Promise::new_rejected unsafe | Anthony Ramine | 2017-09-22 | 1 | -5/+3 |
| | |||||
* | Rename Promise::is_settled to Promise::is_fulfilled | Anthony Ramine | 2017-09-22 | 1 | -1/+1 |
| | |||||
* | Remove unused method Promise::then | Anthony Ramine | 2017-09-22 | 1 | -20/+1 |
| | |||||
* | Make Promise::reject unsafe | Anthony Ramine | 2017-09-22 | 1 | -9/+5 |
| | |||||
* | Make Promise::resolve unsafe | Anthony Ramine | 2017-09-22 | 1 | -6/+4 |
| | |||||
* | Make Promise::reject_error sound | Anthony Ramine | 2017-09-22 | 1 | -1/+3 |
| | |||||
* | Make Promise::reject_native sound | Anthony Ramine | 2017-09-21 | 1 | -1/+3 |
| | |||||
* | Make Promise::resolve_native actually sound | Anthony Ramine | 2017-09-21 | 1 | -1/+3 |
| | | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand. | ||||
* | Rename a couple of Promise methods | Anthony Ramine | 2017-09-21 | 1 | -6/+10 |
| | |||||
* | Implemented Houdini worklets. | Alan Jeffrey | 2017-05-17 | 1 | -0/+1 |
| | |||||
* | Add way to get c_void ptr or c_char from caller | mckaymatt | 2017-04-04 | 1 | -1/+2 |
| | |||||
* | removing mutHeapJs references | SendilKumar N | 2017-03-07 | 1 | -3/+3 |
| | | | | changes as per comments | ||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Use Heap in DOM object reflector implementation to ensure GC barriers are used. | Josh Matthews | 2017-01-20 | 1 | -3/+3 |
| | |||||
* | Rename `Reflectable` to `DomObject`. | Corey Farwell | 2016-12-08 | 1 | -1/+1 |
| | | | | Fixes https://github.com/servo/servo/issues/8473. | ||||
* | Initial work on job queues for service workers | Rahul Sharma | 2016-11-22 | 1 | -2/+11 |
| | |||||
* | Update js. | Ms2ger | 2016-11-02 | 1 | -2/+2 |
| | |||||
* | Rename Reflectable::global_scope to global | Anthony Ramine | 2016-10-06 | 1 | -4/+4 |
| | |||||
* | Remove Reflectable::global | Anthony Ramine | 2016-10-06 | 1 | -4/+3 |
| | |||||
* | Make Promise::Reject and Resolve take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -3/+2 |
| | |||||
* | Make Error::to_jsval take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Make Promise::new take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -1/+2 |
| | |||||
* | Remove maybe_ prefix from Promise methods. | Josh Matthews | 2016-09-22 | 1 | -11/+9 |
| | |||||
* | Support an equivalent of Trusted<T> for Rc<Promise> objects named ↵ | Josh Matthews | 2016-09-22 | 1 | -0/+8 |
| | | | | TrustedPromise. | ||||
* | Add a simple API to reject promises with DOM error values. | Josh Matthews | 2016-09-22 | 1 | -1/+10 |
| | |||||
* | Ensure Promise "reflector" is not GCed before the Rust object. | Josh Matthews | 2016-09-22 | 1 | -9/+57 |
| | |||||
* | Support native promise callbacks. | Josh Matthews | 2016-09-22 | 1 | -2/+74 |
| | |||||
* | Useful APIs for resolving/rejecting from native code. | Josh Matthews | 2016-09-22 | 1 | -0/+18 |
| | |||||
* | Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵ | Mátyás Mustoha | 2016-09-22 | 1 | -15/+79 |
| | | | | | | batches. Implement native Promise APIs. Add SpiderMonkey hooks for enqueuing promise jobs. Start porting various native Promise APIs. | ||||
* | Implement binding support for returning and accepting Promises in WebIDL. | Josh Matthews | 2016-09-22 | 1 | -0/+71 |