diff options
Diffstat (limited to 'deps/v8/src/mips64/constants-mips64.h')
-rw-r--r-- | deps/v8/src/mips64/constants-mips64.h | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/deps/v8/src/mips64/constants-mips64.h b/deps/v8/src/mips64/constants-mips64.h index 9f3869dff2f..66e0c8470ee 100644 --- a/deps/v8/src/mips64/constants-mips64.h +++ b/deps/v8/src/mips64/constants-mips64.h @@ -1154,30 +1154,6 @@ enum MSABranchDF { MSA_BRANCH_V }; -// Commute a condition such that {a cond b == b cond' a}. -inline Condition CommuteCondition(Condition cc) { - switch (cc) { - case Uless: - return Ugreater; - case Ugreater: - return Uless; - case Ugreater_equal: - return Uless_equal; - case Uless_equal: - return Ugreater_equal; - case less: - return greater; - case greater: - return less; - case greater_equal: - return less_equal; - case less_equal: - return greater_equal; - default: - return cc; - } -} - // ----- Coprocessor conditions. enum FPUCondition { @@ -1278,11 +1254,12 @@ static constexpr uint64_t OpcodeToBitNumber(Opcode opcode) { return 1ULL << (static_cast<uint32_t>(opcode) >> kOpcodeShift); } +constexpr uint8_t kInstrSize = 4; +constexpr uint8_t kInstrSizeLog2 = 2; + class InstructionBase { public: enum { - kInstrSize = 4, - kInstrSizeLog2 = 2, // On MIPS PC cannot actually be directly accessed. We behave as if PC was // always the value of the current instruction being executed. kPCReadOffset = 0 @@ -1767,10 +1744,10 @@ const int kCArgSlotCount = 0; // TODO(plind): below should be based on kPointerSize // TODO(plind): find all usages and remove the needless instructions for n64. -const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; +const int kCArgsSlotsSize = kCArgSlotCount * kInstrSize * 2; const int kInvalidStackOffset = -1; -const int kBranchReturnOffset = 2 * Instruction::kInstrSize; +const int kBranchReturnOffset = 2 * kInstrSize; static const int kNegOffset = 0x00008000; |