OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "src/assembler.h" | 46 #include "src/assembler.h" |
47 #include "src/ppc/constants-ppc.h" | 47 #include "src/ppc/constants-ppc.h" |
48 | 48 |
49 #define ABI_USES_FUNCTION_DESCRIPTORS \ | 49 #define ABI_USES_FUNCTION_DESCRIPTORS \ |
50 (V8_HOST_ARCH_PPC && (V8_OS_AIX || \ | 50 (V8_HOST_ARCH_PPC && (V8_OS_AIX || \ |
51 (V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN))) | 51 (V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN))) |
52 | 52 |
53 #define ABI_PASSES_HANDLES_IN_REGS \ | 53 #define ABI_PASSES_HANDLES_IN_REGS \ |
54 (!V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64) | 54 (!V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64) |
55 | 55 |
56 #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS \ | 56 #if (!V8_HOST_ARCH_PPC || !V8_TARGET_ARCH_PPC64 || V8_TARGET_LITTLE_ENDIAN) |
57 (!V8_HOST_ARCH_PPC || !V8_TARGET_ARCH_PPC64 || V8_TARGET_LITTLE_ENDIAN) | 57 #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 1 |
| 58 #else |
| 59 #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 0 |
| 60 #endif |
58 | 61 |
59 #if !V8_HOST_ARCH_PPC || (V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN) | 62 #if !V8_HOST_ARCH_PPC || (V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN) |
60 #define ABI_CALL_VIA_IP 1 | 63 #define ABI_CALL_VIA_IP 1 |
61 #else | 64 #else |
62 #define ABI_CALL_VIA_IP 0 | 65 #define ABI_CALL_VIA_IP 0 |
63 #endif | 66 #endif |
64 | 67 |
65 #if !V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64 | 68 #if !V8_HOST_ARCH_PPC || V8_OS_AIX || V8_TARGET_ARCH_PPC64 |
66 #define ABI_TOC_REGISTER Register::kCode_r2 | 69 #define ABI_TOC_REGISTER Register::kCode_r2 |
67 #else | 70 #else |
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 | 1469 |
1467 | 1470 |
1468 class EnsureSpace BASE_EMBEDDED { | 1471 class EnsureSpace BASE_EMBEDDED { |
1469 public: | 1472 public: |
1470 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1473 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
1471 }; | 1474 }; |
1472 } // namespace internal | 1475 } // namespace internal |
1473 } // namespace v8 | 1476 } // namespace v8 |
1474 | 1477 |
1475 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1478 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
OLD | NEW |