1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-07-26 21:02:01 +00:00

Merge branch 'master' into feature/dynasm-backend

This commit is contained in:
Brandon Fish
2019-03-12 20:58:22 -05:00
358 changed files with 13992 additions and 1805 deletions
.appveyor.yml
.circleci
.github/ISSUE_TEMPLATE
.gitignoreARCHITECTURE.mdATTRIBUTIONS.mdCargo.lockCargo.tomlLICENSEMakefileREADME.mdbors.toml
examples/nginx
install.sh
integration_tests
lib
README.md
clif-backend
emscripten
Cargo.toml
emtests
FS_exports.wasmclock_gettime.wasmclosebitcasts.wasmdyncall.wasmdyncall_specific.wasmemscripten_get_compiler_setting.wasmenv.wasmgetValue_setValue.wasmlegacy_exported_runtime_numbers.wasmlocaltime.wasmmodularize_closure_pre.wasmprintf.wasmputs.wasmstackAlloc.wasmstack_overflow.wasmtest_addr_of_stacked.wasmtest_alloca.wasmtest_alloca_stack.wasmtest_array2.wasmtest_array2b.wasmtest_atoX.wasmtest_atomic.wasmtest_atomic_cxx.wasmtest_bsearch.wasmtest_ccall.wasmtest_complex.wasmtest_demangle_stacks.wasmtest_demangle_stacks_noassert.wasmtest_dlmalloc_partial_2.wasmtest_double_varargs.wasmtest_em_asm.wasmtest_em_asm_2.wasmtest_em_asm_parameter_pack.wasmtest_em_asm_signatures.wasmtest_em_asm_unicode.wasmtest_em_asm_unused_arguments.wasmtest_em_js.wasmtest_emscripten_api.wasmtest_emulate_function_pointer_casts.wasmtest_erf.wasmtest_errar.wasmtest_exceptions_2.wasmtest_exceptions_convert.wasmtest_exceptions_destroy_virtual.wasmtest_exceptions_libcxx.wasmtest_exceptions_multi.wasmtest_exceptions_multiple_inherit.wasmtest_exceptions_multiple_inherit_rethrow.wasmtest_exceptions_primary.wasmtest_exceptions_refcount.wasmtest_exceptions_resume.wasmtest_exceptions_rethrow.wasmtest_exceptions_simplify_cfg.wasmtest_exceptions_std.wasmtest_exceptions_virtual_inheritance.wasmtest_exceptions_white_list.wasmtest_execvp.ctest_execvp.outtest_execvp.wasmtest_execvp_windows.ctest_execvp_windows.wasmtest_fast_math.wasmtest_flexarray_struct.wasmtest_float32_precise.wasmtest_float_builtins.wasmtest_frexp.wasmtest_funcptr.wasmtest_funcptr_namecollide.wasmtest_funcptrfunc.wasmtest_funcs.wasmtest_functionpointer_libfunc_varargs.wasmtest_fwrite_0.wasmtest_getcwd.ctest_getcwd.outtest_getcwd.wasmtest_getgep.wasmtest_getloadavg.wasmtest_getopt.wasmtest_getopt_long.wasmtest_globaldoubles.wasmtest_globals.wasmtest_gmtime.wasmtest_hello_world.wasmtest_i16_emcc_intrinsic.wasmtest_i32_mul_precise.wasmtest_i64.wasmtest_i64_4.wasmtest_i64_7z.wasmtest_i64_cmp2.wasmtest_i64_i16.wasmtest_i64_llabs.wasmtest_i64_precise.wasmtest_i64_precise_needed.wasmtest_i64_precise_unneeded.wasmtest_i64_qdouble.wasmtest_i64_umul.wasmtest_i64_varargs.wasmtest_i64_zextneg.wasmtest_if.wasmtest_if_else.wasmtest_indirectbr.wasmtest_indirectbr_many.wasmtest_intentional_fault.wasmtest_isnan.wasmtest_libcextra.wasmtest_libgen.wasmtest_literal_negative_zero.wasmtest_llrint.wasmtest_llvm_fabs.wasmtest_llvm_intrinsics.wasmtest_llvmswitch.wasmtest_longjmp.wasmtest_longjmp2.wasmtest_longjmp3.wasmtest_longjmp4.wasmtest_longjmp_exc.wasmtest_longjmp_funcptr.wasmtest_longjmp_repeat.wasmtest_longjmp_stacked.wasmtest_longjmp_throw.wasmtest_longjmp_unwind.wasmtest_loop.wasmtest_lower_intrinsics.wasmtest_main_module_static_align.wasmtest_main_thread_async_em_asm.wasmtest_mainenv.wasmtest_mathfuncptr.wasmtest_memcpy2.wasmtest_memcpy3.wasmtest_memcpy_memcmp.wasmtest_memmove.wasmtest_memmove2.wasmtest_memmove3.wasmtest_memorygrowth.wasmtest_memorygrowth_2.wasmtest_memorygrowth_3.wasmtest_memorygrowth_wasm_mem_max.wasmtest_memset.wasmtest_mmap.wasmtest_negative_zero.wasmtest_nested_struct_varargs.wasmtest_nl_types.wasmtest_perrar.wasmtest_phiundef.wasmtest_pipe.ctest_pipe.outtest_pipe.wasmtest_poll.wasmtest_posixtime.wasmtest_printf_2.wasmtest_printf_more.wasmtest_regex.wasmtest_relocatable_void_function.wasmtest_rounding.wasmtest_runtime_stacksave.wasmtest_set_align.wasmtest_siglongjmp.wasmtest_sintvars.wasmtest_sizeof.wasmtest_sscanf.wasmtest_sscanf_3.wasmtest_sscanf_4.wasmtest_sscanf_5.wasmtest_sscanf_6.wasmtest_sscanf_caps.wasmtest_sscanf_float.wasmtest_sscanf_hex.wasmtest_sscanf_n.wasmtest_sscanf_other_whitespace.wasmtest_sscanf_skip.wasmtest_sscanf_whitespace.wasmtest_stack_align.wasmtest_stack_varargs.wasmtest_stack_void.wasmtest_statvfs.wasmtest_std_cout_new.wasmtest_strcasecmp.wasmtest_strcmp_uni.wasmtest_strftime.wasmtest_strings.wasmtest_strndup.wasmtest_strptime_days.wasmtest_strptime_reentrant.wasmtest_strstr.wasmtest_strtod.wasmtest_strtok.wasmtest_strtol_bin.wasmtest_strtol_dec.wasmtest_strtol_hex.wasmtest_strtol_oct.wasmtest_strtold.wasmtest_strtoll_bin.wasmtest_strtoll_dec.wasmtest_strtoll_hex.wasmtest_strtoll_oct.wasmtest_struct_varargs.wasmtest_time_c.wasmtest_tracing.wasmtest_transtrcase.wasmtest_trickystring.wasmtest_uname.wasmtest_unary_literal.wasmtest_utf.wasmtest_varargs.wasmtest_varargs_multi.wasmtest_vprintf.wasmtest_vsnprintf.wasmtest_wprintf.wasmtest_write_stdout_fileno.wasmtest_zero_multiplication.wasmtest_zerodiv.wasm
src
tests
llvm-backend
runtime-c-api
runtime-core
runtime
spectests
win-exception-handler
src

@@ -53,10 +53,7 @@ impl AnyfuncTable {
desc: TableDescriptor,
local: &mut vm::LocalTable,
) -> Result<Box<Self>, CreationError> {
let initial_table_backing_len = match desc.maximum {
Some(max) => max,
None => desc.minimum,
} as usize;
let initial_table_backing_len = desc.minimum as usize;
let mut storage = Box::new(AnyfuncTable {
backing: vec![vm::Anyfunc::null(); initial_table_backing_len],