aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/promise.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary Result::ok callsMatt Brubeck2017-10-201-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-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 unsafeAnthony Ramine2017-09-221-5/+3
|
* Make Promise::new_rejected unsafeAnthony Ramine2017-09-221-5/+3
|
* Rename Promise::is_settled to Promise::is_fulfilledAnthony Ramine2017-09-221-1/+1
|
* Remove unused method Promise::thenAnthony Ramine2017-09-221-20/+1
|
* Make Promise::reject unsafeAnthony Ramine2017-09-221-9/+5
|
* Make Promise::resolve unsafeAnthony Ramine2017-09-221-6/+4
|
* Make Promise::reject_error soundAnthony Ramine2017-09-221-1/+3
|
* Make Promise::reject_native soundAnthony Ramine2017-09-211-1/+3
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-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 methodsAnthony Ramine2017-09-211-6/+10
|
* Implemented Houdini worklets.Alan Jeffrey2017-05-171-0/+1
|
* Add way to get c_void ptr or c_char from callermckaymatt2017-04-041-1/+2
|
* removing mutHeapJs referencesSendilKumar N2017-03-071-3/+3
| | | | changes as per comments
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Use Heap in DOM object reflector implementation to ensure GC barriers are used.Josh Matthews2017-01-201-3/+3
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Initial work on job queues for service workersRahul Sharma2016-11-221-2/+11
|
* Update js.Ms2ger2016-11-021-2/+2
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-4/+4
|
* Remove Reflectable::globalAnthony Ramine2016-10-061-4/+3
|
* Make Promise::Reject and Resolve take a &GlobalScopeAnthony Ramine2016-10-061-3/+2
|
* Make Error::to_jsval take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Make Promise::new take a &GlobalScopeAnthony Ramine2016-10-061-1/+2
|
* Remove maybe_ prefix from Promise methods.Josh Matthews2016-09-221-11/+9
|
* Support an equivalent of Trusted<T> for Rc<Promise> objects named ↵Josh Matthews2016-09-221-0/+8
| | | | TrustedPromise.
* Add a simple API to reject promises with DOM error values.Josh Matthews2016-09-221-1/+10
|
* Ensure Promise "reflector" is not GCed before the Rust object.Josh Matthews2016-09-221-9/+57
|
* Support native promise callbacks.Josh Matthews2016-09-221-2/+74
|
* Useful APIs for resolving/rejecting from native code.Josh Matthews2016-09-221-0/+18
|
* Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵Mátyás Mustoha2016-09-221-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 Matthews2016-09-221-0/+71