Volodymyr Shymanskyy
f8ba641a71
Structured tracing ️support 🎉
3 years ago
Volodymyr Shymanskyy
9ec20457b0
Fix build
3 years ago
Tyler Zhang
d62d408b4f
Backtraces in Wasm3 ( #195 )
...
* Add API to report backtraces when traps are encountered during
execution
* Add backtrace formatting
* Fix memory issue with not resetting code mapping page when code page is released
* Halve memory usage for code mapping pages
* Move backtrace functionality to behind a compile-time flag
* Reduce backtrace size in main
* Fix segfault in constant initialization
Co-authored-by: Volodymyr Shymanskyy <vshymanskyi@gmail.com>
3 years ago
Volodymyr Shymanskyy
ccab6a438b
Enable recursive calls: calling exported function from an imported.
3 years ago
Alex Beregszaszi
348031ec9d
Remove memory leak caused by dangling retFuncTypes in M3Environment ( #204 )
3 years ago
Anthony Drendel
b3088901e1
Support exported functions with the same name ( #199 )
...
* Support exported functions with the same name
* Fix error for shadowing local variable
* Replace function->name with GetFunctionName()
* Replace another direct i-var access of func->name
3 years ago
Volodymyr Shymanskyy
d71a204e55
Basic stack access API. Closes #41
3 years ago
Volodymyr Shymanskyy
0b09a792d6
Initial Cosmopolitan/Actually Portable Executable support
...
αcτµαlly pδrταblε εxεcµταblε ;)
4 years ago
Volodymyr Shymanskyy
aec7a82fc6
Cleanup
4 years ago
Volodymyr Shymanskyy
66094b585d
Use userdata for WASI context. Test Simple WASI on multiple platforms.
...
#189
4 years ago
Volodymyr Shymanskyy
7afc674875
Fix #143
4 years ago
Volodymyr Shymanskyy
e9b8cfd70b
Reuse stack from existing runtime. #186
4 years ago
Volodymyr Shymanskyy
8efc27f86f
Optimize simple FuncTypes
4 years ago
Volodymyr Shymanskyy
64b9856ea5
Multi-value module parsing. #23
4 years ago
Volodymyr Shymanskyy
2528c1fb73
Add userdata to the runtime. Close #182
4 years ago
Volodymyr Shymanskyy
640bf0cc26
Cleanup
4 years ago
Volodymyr Shymanskyy
4ee513ee73
Revert intValue
4 years ago
Volodymyr Shymanskyy
bdc5082755
d_m3HasFloat - allow disabling float ops
4 years ago
Volodymyr Shymanskyy
5d4414ebe5
Cleanup
4 years ago
Volodymyr Shymanskyy
2113505d5a
Logging improvements
4 years ago
Volodymyr Shymanskyy
020c569745
Fix indents
4 years ago
Steven Massey
8bbc35b25c
cleanup
4 years ago
Steven Massey
d7bda56855
code page tests
4 years ago
Steven Massey
713e1ae069
code page reference counting work
4 years ago
Steven Massey
80505a25b8
Merge branch 'master' of https://github.com/wasm3/wasm3
...
# Conflicts:
# source/m3_env.c
4 years ago
Steven Massey
42b86e81ce
pool free pages in M3Environment
4 years ago
Steven Massey
449bde2809
codepage ref counting work
4 years ago
Steven Massey
c45fecf107
consolidated FuncType's in M3Environment; simplified op_CallIndirect
4 years ago
Steven Massey
8463ca3a65
eliminated d_m3MaxNumFunctionArgs
4 years ago
Steven Massey
ad98bbd746
refactoring / cleanup
4 years ago
Steven Massey
ba4bbffbc5
issue #5 complete
4 years ago
Steven Massey
fb70fab0f9
issue #5 work
4 years ago
Steven Massey
f8329bb3bd
issue #5 prep
4 years ago
Steven Massey
c7d4450520
changed extern "C" wrapper to a define to avoid screwing with IDE auto-indent
4 years ago
Volodymyr Shymanskyy
e50d466ce7
Make headers compatible with C++
5 years ago
Volodymyr Shymanskyy
17d3e44d7d
Boost ver
5 years ago
Volodymyr Shymanskyy
49f9101702
Add memoryLimit, update examples. #57
5 years ago
Joel Martin
1f6bfd3a0c
wasi/main: return exit code on wasi proc_exit call ( #59 )
...
When running a file (non-REPL mode), if the proc_exit call is called,
then terminate with the exit code. If in REPL mode then print
a message with the exit code to indicate the wasi call was made and
continue.
5 years ago
Robin van Emden
b1462d450c
Minor changes to m3_GetMemory ( #46 )
...
Deleted additional m3_GetMemory() declaration in m3_env.h as there it is also declared (slightly differently) in m3.h
Changed function definition in m3_env.c to conform to the m3.h function declaration.
5 years ago
Steven Massey
94ef35d843
added m3_GetMemory API
5 years ago
Volodymyr Shymanskyy
bbbda3519b
Check stack depending on function
5 years ago
Volodymyr Shymanskyy
4790280bee
Fix formatting
5 years ago
Volodymyr Shymanskyy
d8bc5e35e9
Refactor d_m3LogOutput, d_m3VerboseLogs
5 years ago
Volodymyr Shymanskyy
f0e89daa84
Switch to working with M3MemoryHeader directly. Related to #24
5 years ago
Volodymyr Shymanskyy
646eeaa53e
Cleanup
5 years ago
Steven Massey
e7c04280b8
moved M3Compilation struct in M3Runtime; eliminates repeated malloc/free cycles of M3Compilation
5 years ago
Steven Massey
61b7e0316d
cleanup
5 years ago
Steven Massey
bf13d5905e
cleanup
5 years ago
Steven Massey
182fd7303a
LinkFunction now searches for multiple cases; enabling WAPM packages.
...
added d_m3VerboseErrorMessages
5 years ago
Steven Massey
b4af46d9fb
implemented WASI args
5 years ago