Commit Graph

346 Commits

Author SHA1 Message Date
Emmanuel Vadot
cfdf5bd4eb FreeBSD: Fix compilation with -Werror (#302)
VirtMem_getTmpDir is not used when SHM_ANON is defined which is the case
on FreeBSD. This breaks compilation if -Werror is defined.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
2020-09-27 16:48:06 +02:00
kobalicek
b49d685cd9 Added github funding file 2020-09-22 20:16:28 +02:00
kobalicek
d7d3db1c4f Updated README.txt and removed a file that is not used anymore 2020-09-16 01:03:38 +02:00
kobalicek
5bc166efdb Updated README.md (Sponsors) 2020-09-12 19:55:16 +02:00
kobalicek
cd44f41d9b Preparation for AArch64 support 2020-09-12 18:19:04 +02:00
Max Bernstein
9cb2b298e1 Avoid an unused argument warning when compiling AsmJit (#301) 2020-09-12 12:01:35 +02:00
kobalicek
94061cd294 [Bug] Fixed ZoneVector reverse iterators and rbegin()/rend() - bug introduced by a previous commit 2020-09-12 09:32:38 +02:00
kobalicek
358d944bf2 Simplify ZoneVector iterators, use std::lower_bound() instead a custom implementation 2020-09-06 22:08:23 +02:00
kobalicek
bbe6b457a1 Fixed Solaris build (cannot use EAX, EDX, etc as these are macros) 2020-09-04 22:28:00 +02:00
kobalicek
d1b7543488 Added an initial cmake export support so users can find installed asmjit (Fixes #290) 2020-08-31 20:33:29 +02:00
Markus Schmidl
8f25116f2b [Bug] Extended Family Id calculation incorrect (fixes #298) 2020-08-19 15:57:19 +02:00
kobalicek
0646d0a48f [Bug] Added a possibility to order sections so the address table section can stay last even when user creates sections after it has been created (#293) 2020-08-09 13:14:38 +02:00
kobalicek
10be0c8f1d Added parameter pack to function arguments and return values 2020-08-09 13:14:12 +02:00
kobalicek
8474400e82 [Bug] Fixed RW info of string instructions, fixed lodsx() helper intructions in emitter 2020-07-10 23:21:36 +02:00
kobalicek
509866ef12 [Bug] Fixed invalid code generation related to lookup tables (Compiler) 2020-07-10 18:27:29 +02:00
kobalicek
c130455898 Added ASMJIT_NO_FOREIGN compile-time option to disable non-host architectures in the future 2020-07-07 10:27:46 +02:00
kobalicek
2de7e74244 Instruction validator now doesn't pass 'push/pop [mem]' having unknown size 2020-07-06 00:09:17 +02:00
kobalicek
ae4ad9075d Fixed signatures of recently added ud0 and ud1 instructions, added two-operand NOP (fixes #217) 2020-07-05 13:32:53 +02:00
kobalicek
75f2b69a26 Added new instructions and removed deprecated PCOMMIT 2020-07-05 02:21:24 +02:00
kobalicek
ba30278d66 Added support for more X86 extensions (AMX, AVX512_VP2INTERSECT, MCOMMIT, RDPRU, SERIALIZE, SNP, TSXLDTRK) 2020-07-01 01:07:37 +02:00
kobalicek
3535263419 Added ASMJIT_API to BaseEmitter::_emitOpArray() + other minor changes 2020-06-24 22:51:04 +02:00
kobalicek
5bd643058a Improved embedLabel() - now it's possible to specify the dataSize 2020-06-21 16:33:16 +02:00
kobalicek
87c566a32e [Bug] Fixed validation of memory operand with Label as a base address. 2020-06-16 10:46:13 +02:00
kobalicek
d4c54e099c [Bug] Fixed ASMJIT_CXX_MAKE_VER to not use PATCH, which doesn't exist anymore 2020-06-11 21:03:11 +02:00
kobalicek
4ea9f8ab5d Added a possibility to encode movsxd with 16-bit and 32-bit operands 2020-06-09 23:55:58 +02:00
kobalicek
cab5795858 Revert the last change 2020-06-06 23:50:12 +02:00
kobalicek
bd4f7c67e7 Improved x86::Compiler to use x86::Builder::finalize() instead using its own. 2020-06-06 22:36:31 +02:00
kobalicek
168f2c17bf Don't mark BaseBuilder::dump() as ASMJIT_API 2020-06-06 22:32:56 +02:00
kobalicek
0e04695f64 Fixed broken CI 2020-06-01 12:18:01 +02:00
kobalicek
b73830c291 Fixed some mistakes introduced in the previous commit 2020-06-01 10:04:18 +02:00
kobalicek
f986f7fc44 AsmJit cleanup and refactoring 2020-05-31 23:39:13 +02:00
kobalicek
e78bba83da Added a support for indirect jumps within a function (Compiler) (#286) 2020-05-09 01:00:18 +02:00
kobalicek
80645e66a8 Improved natvis support 2020-05-03 22:38:56 +02:00
kobalicek
80098456b6 Improved CI and enhanced project cosmetics (proper license header and include guards) 2020-05-03 20:06:27 +02:00
kobalicek
39f19e1a8f [Bug] Fixed #285 and #241 2020-05-02 17:56:22 +02:00
kobalicek
fc7eed5304 Build improvements (improved CMakeLists.txt, added proper support for testing) 2020-05-01 12:50:08 +02:00
kobalicek
9057aa30b6 Improved AsmJit public API to not depend on <windows.h> header 2020-04-29 20:19:17 +02:00
kobalicek
13367b59c2 Removed union{} from asmjit::Operand so it never causes problems with constexpr 2020-04-28 22:23:26 +02:00
kobalicek
d241dfb364 Fixed some compile-time warnings 2020-04-14 22:37:16 +02:00
kobalicek
bbc31a91ea [Bug] Fixed #281 2020-04-13 22:24:06 +02:00
kobalicek
304bf43a23 Fixed few warnings 2020-04-13 21:45:55 +02:00
kobalicek
1491d5f2ea [Bug] Fixed encoding of special case 'test al, XXX' being wrongly used with 'ah' operand 2020-03-16 15:17:02 +01:00
kobalicek
0b2e81ca74 [Bug] Fixed wait/fwait instruction (generate 9B instead of invalid DB) 2020-03-16 12:39:42 +01:00
kobalicek
7687cc6395 [Bug] Fixed 'lock xadd [mem, reg]' instruction 2020-03-06 21:06:09 +01:00
kobalicek
0072c202db Added support for BND/REPNE call/jmp/jcc/ret 2020-02-23 22:51:53 +01:00
kobalicek
967dde0fc4 Use relative displacement in mov [abs], ax if base-address is known and the displacement encodable (#275) 2020-02-23 00:05:36 +01:00
kobalicek
8e1eb4f5dc Added begin()/end() + operator[] to CodeBuffer 2020-02-14 00:09:11 +01:00
kobalicek
0ee535519c Added bswap r16 instruction, which has undefined behavior, but is encodable 2020-02-08 10:14:56 +01:00
kobalicek
c92e495b63 Added .editorconfig 2020-02-08 10:13:44 +01:00
kobalicek
5437d20dbb Added support for MAP_JIT (OSX, IOS), build system and CI improvements 2020-01-26 01:58:00 +01:00