diff options
Diffstat (limited to 'deps/v8/src/ppc/assembler-ppc.h')
-rw-r--r-- | deps/v8/src/ppc/assembler-ppc.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/deps/v8/src/ppc/assembler-ppc.h b/deps/v8/src/ppc/assembler-ppc.h index b737320cbb..9f3ff0dc7e 100644 --- a/deps/v8/src/ppc/assembler-ppc.h +++ b/deps/v8/src/ppc/assembler-ppc.h @@ -217,7 +217,7 @@ const int kNumSafepointRegisters = 32; // The following constants describe the stack frame linkage area as // defined by the ABI. Note that kNumRequiredStackFrameSlots must // satisfy alignment requirements (rounding up if required). -#if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN +#if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN // ppc64le linux // [0] back chain // [1] condition register save area // [2] link register save area @@ -230,7 +230,7 @@ const int kNumSafepointRegisters = 32; const int kNumRequiredStackFrameSlots = 12; const int kStackFrameLRSlot = 2; const int kStackFrameExtraParamSlot = 12; -#elif V8_OS_AIX || V8_TARGET_ARCH_PPC64 +#else // AIX // [0] back chain // [1] condition register save area // [2] link register save area @@ -242,21 +242,9 @@ const int kStackFrameExtraParamSlot = 12; // [13] Parameter8 save area // [14] Parameter9 slot (if necessary) // ... -#if V8_TARGET_ARCH_PPC64 const int kNumRequiredStackFrameSlots = 14; -#else -const int kNumRequiredStackFrameSlots = 16; -#endif const int kStackFrameLRSlot = 2; const int kStackFrameExtraParamSlot = 14; -#else -// [0] back chain -// [1] link register save area -// [2] Parameter9 slot (if necessary) -// ... -const int kNumRequiredStackFrameSlots = 4; -const int kStackFrameLRSlot = 1; -const int kStackFrameExtraParamSlot = 2; #endif // Define the list of registers actually saved at safepoints. @@ -373,7 +361,7 @@ C_REGISTERS(DECLARE_C_REGISTER) // Machine instruction Operands // Class Operand represents a shifter operand in data processing instructions -class Operand BASE_EMBEDDED { +class Operand { public: // immediate V8_INLINE explicit Operand(intptr_t immediate, @@ -394,6 +382,7 @@ class Operand BASE_EMBEDDED { V8_INLINE explicit Operand(Register rm); static Operand EmbeddedNumber(double number); // Smi or HeapNumber. + static Operand EmbeddedStringConstant(const StringConstantBase* str); static Operand EmbeddedCode(CodeStub* stub); // Return true if this is a register operand. @@ -442,7 +431,7 @@ class Operand BASE_EMBEDDED { // Class MemOperand represents a memory operand in load and store instructions // On PowerPC we have base register + 16bit signed value // Alternatively we can have a 16bit signed value immediate -class MemOperand BASE_EMBEDDED { +class MemOperand { public: explicit MemOperand(Register rn, int32_t offset = 0); @@ -1632,8 +1621,7 @@ class Assembler : public AssemblerBase { friend class EnsureSpace; }; - -class EnsureSpace BASE_EMBEDDED { +class EnsureSpace { public: explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } }; |