diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2014-06-12 19:43:56 +0400 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-07-07 16:35:33 +0200 |
commit | e1e551dabd4efc9cb486322098a072d4e337817c (patch) | |
tree | 85f83217b3aade6405f351bd7fbd1b7a354f20d6 /src/qml/jit/qv4targetplatform_p.h | |
parent | 5494dc7bff733b03eebf73b3da2cff4142c9fc5f (diff) |
Make sure JIT architectures lists are in sync
We have two lists: in qv4global_p.h and qv4targetplatform_p.h. This commit blacklists
OSes on x86 and x86_64 where JIT is not supported, improves support for FreeBSD and
adds cross-references between these two files.
Change-Id: Id3715a2ab717186e510a54e5a548dfa22120cd87
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/qml/jit/qv4targetplatform_p.h')
-rw-r--r-- | src/qml/jit/qv4targetplatform_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jit/qv4targetplatform_p.h b/src/qml/jit/qv4targetplatform_p.h index 95db247d0f..4b384d2fe9 100644 --- a/src/qml/jit/qv4targetplatform_p.h +++ b/src/qml/jit/qv4targetplatform_p.h @@ -68,6 +68,8 @@ namespace JIT { // calculating the list of callee saved registers in getCalleeSavedRegisters (which is used to // generate push/pop instructions in the prelude/postlude), we add ebx too. Then when synthesizing // a call, we add a load it right before emitting the call instruction. +// +// NOTE: When adding new architecture, do not forget to whitelist it in qv4global_p.h! class TargetPlatform { public: @@ -115,7 +117,7 @@ public: static void platformLeaveStandardStackFrame(JSC::MacroAssembler *as) { Q_UNUSED(as); } #if OS(WINDOWS) || OS(QNX) || \ - (OS(LINUX) && (defined(__PIC__) || defined(__PIE__))) + ((OS(LINUX) || OS(FREEBSD)) && (defined(__PIC__) || defined(__PIE__))) #define RESTORE_EBX_ON_CALL static JSC::MacroAssembler::Address ebxAddressOnStack() |