| Index: src/mips/constants-mips.cc
|
| diff --git a/src/mips/constants-mips.cc b/src/mips/constants-mips.cc
|
| index 3afb88146dcc222a435783c2594a0dc58b69f70f..ad97e4170cb75ab0b893224e5967912de0609e1b 100644
|
| --- a/src/mips/constants-mips.cc
|
| +++ b/src/mips/constants-mips.cc
|
| @@ -123,116 +123,6 @@ int FPURegisters::Number(const char* name) {
|
| }
|
|
|
|
|
| -// -----------------------------------------------------------------------------
|
| -// Instructions.
|
| -
|
| -bool Instruction::IsForbiddenAfterBranchInstr(Instr instr) {
|
| - Opcode opcode = static_cast<Opcode>(instr & kOpcodeMask);
|
| - switch (opcode) {
|
| - case J:
|
| - case JAL:
|
| - case BEQ:
|
| - case BNE:
|
| - case BLEZ: // POP06 bgeuc/bleuc, blezalc, bgezalc
|
| - case BGTZ: // POP07 bltuc/bgtuc, bgtzalc, bltzalc
|
| - case BEQL:
|
| - case BNEL:
|
| - case BLEZL: // POP26 bgezc, blezc, bgec/blec
|
| - case BGTZL: // POP27 bgtzc, bltzc, bltc/bgtc
|
| - case BC:
|
| - case BALC:
|
| - case POP10: // beqzalc, bovc, beqc
|
| - case POP30: // bnezalc, bnvc, bnec
|
| - case POP66: // beqzc, jic
|
| - case POP76: // bnezc, jialc
|
| - return true;
|
| - case REGIMM:
|
| - switch (instr & kRtFieldMask) {
|
| - case BLTZ:
|
| - case BGEZ:
|
| - case BLTZAL:
|
| - case BGEZAL:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| - break;
|
| - case SPECIAL:
|
| - switch (instr & kFunctionFieldMask) {
|
| - case JR:
|
| - case JALR:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| - break;
|
| - case COP1:
|
| - switch (instr & kRsFieldMask) {
|
| - case BC1:
|
| - case BC1EQZ:
|
| - case BC1NEZ:
|
| - return true;
|
| - break;
|
| - default:
|
| - return false;
|
| - }
|
| - break;
|
| - default:
|
| - return false;
|
| - }
|
| -}
|
| -
|
| -
|
| -bool Instruction::IsLinkingInstruction() const {
|
| - switch (OpcodeFieldRaw()) {
|
| - case JAL:
|
| - return true;
|
| - case POP76:
|
| - if (RsFieldRawNoAssert() == JIALC)
|
| - return true; // JIALC
|
| - else
|
| - return false; // BNEZC
|
| - case REGIMM:
|
| - switch (RtFieldRaw()) {
|
| - case BGEZAL:
|
| - case BLTZAL:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| - case SPECIAL:
|
| - switch (FunctionFieldRaw()) {
|
| - case JALR:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| - default:
|
| - return false;
|
| - }
|
| -}
|
| -
|
| -
|
| -bool Instruction::IsTrap() const {
|
| - if (OpcodeFieldRaw() != SPECIAL) {
|
| - return false;
|
| - } else {
|
| - switch (FunctionFieldRaw()) {
|
| - case BREAK:
|
| - case TGE:
|
| - case TGEU:
|
| - case TLT:
|
| - case TLTU:
|
| - case TEQ:
|
| - case TNE:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| } // namespace internal
|
| } // namespace v8
|
|
|
|
|