Pauan
f8da1e672f
Fixing unsafe_get_str function
2019-07-19 22:15:07 +02:00
Pauan
10ab4cbc18
Fixing TypeScript types for cached strings
2019-07-19 22:11:45 +02:00
Pauan
554ef90035
Fixing issue with wasm-interpreter
2019-07-19 22:03:33 +02:00
Alex Crichton
b9b8c209d0
Update 'threads-xform' for LLVM 9
...
In LLVM 9 LLD has been updated to emit shared memory and passive
segments by default for threaded code, and `__wasm_init_memory` is a
function exported used to initialize memory. Update our
transform/runtime here to hook up all those wires correctly.
Closes #1631
2019-07-19 11:10:38 -07:00
Alex Crichton
efacd8b74d
Merge pull request #1514 from ibaryshnikov/threadsafe-futures
...
Threadsafe futures
2019-07-19 09:38:04 -05:00
Alex Crichton
55b486ad78
Merge pull request #1673 from Pauan/web-sys-partial-eq
...
Adding in PartialEq and Eq to web-sys types
2019-07-19 08:49:52 -05:00
Pauan
c82253ca68
Fixing doc test error
2019-07-18 23:40:16 +02:00
Pauan
ed778f5eb2
Adding in PartialEq and Eq to web-sys types
2019-07-18 23:12:49 +02:00
Alex Crichton
b13f757e90
Shared more betwee legacy with/without atomics
2019-07-18 14:11:59 -07:00
Alex Crichton
be294c8248
Remove a debugging statement
2019-07-18 14:04:45 -07:00
Alex Crichton
c8451d6f3e
Rename some files
...
* Use "legacy" instead of "stable" since `futures 0.1` is quicly
becoming "legacy"
* Rename "atomics" to "legacy_atomics" to leave room for the
libstd-based futures atomics version.
* Rename "polyfill" to "wait_async_polyfill" to specify what it's
polyfilling.
2019-07-18 14:00:45 -07:00
Alex Crichton
d590a9e053
Deduplicate JsFuture
definitions
...
Turns out it's the exact same for both before and after atomics, so
let's use the same definition!
2019-07-18 13:59:14 -07:00
Alex Crichton
cde9684e4b
Clean up atomics/futures + polyfill
...
* Remove now-unneeded `State` enum
* Remove timeout argument from polyfill since we don't need it
* Call `Atomics.waitAsync` if it's available instead of using our polyfill
* Remove some extraneous dead code from the polyfill
* Add a `val: i32` argument to the polyfill
* Simplify the flow of futures with `Package` since `waitAsync` handles
all the heavy lifting for us.
* Remove `Arc<Package>` and just use `Package`
* Remove `RefCell` from inside of `Package` now that it is no longer
needed.
2019-07-18 13:55:54 -07:00
Pauan
366ed2308f
Adding in docs for intern
2019-07-18 22:40:56 +02:00
Pauan
544ec49e02
Shifting the unsafe responsibility a bit
2019-07-18 22:21:48 +02:00
Pauan
ca15a59ace
Changing from uluru to HashMap
2019-07-18 21:51:29 +02:00
Pauan
3177fa9edc
Minor doc fix
2019-07-18 21:51:29 +02:00
Pauan
2405fad319
Shifting the unsafety guarantees around
2019-07-18 21:51:29 +02:00
Pauan
c3676bc6f9
Removing unneeded if statement
2019-07-18 21:51:29 +02:00
Pauan
8572255e73
Making uluru optional
2019-07-18 21:51:29 +02:00
Pauan
adf21fe6cb
Removing unneeded size argument
2019-07-18 21:51:29 +02:00
Pauan
cc6ec867f7
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
1723e9d024
More simplifications
2019-07-18 21:51:28 +02:00
Pauan
1e4cac9c95
Simplifying the output
2019-07-18 21:51:28 +02:00
Pauan
4e504654d1
Undoing some formatting
2019-07-18 21:51:28 +02:00
Pauan
fd88626e38
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
2ee4c54f00
Changing to use WasmSlice for the caching
2019-07-18 21:51:28 +02:00
Pauan
f7e8e70684
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
f28cfc26fe
Fixing some things for the cache
2019-07-18 21:51:28 +02:00
Pauan
0359da2060
Potential fix for OptionIntoWasmAbi?
2019-07-18 21:51:28 +02:00
Pauan
0a61e12bd1
Making interning manual
2019-07-18 21:51:28 +02:00
Pauan
86a8842f24
Changing IntoWasmAbi to use interning
2019-07-18 21:51:28 +02:00
Pauan
6767371ca7
Initial interning implementation
2019-07-18 21:51:28 +02:00
Alex Crichton
9f77f8dd00
Update parallel raytrace example to use futures
...
Use the atomics support now implemented!
2019-07-18 10:13:34 -07:00
Alex Crichton
d122bbca13
Emit a compiler error with futures 0.3 and atomics
...
Not implemented yet, and the one there doesn't work with atomics! (we'll
get around to this soon-ish)
2019-07-18 10:13:05 -07:00
Alex Crichton
2529bb0b17
Merge pull request #1670 from fitzgen/check-for-use-after-move-in-methods
...
Check for use-after-move in JS glue when `--debug` is enabled again
2019-07-17 10:07:01 -05:00
ibaryshnikov
02be3690cf
removed AtomicBool from Waker struct
2019-07-17 01:52:55 +03:00
ibaryshnikov
45d2c7ce93
updated to the latest master
2019-07-17 01:24:44 +03:00
ibaryshnikov
cbaa1d302a
added documentation comment for a stable version of wasm-bindgen-futures
2019-07-17 00:58:05 +03:00
ibaryshnikov
6ab1a49a41
moved lib.rs to stable.rs in wasm-bindgen-futures, updated during review
2019-07-17 00:58:05 +03:00
ibaryshnikov
221dc732af
updated default timeout and wait_async signature in wasm-bindgen-futures
2019-07-17 00:48:00 +03:00
ibaryshnikov
06c783d5e3
placed web-sys dependency behind a feature flag in wasm-bindgen-futures
2019-07-17 00:48:00 +03:00
ibaryshnikov
16c6bdc966
moved threadsafe futures implementation to a separate file, made updates after review
2019-07-17 00:48:00 +03:00
ibaryshnikov
e466e1a6f1
moved threadsafe futures behind a flag
2019-07-17 00:48:00 +03:00
ibaryshnikov
2fdfe79574
added polyfill implementation in rust
2019-07-17 00:48:00 +03:00
ibaryshnikov
c01575c1bc
typo fixed in Atomics docs
2019-07-17 00:48:00 +03:00
ibaryshnikov
d1d3021271
added polyfill for Atomics.wait and used it to notify futures
2019-07-17 00:48:00 +03:00
Nick Fitzgerald
8fd5f4ed6a
Check for use-after-move in JS glue when --debug
is enabled again
...
Fixes #1669
2019-07-16 13:35:59 -07:00
Alex Crichton
1807de74a7
Merge pull request #1665 from ia0/getElementsByClassName
...
Add Element::get_elements_by_class_name
2019-07-15 12:57:18 -05:00
Julien Cretin
170ce683d8
Add missing Element::get_elements_by_* methods
2019-07-15 19:47:09 +02:00