Commit Graph

470 Commits

Author SHA1 Message Date
Syrus
5ec1addae1 Use middleware reader 2020-06-08 13:30:38 -07:00
losfair
ab3580fb0f Fix memory trap. 2020-06-05 23:44:52 +08:00
losfair
aabadf9776 singlepass/codegen: Optimize need_check path. 2020-06-05 23:37:27 +08:00
losfair
f070858c8c singlepass/emitter: Emit lea with complex memory addressing modes. 2020-06-05 23:36:51 +08:00
losfair
0878147733 Add comment on emit_nop_n. 2020-06-03 00:52:16 +08:00
losfair
f025efcacc Add comments from review feedback. 2020-06-03 00:47:14 +08:00
losfair
fe2b979f0e singlepass: Align loop headers to 16 bytes. 2020-06-02 01:58:05 +08:00
Syrus
2c70ce79b0 Fixed singlepass 2020-05-29 19:51:26 -07:00
Syrus
abbd39c50b Refactor trampoline compilation 2020-05-29 19:37:03 -07:00
losfair
253f46c025 VMContext is I64. 2020-05-30 00:46:36 +08:00
losfair
2525a0a113 Upgrade dynasm to 0.6. 2020-05-30 00:45:00 +08:00
losfair
dffcc77f23 Fix lint error 2020-05-30 00:40:55 +08:00
losfair
510b56a31e Check memory offset calculation overflow. 2020-05-30 00:35:27 +08:00
losfair
83a50a560e Fix stack guard page skipping on singlepass. 2020-05-30 00:26:45 +08:00
Syrus
bf50ced1a3 Merge branch 'master' into singlepass-dynamicfunc 2020-05-27 17:43:06 -07:00
Syrus
17bca3cf8e Use minor versions instead of patch 2020-05-27 17:42:47 -07:00
losfair
f1883508e5 Dynamic function support for singlepass. 2020-05-27 23:56:39 +08:00
losfair
8ec1ecf50d Use a single location per function/trap combination as the condition trap destination. 2020-05-23 00:44:00 +08:00
Syrus
e92064b844 Improve frame info registration 2020-05-21 13:56:13 -07:00
losfair
32461a6938 Resolve review comments. 2020-05-21 00:53:41 +08:00
losfair
b34ef92b24 Only check memory bounds for dynamic memory plans. 2020-05-20 14:28:49 +08:00
losfair
13f842cd6a Fix param locations. 2020-05-20 14:07:48 +08:00
Syrus
12b353ca7d Merge branch 'master' into singlepass
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	lib/compiler/src/section.rs
2020-05-19 20:01:43 -07:00
Nick Lewycky
96baf9e5a1 Fix build of singlepass with make doc. 2020-05-19 11:23:37 -07:00
Syrus
93038b489b Fixed linting. Added cfg-if to the binary 2020-05-18 15:47:45 -07:00
Syrus
3050f1fa27 Fixed lint issues 2020-05-18 15:31:11 -07:00
Syrus
ace11e6476 Merge branch 'master' into singlepass
# Conflicts:
#	lib/compiler-singlepass/src/codegen_x64.rs
#	lib/compiler-singlepass/src/common_decl.rs
#	lib/compiler-singlepass/src/emitter_x64.rs
#	lib/compiler-singlepass/src/lib.rs
#	lib/compiler-singlepass/src/machine.rs
#	lib/engine-jit/src/engine.rs
#	lib/engine-jit/src/serialize.rs
2020-05-18 15:16:45 -07:00
losfair
7911986cbe Starting to port singlepass.
# Conflicts:
#	Cargo.lock
2020-05-18 14:55:55 -07:00
losfair
da7fa9e518 Merge remote-tracking branch 'origin/master' into singlepass 2020-05-19 00:53:37 +08:00
losfair
27d715e7b3 Fix call to null table entries. 2020-05-19 00:42:27 +08:00
Syrus
5dfa9faafb Improve compiler names for trampoline functions 2020-05-17 20:32:42 -07:00
losfair
a5f776fc2e Memory/table fixes. 2020-05-16 01:01:45 +08:00
Syrus
1c21e4f927 Make host trampolines work (PoC) 2020-05-13 20:53:54 -07:00
losfair
e2709b5abe Fix emit_cmp. 2020-05-14 02:47:14 +08:00
losfair
04b36ee5c6 Fix order of traps & division traps. 2020-05-14 02:01:15 +08:00
Syrus
01672995f9 Fixed singlepass 2020-05-11 10:52:47 -07:00
losfair
5c8f68d318 Merge remote-tracking branch 'origin/master' into singlepass 2020-05-11 02:59:50 +08:00
losfair
f944a3a111 Resolve review comments 2020-05-11 02:53:09 +08:00
losfair
65a71ac400 Fix import indirection. 2020-05-11 02:17:49 +08:00
losfair
8d0ed702ae Emit trap info & disable multivalue 2020-05-08 01:53:18 +08:00
losfair
c48ebdc8e1 Tables and memory grow/size 2020-05-08 01:23:45 +08:00
losfair
b8e7ad0c2e Proper loading from vmctx for memory & import call trampolines. 2020-05-07 00:55:38 +08:00
losfair
9e93a7988e VMOffsets and global.{get,set}. 2020-05-06 00:48:42 +08:00
Syrus
2240ccc622 Merge branch 'master' into singlepass
# Conflicts:
#	Cargo.lock
2020-05-04 20:40:50 -07:00
Syrus
01ed7d115c Merge branch 'master' into singlepass
# Conflicts:
#	lib/compiler-singlepass/src/compiler.rs
2020-05-04 15:11:07 -07:00
Syrus
0bd6a0dd6b Renamed FuncIndex to FunctionIndex 2020-05-04 13:39:12 -07:00
Syrus
2997be7d88 Renamed FuncType to FunctionType 2020-05-04 13:34:05 -07:00
losfair
b5c96bf426 Fix compilation error after merge 2020-05-04 23:25:25 +08:00
losfair
0ac04336c3 Merge remote-tracking branch 'origin/master' into singlepass 2020-05-04 23:22:05 +08:00
losfair
4d4881b71f Import and export trampolines, relocations, and wiring up everything. 2020-05-04 23:21:19 +08:00