aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit/qv4isel_masm.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-02-01 15:00:44 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-02-07 13:30:31 +0000
commitda35e3233335545125da51714298db6134cecb67 (patch)
treeea1275336a1b30752efe9da5ed548a3867d96aaa /src/qml/jit/qv4isel_masm.cpp
parenteea43b5cc5aa6fab0d7523f92a83a5f75849782d (diff)
Fix register argument passing in cross-compiled code when host == x86
Replace the use of host-dependent pre-processor macro with variable usage from the target platform template specializations. Task-number: QTBUG-58577 Change-Id: I7e5ca4b79c2238954d6be7ec6b110eadd78a104d Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jit/qv4isel_masm.cpp')
-rw-r--r--src/qml/jit/qv4isel_masm.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/qml/jit/qv4isel_masm.cpp b/src/qml/jit/qv4isel_masm.cpp
index 343062c1be..6769b22b77 100644
--- a/src/qml/jit/qv4isel_masm.cpp
+++ b/src/qml/jit/qv4isel_masm.cpp
@@ -114,11 +114,10 @@ void InstructionSelection<JITAssembler>::run(int functionIndex)
fpRegistersToSave.size());
_as->enterStandardStackFrame(regularRegistersToSave, fpRegistersToSave);
-#ifdef ARGUMENTS_IN_REGISTERS
- _as->move(_as->registerForArgument(0), JITTargetPlatform::EngineRegister);
-#else
- _as->loadPtr(addressForArgument(0), JITTargetPlatform::EngineRegister);
-#endif
+ if (JITTargetPlatform::RegisterArgumentCount > 0)
+ _as->move(_as->registerForArgument(0), JITTargetPlatform::EngineRegister);
+ else
+ _as->loadPtr(addressForArgument(0), JITTargetPlatform::EngineRegister);
_as->initializeLocalVariables();