SkVM JIT: Handle functions that use more than 4k of stack on ARM64
Our SP adjustment was overflowing the 12-bit immediate in add/sub.
A better solution would be to construct the immediate using one or
two MOV instructions, but our assembler doesn't have support for
those, yet. For now, this (potentially slower) workaround fixes the
one case where we were failing.
Bug: skia:13552
Cq-Include-Trybots: luci.skia.skia.primary:Test-Android-Clang-Pixel4a-CPU-Snapdragon730G-arm64-Debug-All-Android_HWASAN,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All
Change-Id: I7d8fc6c1c8b0306369d2e7ad91a6f6ce8e195c52
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/561839
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
3 files changed