Chromium Code Reviews| Index: test/cctest/test-platform.cc |
| diff --git a/test/cctest/test-platform.cc b/test/cctest/test-platform.cc |
| index 0699d7a7cb6234754038535ac2ecb567c281c1c1..1edb5ed3442e55e2d2ceeba0f71056d1ecb93895 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 sp, x0; str x0, %0" : "=g" (sp_addr) : : "x0"); \ |
|
Rodolph Perfetta (ARM)
2014/02/07 17:53:11
You are moving x0 into sp, not what you meant.
As
rmcilroy
2014/02/07 19:02:09
Done, thanks. The assembler didn't know what ip0
|
| + } while (0) |
| #elif defined(__MIPSEL__) |
| #define GET_STACK_POINTER() \ |
| static int sp_addr = 0; \ |