diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2017-03-29 09:22:21 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2017-03-29 15:32:02 +0000 |
commit | 4a6e072d6c7591ee58b56e3d6a2128e814c94848 (patch) | |
tree | 0bad6e62e51d03ddf9591b34a46ad9fdd14bdf8c /src/qml | |
parent | ea99d624558437db64e33df476cf7d43bb5c0099 (diff) |
Fix stack pointer arithmetic when cross-compiling
Replace the use of size(void*) with target assembler specific values for
the pointer size, when calculating offsets into the stack for
poke/peek/push/pop and placing arguments onto the stack before calling
functions.
Change-Id: I3aff540f0083967e75b61e0c29dbeb4d9ecfa433
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/jit/qv4assembler_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jit/qv4assembler_p.h b/src/qml/jit/qv4assembler_p.h index 81b164beb2..3e3aab9452 100644 --- a/src/qml/jit/qv4assembler_p.h +++ b/src/qml/jit/qv4assembler_p.h @@ -1299,7 +1299,7 @@ public: template <int ArgumentIndex, typename Parameter> struct SizeOnStack { - enum { Size = Select<ArgumentIndex >= RegisterArgumentCount, sizeof(void*), 0>::Chosen }; + enum { Size = Select<ArgumentIndex >= RegisterArgumentCount, RegisterSize, 0>::Chosen }; }; template <int ArgumentIndex> |