Index: test/cctest/test-platform.cc |
diff --git a/test/cctest/test-platform.cc b/test/cctest/test-platform.cc |
index 2645a3dc18e184fcf6c0e92a86deea85fca19ad2..6012fd4ae17d946758f344e35bd7a6aa40cf32fa 100644 |
--- a/test/cctest/test-platform.cc |
+++ b/test/cctest/test-platform.cc |
@@ -24,6 +24,10 @@ void GetStackPointer(const v8::FunctionCallbackInfo<v8::Value>& args) { |
__asm__ __volatile__("sw $sp, %0" : "=g"(sp_addr)); |
#elif V8_HOST_ARCH_MIPS64 |
__asm__ __volatile__("sd $sp, %0" : "=g"(sp_addr)); |
+#elif defined(__s390x__) || defined(_ARCH_S390X) |
+ __asm__ __volatile__("stg 15, %0" : "=g"(sp_addr)); |
+#elif defined(__s390__) || defined(_ARCH_S390) |
+ __asm__ __volatile__("st 15, %0" : "=g"(sp_addr)); |
#elif defined(__PPC64__) || defined(_ARCH_PPC64) |
__asm__ __volatile__("std 1, %0" : "=g"(sp_addr)); |
#elif defined(__PPC__) || defined(_ARCH_PPC) |