This repository was archived by the owner on Aug 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1313before_script :
1414 - rustup target add wasm32-unknown-unknown
1515 - rustup target add i686-pc-windows-gnu
16- - which wasm-gc || cargo install --git https://github.com/alexcrichton/wasm-gc
17- - which cargo-readme || cargo install cargo-readme
16+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
17+ - (test -x $HOME/.cargo/bin/cargo-readme || cargo install --vers "^3" cargo-readme)
18+ - (test -x $HOME/.cargo/bin/wasm-gc || cargo install --vers "^0.1.6" wasm-gc)
19+ - cargo install-update -a
1820
1921script :
2022 - " $SCRIPT"
Original file line number Diff line number Diff line change 11use super :: { assert_is_word_aligned, PAGE_SIZE , unchecked_unwrap} ;
22use const_init:: ConstInit ;
33use core:: alloc:: AllocErr ;
4+ use core:: arch:: wasm32;
45use core:: cell:: UnsafeCell ;
56use core:: ptr:: NonNull ;
67use memory_units:: Pages ;
78
8- extern "C" {
9- #[ link_name = "llvm.wasm.grow.memory.i32" ]
10- fn grow_memory ( pages : usize ) -> i32 ;
11- }
12-
139pub ( crate ) unsafe fn alloc_pages ( n : Pages ) -> Result < NonNull < u8 > , AllocErr > {
14- let ptr = grow_memory ( n. 0 ) ;
10+ let ptr = wasm32 :: grow_memory ( n. 0 as i32 ) ;
1511 if -1 != ptr {
1612 let ptr = ( ptr as usize * PAGE_SIZE . 0 ) as * mut u8 ;
1713 assert_is_word_aligned ( ptr as * mut u8 ) ;
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ for hacking!
226226#![ deny( missing_docs) ]
227227#![ cfg_attr( not( feature = "use_std_for_test_debugging" ) , no_std) ]
228228#![ feature( alloc, allocator_api, core_intrinsics) ]
229- #![ cfg_attr( target_arch = "wasm32" , feature( link_llvm_intrinsics ) ) ]
229+ #![ cfg_attr( target_arch = "wasm32" , feature( stdsimd ) ) ]
230230
231231#[ macro_use]
232232extern crate cfg_if;
You can’t perform that action at this time.
0 commit comments