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/3rdparty/masm/assembler/MacroAssemblerX86.h | |
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/3rdparty/masm/assembler/MacroAssemblerX86.h')
-rw-r--r-- | src/3rdparty/masm/assembler/MacroAssemblerX86.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/masm/assembler/MacroAssemblerX86.h b/src/3rdparty/masm/assembler/MacroAssemblerX86.h index 742a4b48f7..280cf427fc 100644 --- a/src/3rdparty/masm/assembler/MacroAssemblerX86.h +++ b/src/3rdparty/masm/assembler/MacroAssemblerX86.h @@ -35,6 +35,7 @@ namespace JSC { class MacroAssemblerX86 : public MacroAssemblerX86Common { public: static const Scale ScalePtr = TimesFour; + static const int PointerSize = 4; using MacroAssemblerX86Common::add32; using MacroAssemblerX86Common::and32; |