Index: test/cctest/test-platform.cc |
diff --git a/test/cctest/test-platform.cc b/test/cctest/test-platform.cc |
index eca0ab72a15a70b3702798c1c5d7823c06084adc..b9f8bafe4d4d4cf962e5e8d88567c27a70f4b5a4 100644 |
--- a/test/cctest/test-platform.cc |
+++ b/test/cctest/test-platform.cc |
@@ -53,6 +53,12 @@ using namespace ::v8::internal; |
do { \ |
ASM("str %%sp, %0" : "=g" (sp_addr)); \ |
} while (0) |
+#elif defined(__AARCH64EL__) |
+#define GET_STACK_POINTER() \ |
+ static int sp_addr = 0; \ |
+ do { \ |
+ ASM("mov x16, sp; str x16, %0" : "=g" (sp_addr)); \ |
+ } while (0) |
#elif defined(__MIPSEL__) |
#define GET_STACK_POINTER() \ |
static int sp_addr = 0; \ |