Fix Frame::AlignSavedCalleeRegisterSlots
authorjacob.bramley <jacob.bramley@arm.com>
Tue, 29 Sep 2015 07:48:43 +0000 (00:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 29 Sep 2015 07:49:00 +0000 (07:49 +0000)
commit0a844bc0dc688097e0d895f21f0f70cb249290a7
treef14cb3ac225d5b4b94cbb8c4c35946653b547f98
parent93b2b2622ba80d93d036b66736da1346c6e0638c
Fix Frame::AlignSavedCalleeRegisterSlots

The return value is expected to be the number of padding slots added to the frame. However, the original logic would return -1 if padding was required, so insufficient stack space would be reserved.

This function now returns either 0 or 1, as the existing calling code expects.

BUG=

Review URL: https://codereview.chromium.org/1369303002

Cr-Commit-Position: refs/heads/master@{#30994}
src/compiler/frame.h