Skip to content

Commit

Permalink
Ensure arm64 frame sizes are 8 (mod 16)
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
nigeltao committed Jan 16, 2022
1 parent 544b418 commit fa58105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encode_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// The unusual register allocation of local variables, such as R10 for the
// source pointer, matches the allocation used at the call site in encodeBlock,
// which makes it easier to manually inline this function.
TEXT ·emitLiteral(SB), NOSPLIT, $32-56
TEXT ·emitLiteral(SB), NOSPLIT, $40-56
MOVD dst_base+0(FP), R8
MOVD lit_base+24(FP), R10
MOVD lit_len+32(FP), R3
Expand Down Expand Up @@ -261,7 +261,7 @@ extendMatchEnd:
// "var table [maxTableSize]uint16" takes up 32768 bytes of stack space. An
// extra 64 bytes, to call other functions, and an extra 64 bytes, to spill
// local variables (registers) during calls gives 32768 + 64 + 64 = 32896.
TEXT ·encodeBlock(SB), 0, $32896-56
TEXT ·encodeBlock(SB), 0, $32904-56
MOVD dst_base+0(FP), R8
MOVD src_base+24(FP), R7
MOVD src_len+32(FP), R14
Expand Down

0 comments on commit fa58105

Please sign in to comment.