Index: src/ppc/assembler-ppc.h |
diff --git a/src/ppc/assembler-ppc.h b/src/ppc/assembler-ppc.h |
index c0f946f4d3eb174587fef0fb73ecbc7722c06a5c..f7604d1609f71ed52b4bb403665b196e6dda6801 100644 |
--- a/src/ppc/assembler-ppc.h |
+++ b/src/ppc/assembler-ppc.h |
@@ -46,12 +46,18 @@ |
#include "src/assembler.h" |
#include "src/ppc/constants-ppc.h" |
-#define ABI_USES_FUNCTION_DESCRIPTORS \ |
- (V8_HOST_ARCH_PPC && (V8_OS_AIX || \ |
- (V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN))) |
+#if V8_HOST_ARCH_PPC && \ |
+ (V8_OS_AIX || (V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN)) |
+#define ABI_USES_FUNCTION_DESCRIPTORS 1 |
+#else |
+#define ABI_USES_FUNCTION_DESCRIPTORS 0 |
+#endif |
-#define ABI_PASSES_HANDLES_IN_REGS \ |
- (!V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64) |
+#if !V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64 |
+#define ABI_PASSES_HANDLES_IN_REGS 1 |
+#else |
+#define ABI_PASSES_HANDLES_IN_REGS 0 |
+#endif |
#if !V8_HOST_ARCH_PPC || !V8_TARGET_ARCH_PPC64 || V8_TARGET_LITTLE_ENDIAN |
#define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 1 |
@@ -66,9 +72,9 @@ |
#endif |
#if !V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64 |
-#define ABI_TOC_REGISTER Register::kCode_r2 |
+#define ABI_TOC_REGISTER 2 |
#else |
-#define ABI_TOC_REGISTER Register::kCode_r13 |
+#define ABI_TOC_REGISTER 13 |
#endif |
#define INSTR_AND_DATA_CACHE_COHERENCY LWSYNC |