Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: src/mips64/constants-mips64.cc

Issue 2375673002: MIPS64: Improve performance of simulator in debug mode. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/mips64/constants-mips64.cc
diff --git a/src/mips64/constants-mips64.cc b/src/mips64/constants-mips64.cc
index c0e98eb623cbb9ea718d3fee221ac0c1e33eecd0..11ae2421b08ef720ea066281900587734d328e46 100644
--- a/src/mips64/constants-mips64.cc
+++ b/src/mips64/constants-mips64.cc
@@ -121,118 +121,6 @@ int FPURegisters::Number(const char* name) {
// No Cregister with the reguested name found.
return kInvalidFPURegister;
}
-
-
-// -----------------------------------------------------------------------------
-// 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

Powered by Google App Engine
This is Rietveld 408576698