Magnus Norddahl
|
fd955249fd
|
- avoid calling VMFillParams for simple stack frames
- split Setup into more functions
|
2019-04-15 14:37:24 +02:00 |
|
Magnus Norddahl
|
5181106264
|
- add dword store to memset code
|
2019-04-15 14:37:23 +02:00 |
|
Magnus Norddahl
|
18258c6cd5
|
- fix wrong offsets
|
2019-04-15 14:37:20 +02:00 |
|
Magnus Norddahl
|
c9a20d56d1
|
- generate a memset for the allocated stack memory because that's what the VM does
(this really shouldn't be done by the VM either - the compiler backend should clear its registers if it wants them to be zero!)
|
2019-04-15 14:37:19 +02:00 |
|
Magnus Norddahl
|
b4db05a7ff
|
- modify exception checks to jump ahead if the exception is to be thrown as it limits static misprediction
|
2019-04-15 14:37:11 +02:00 |
|
Magnus Norddahl
|
3f952e94cd
|
- fix the throw messages
|
2019-04-15 14:37:09 +02:00 |
|
Magnus Norddahl
|
43a6fc7227
|
- RUNTIME_FUNCTION only exists in 64-bit Windows
|
2019-04-15 14:37:02 +02:00 |
|
Magnus Norddahl
|
a54dbec73a
|
- fix wrong shift direction
|
2019-04-15 14:37:01 +02:00 |
|
Magnus Norddahl
|
bd1f529574
|
- build enough of the unwind opcodes for visual studio's debugger to produce the correct call stack
|
2019-04-15 14:36:59 +02:00 |
|
Magnus Norddahl
|
ea8725f03b
|
- construct our own runtime as the one provided by asmjit is too primitive
|
2019-04-15 14:36:58 +02:00 |
|
Magnus Norddahl
|
89bf3f0455
|
- add more names to asmjit objects
|
2019-04-15 14:36:56 +02:00 |
|
Magnus Norddahl
|
7e9e823674
|
- remove the frameX registers as they were just constant offsets to vmframe that could be merged into other constant offsets
|
2019-04-15 14:36:55 +02:00 |
|
Magnus Norddahl
|
475510c8ea
|
- give the remaining virtual registers names
|
2019-04-15 14:36:53 +02:00 |
|
Magnus Norddahl
|
68c05a424b
|
- give temp registers names and reuse the FString object for formatting names
|
2019-04-15 14:36:52 +02:00 |
|
Magnus Norddahl
|
77850c1ec5
|
- clean up assembly output slightly by only generating labels for the opcodes jumped to
|
2019-04-15 14:36:49 +02:00 |
|
Magnus Norddahl
|
7230974c1e
|
- remove the need to do any VARF_Native runtime checks by making native functions use the same calling convention as the script version
|
2019-04-15 14:36:43 +02:00 |
|
Magnus Norddahl
|
37dfbba232
|
- add -dumpjit command line parameter that dumps the JIT log for all functions to dumpjit.txt
# Conflicts:
# src/scripting/backend/vmbuilder.cpp
|
2019-04-15 14:36:39 +02:00 |
|
Magnus Norddahl
|
e7f0b7a0bd
|
- switch to using setjmp/longjmp for exception handling
|
2019-04-15 14:33:47 +02:00 |
|
Magnus Norddahl
|
b24ec1f9cc
|
- add disabled code that attempts to load registers directly from function arguments
|
2019-04-15 14:33:46 +02:00 |
|
Magnus Norddahl
|
6db9b1394c
|
- allocate VMFrame on the stack for simple functions with no strings
|
2019-04-15 14:33:43 +02:00 |
|
Magnus Norddahl
|
f0c059678b
|
- move VM creation into the jitted function. this will allow the jit compiler to skip vm frame creation when possible
|
2019-04-15 14:33:39 +02:00 |
|
Magnus Norddahl
|
19ae43be17
|
- removed CanJit as all opcodes are now implemented
- fix some store bugs
|
2019-04-15 14:33:32 +02:00 |
|
Magnus Norddahl
|
b3aeb37189
|
- fix 32 bit compile errors
|
2019-04-15 14:33:31 +02:00 |
|
Magnus Norddahl
|
e2dcca611c
|
- catch and rethrow c++ exceptions
|
2019-04-15 14:33:29 +02:00 |
|
Magnus Norddahl
|
22e60d74ad
|
- reuse temp virtual registers
|
2019-04-15 14:33:28 +02:00 |
|
Magnus Norddahl
|
80cda43370
|
- workaround bug in asmjit's register allocator for calls where the return register is already allocated in a physical register needed by one of the call arguments
|
2019-04-15 14:33:26 +02:00 |
|
Magnus Norddahl
|
bb3d0021d6
|
- switch ToMemAddress to imm_ptr where allowed
|
2019-04-15 14:33:25 +02:00 |
|
Magnus Norddahl
|
f90019561d
|
- switch from ASMJIT_ARCH_X64 to ASMJIT_ARCH_64BIT when checking if we need to use 64-bit pointers
|
2019-04-15 14:33:23 +02:00 |
|
Magnus Norddahl
|
e0f0511d29
|
- create a very basic OP_IJMP implementation
|
2019-04-15 14:33:22 +02:00 |
|
Magnus Norddahl
|
ff6317d6f4
|
- implement OP_TAIL and OP_TAIL_K
|
2019-04-15 14:33:19 +02:00 |
|
Magnus Norddahl
|
f1f2dca792
|
- implement string version of OP_CAST
|
2019-04-15 14:33:16 +02:00 |
|
Magnus Norddahl
|
0cf5f3704b
|
- implement string part of OP_CASTB
|
2019-04-15 14:33:14 +02:00 |
|
Magnus Norddahl
|
097de74510
|
- implement OP_LFP
|
2019-04-15 14:33:13 +02:00 |
|
Magnus Norddahl
|
7f996b5334
|
- read the parameters and registers directly off the stack
|
2019-04-15 14:33:11 +02:00 |
|
Jonathan Russell
|
ff421eda63
|
- changed a bunch of manual address additions in string opcodes to leas
|
2019-04-15 14:33:10 +02:00 |
|
Jonathan Russell
|
2dd2344e80
|
- implemented SS_R, LCS_R, and LKS_R
|
2019-04-15 14:33:02 +02:00 |
|
Magnus Norddahl
|
d74cc3e49e
|
- fixed OP_VTBL bug
|
2019-04-15 14:32:59 +02:00 |
|
Magnus Norddahl
|
378e58731a
|
- simplify some code
|
2019-04-15 14:32:56 +02:00 |
|
Jonathan Russell
|
b342dbc8db
|
- added string PARAM and RET
|
2019-04-15 14:32:54 +02:00 |
|
Magnus Norddahl
|
608f49a4a8
|
- fix clang errors and warnings
|
2019-04-15 14:32:53 +02:00 |
|
Jonathan Russell
|
06780bf228
|
- added OP_MOVES, OP_CONCAT, OP_LENS, OP_CMPS
|
2019-04-15 14:32:52 +02:00 |
|
Magnus Norddahl
|
a4b3536caf
|
- fix opcodes not being listed in jit debug assembly
|
2019-04-15 14:32:50 +02:00 |
|
Magnus Norddahl
|
ff8d21b2ec
|
- minor cleanups in header file
|
2019-04-15 14:32:47 +02:00 |
|
Magnus Norddahl
|
9d970a1acb
|
- split JitCompiler into multiple files
|
2019-04-15 14:32:46 +02:00 |
|
Jonathan Russell
|
8905701df7
|
- added strings and a few string opcodes
|
2019-04-15 14:32:44 +02:00 |
|
Magnus Norddahl
|
f3ca96373a
|
- fix CALL_K and disable CALL
|
2019-04-15 14:32:43 +02:00 |
|
Magnus Norddahl
|
56fe7af9d3
|
- implement OP_CALL and OP_CALL_K
|
2019-04-15 14:32:41 +02:00 |
|
Magnus Norddahl
|
60ee2c91a4
|
- fix misc integer opcodes and remove mov statements when they have no effect
|
2019-04-15 14:32:40 +02:00 |
|
Jonathan Russell
|
279e97fcc9
|
- changed the way EmitComparisonOpcode works to get rid of the temporary register that was used previously
|
2019-04-15 14:32:38 +02:00 |
|
Magnus Norddahl
|
c248fad17f
|
- implement PARAM and PARAMI
|
2019-04-15 14:32:37 +02:00 |
|