| Index: test/cctest/test-platform.cc
|
| diff --git a/test/cctest/test-platform.cc b/test/cctest/test-platform.cc
|
| index 0699d7a7cb6234754038535ac2ecb567c281c1c1..ac7febdbfad24b7adab3384ad1c05d80134aad77 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; \
|
|
|