Commit Graph
158 Commits
Author SHA1 Message Date
Karl FesselandGitHub 37aae1bc49 make include headers follow strict protoype rule (#331) 2020-08-04 19:53:34 +08:00
Xu JunandGitHub 2db335c6d4 add spawn thread API and sample (#333) 2020-08-04 17:40:45 +08:00
Xu JunandGitHub 29e45e1527 implement atomic opcode in AOT/JIT (#329) 2020-08-03 11:30:26 +08:00
dpinthinkerandGitHub cc05f8fb1c Use quicksort to sort native_symbols (#324) 2020-07-31 20:54:03 +08:00
Wenyong HuangandGitHub 93ca9d8c62 Disable memory shrink opt when memory.size opcode is found (#323) 2020-07-30 10:18:55 +08:00
Wenyong HuangandGitHub 056b824ac4 Fix fast interpreter i64 shift issue for non-x86 arch (#319) 2020-07-28 13:46:37 +08:00
lum1n0usandGitHub 08d01b65c5 Eable post-MVP feature wasm-c-api (#315) 2020-07-23 16:54:13 +08:00
Xu JunandGitHub 32b2943369 enable pthread for AoT && update AOT current version to 2 (#311) 2020-07-16 20:35:04 +08:00
dpinthinkerandGitHub 49555f48b3 remove duplicated method resolve_main_func (#305) 2020-07-10 16:47:22 +08:00
Jämes MénétreyandGitHub 0472ddc0d0 Change whence_t constant values to match pre-existing agreed-upon values. (#307) 2020-07-10 16:41:08 +08:00
WeiningandGitHub 1a85051415 Implement multi-value feature and import binarydump tool (#308) 2020-07-10 16:29:15 +08:00
wenyonghandGitHub 2fc7230009 Enhance the native stack overflow check (#302) 2020-07-07 09:56:46 +08:00
wenyonghandGitHub ee3d448eb6 Fix aot issue in 32-bit platform (#297)
fix aot 32-bit boundary check issue
2020-07-01 12:22:13 +08:00
wenyonghandGitHub 847dccaa34 Refine get/set global opcodes for interpreter (#294) 2020-06-29 14:17:27 +08:00
wenyonghandGitHub ee315e4049 Implement memory access bound check with hardware trap for 64-bit platforms (#293)
Also implement native stack overflow check with hardware trap for 64-bit platforms
Refine classic interpreter and fast interpreter to improve performance
Update document
2020-06-28 15:41:25 +08:00
Josh Triplett 548926ab1a Rename "master" branch to "main"
Update all links accordingly. Also update links to other repositories
whose branches have renamed.

The references to repositories whose branches have not renamed should be
referencing specific commits anyway, so reference those specific commits
by hash.
2020-06-27 02:39:47 -07:00
Xu JunandGitHub e3c04e6684 support pthread_key related APIs (#288) 2020-06-18 11:37:31 +08:00
Xu JunandGitHub acb68c64c2 update doc for multi-thread (#284) 2020-06-16 15:01:35 +08:00
Xu JunandGitHub d98ab63e5c Enable shared memory && add pthread support (#282) 2020-06-15 19:04:04 +08:00
f4d4d69736 wasm_export.h Function Description & SGX SDK Include path (#279)
* Missing SGX SDK Include fixed

* Update shared_platform.cmake

* CMakeFile remove stdlib from untrusted part

* Added two times in function description zero as possible return value

* Update shared_platform.cmake

Co-authored-by: Joshua Heinemann <heineman@ibr.cs.tu-bs.de>
Co-authored-by: wenyongh <wenyong.huang@intel.com>
2020-06-12 18:47:06 +08:00
wenyonghandGitHub 10980a1dd7 Fix app manager parse applet name issue (#280) 2020-06-11 14:19:55 +08:00
wenyonghandGitHub 7a287fd1a9 Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
wenyonghandGitHub 752826a667 Implement multi-module feature and bulk-memory feature (#271)
Refine wasm loader and aot loader
Fix potential issue of os_mmap/os_munmap
Update document
2020-06-02 14:53:06 +08:00
e81f72d41f MacOs: fix wamrc Error invaid llvm binary bin_type (#269)
* add darwin support for wamr-compiler compiling

* add darwin support for wamr-compiler

* Update CMakeLists.txt

* MacOs: fix wamrc Error invaid llvm binary bin_type

Co-authored-by: wenyongh <wenyong.huang@intel.com>
2020-05-31 12:40:12 +08:00
wenyonghandGitHub a0bb761beb Update API comments, refine footprint of wasm loader (#256)
and fix issues of get native stack boundary
2020-05-15 17:44:36 +08:00
wenyonghandGitHub 7abd1ca813 Change llvm void pointer to i8 pointer to avoid assert failed (#250) 2020-05-08 13:40:04 +08:00
wenyonghandGitHub 44ccfd20ad Fix issue of condition settings of app boundary check (#249) 2020-05-08 13:34:07 +08:00
wenyonghandGitHub e8e45aeecd Refine aot stack overflow check and enhance wasm loader malformed checks (#248)
And separate global data from wasm memory instance
2020-05-08 12:38:59 +08:00
wenyonghandGitHub d381b0fdec Implement post-MVP features and native stack overflow check (#243)
Implement native thread stack overflow check
Implement post-MVP: Non-trapping float-to-int conversions
Implement post-MVP: Sign-extension operators
Enhance WASM loader checks
2020-04-30 17:52:11 +08:00
Lei ZhangandGitHub ab4f0c5419 bugfix: check type for opcode block, loop and if (#238) (#239)
Otherwise a block opcode with invalid type signature could crash the
wasm loader.
2020-04-25 11:48:24 +08:00
wenyonghandGitHub f72e848114 Refine aot memory boundary check, add more llvm passes (#236)
Fix issue of some error info mismatch with spec cases
2020-04-22 18:43:50 +08:00
wenyonghandGitHub b40e79c160 Make heap and linear memory contiguous to refine compilation time and footprint (#233)
Use FastISel for JIT mode
Use united aot version in aot file and aot runtime
Disable check signature failed warning for wamrc
Fix fast interpreter x86_32 float issue
Remove unused empty lvgl folder
2020-04-13 10:49:40 +08:00
Xu JunandGitHub 5e196253f6 Fix function type not set issue of aot_call_indirect (#229)
Add registration of libc-wasi to 'wasi_snapshot_preview1' to support cargo-wasi
change zephyr build method from cmake to west
fix problem when preserve space for local vars
fix wasi authority problem
2020-04-07 11:04:46 +08:00
WeiningandGitHub 374e687938 Refine wgl native functions call (#225) 2020-04-02 17:58:46 +08:00
WeiningandGitHub c6fc12b7b6 Add xtensa AOT support and fix build issue of alios (#223)
* Clean compiling warnings of zephyr samples

* Support xtensa AOT and fix build issue of alios
2020-04-01 18:38:42 +08:00
wenyonghandGitHub c1a0e6d877 Implement register/call native API with raw (unextracted) arguments (#222) 2020-04-01 12:52:08 +08:00
Xu JunandGitHub d9890d2ccb re-org ems mem allocator source codes, update prot_wamr.md (#217) 2020-03-30 11:06:39 +08:00
75009a2421 fix sgx compile and link error, preserve space for locals before set/tee opcode (#214)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2020-03-27 09:28:30 +08:00
wenyonghandGitHub 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211)
and refine aot call indirect op
2020-03-24 19:04:29 +08:00
Shi LeiandGitHub 67495919b0 Add a basic sample to show how native runtime invokes wasm apps in WAMR and how wasm apps invoke native functions. (#207)
* Add printingAdd print time for wamrc, fix posix mmap bug time for wamrc, fixed a posix mmap bug.

Change-Id: Ib6517b8a69cf022a1a6a74efa1f98155aec143bc

* Add a basic sample to show how native runtime invokes wasm app in WAMR, and how wasm app invokes native functions.

Change-Id: I700ae413ad5e9ea04540d5187952305e1ee92d73
2020-03-20 16:39:13 +08:00
Shi LeiandGitHub b6cae54b54 Add printingAdd print time for wamrc, fix posix mmap bug time for wamrc, fixed a posix mmap bug. (#206)
Change-Id: Ib6517b8a69cf022a1a6a74efa1f98155aec143bc
2020-03-20 16:06:40 +08:00
yzha107andGitHub e07381c4a8 Fix a WASM_OP_SET_LOCAL type check issue (#205) 2020-03-20 13:28:18 +08:00
wenyonghandGitHub c6042c45a3 Sync with internal feature (#204) 2020-03-18 17:49:23 +08:00
6523868a9a fix aot load import global bug && enhance dead code processing (#203)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2020-03-17 17:51:51 +08:00
f1a0e75ab7 re-org platform APIs, simplify porting process (#201)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2020-03-16 16:43:57 +08:00
wenyonghandGitHub 751a3b5865 Enhance interpreter performance (#196) 2020-03-12 08:59:02 +08:00
WeiningandGitHub aa42335a4e minor changes (#195) 2020-03-11 13:49:52 +08:00
wenyonghandGitHub 0fdd49ea31 Re-org memory allocation interfaces, add --stack-size and --heap-size option (#193) 2020-03-10 19:54:44 +08:00
Xu JunandGitHub 381859d530 fix unaligned 64bit access on MCU (#192) 2020-03-10 11:48:28 +08:00
wenyonghandGitHub 180ee4c78a Add realloc func argument for memory allocator (#191) 2020-03-08 21:18:18 +08:00