diff options
author | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2015-12-21 09:17:29 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-01-16 10:33:06 +0000 |
commit | 9e980750c6647ffcf2cb95e95e63fa8335924866 (patch) | |
tree | 72f5519a6c871028e0461535a1993996b5eb1422 /src/3rdparty/masm/stubs/ExecutableAllocator.h | |
parent | f2dc1ef7390c4dd05a54958da1942399e26e3fde (diff) |
WinRT: Enable JIT for x86/x64 target platforms
This only works for Windows 10 and later.
Setting the "Code Generation" capability in the manifest, WinRT
applications can use JIT for Windows 10 Desktop. Update the Allocator
in regards to this and also update the VirtualProtectFromApp section.
When the engine gets initialized, check for marking an area as
executable. If it fails, fallback to interpreter mode.
This does not affect ARM platforms, as we do not have calling
conventions yet. It is implicitly disabled as V4_ENABLE_JIT is not
defined.
[ChangeLog][WinRT] Enable JIT for x86/x64 targets on Windows 10 and
later.
Change-Id: Ie05add5263f71387c5ce98456b9bec86c6c07ceb
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/3rdparty/masm/stubs/ExecutableAllocator.h')
-rw-r--r-- | src/3rdparty/masm/stubs/ExecutableAllocator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/3rdparty/masm/stubs/ExecutableAllocator.h b/src/3rdparty/masm/stubs/ExecutableAllocator.h index 578a944bf9..1ddad01de9 100644 --- a/src/3rdparty/masm/stubs/ExecutableAllocator.h +++ b/src/3rdparty/masm/stubs/ExecutableAllocator.h @@ -33,6 +33,11 @@ #ifndef MASM_EXECUTABLEALLOCATOR_H #define MASM_EXECUTABLEALLOCATOR_H +// Defined via mkspec +#if _MSC_VER >= 1900 +#include <windows.h> +#endif + #include <RefPtr.h> #include <RefCounted.h> #include <wtf/PageBlock.h> |