rust/src/libpanic_unwind
Alex Crichton c3a5d6b130 std: Minimize size of panicking on wasm
This commit applies a few code size optimizations for the wasm target to
the standard library, namely around panics. We notably know that in most
configurations it's impossible for us to print anything in
wasm32-unknown-unknown so we can skip larger portions of panicking that
are otherwise simply informative. This allows us to get quite a nice
size reduction.

Finally we can also tweak where the allocation happens for the
`Box<Any>` that we panic with. By only allocating once unwinding starts
we can reduce the size of a panicking wasm module from 44k to 350 bytes.
2018-04-13 07:03:00 -07:00
..
dwarf std: Avoid panics in rust_eh_personality 2017-06-08 07:06:43 -07:00
Cargo.toml Inject the compiler_builtins crate whenever the core crate is injected 2018-04-07 09:24:35 +02:00
emcc.rs run rustfmt on libpanic_unwind 2016-10-18 23:09:47 +05:30
gcc.rs Bump the bootstrap compiler to 1.26.0 beta 2018-04-05 07:13:45 -07:00
lib.rs std: Minimize size of panicking on wasm 2018-04-13 07:03:00 -07:00
seh.rs Issue deprecation warnings for safe accesses to extern statics 2016-09-09 01:07:01 +03:00
seh64_gnu.rs Bump the bootstrap compiler to 1.26.0 beta 2018-04-05 07:13:45 -07:00
wasm32.rs std: Add a new wasm32-unknown-unknown target 2017-11-19 21:07:41 -08:00
windows.rs Bump the bootstrap compiler to 1.26.0 beta 2018-04-05 07:13:45 -07:00