comparison graal/com.oracle.graal.lir.aarch64/src/com/oracle/graal/lir/aarch64/AArch64FrameMap.java @ 23392:51f603c0ea9b

[AArch64] Fix frameSetupSize as returnAddressSize returns 0.
author twisti
date Fri, 05 Feb 2016 12:44:11 -0800
parents 827874f0eba1
children df1da4e38b16
comparison
equal deleted inserted replaced
23391:814e83e82d16 23392:51f603c0ea9b
89 return frameSize() + frameSetupSize(); 89 return frameSize() + frameSetupSize();
90 } 90 }
91 91
92 private int frameSetupSize() { 92 private int frameSetupSize() {
93 // Size of return address and frame pointer that are saved in function prologue 93 // Size of return address and frame pointer that are saved in function prologue
94 return returnAddressSize() + getTarget().arch.getWordSize(); 94 return getTarget().arch.getWordSize() * 2;
95 } 95 }
96 96
97 @Override 97 @Override
98 public int currentFrameSize() { 98 public int currentFrameSize() {
99 return alignFrameSize(spillSize + outgoingSize - frameSetupSize()); 99 return alignFrameSize(spillSize + outgoingSize - frameSetupSize());