Bug 1058095 - IonMonkey: Remove LInstruction::printInfo r=bhackett
--- a/js/src/jit/LIR-Common.h
+++ b/js/src/jit/LIR-Common.h
@@ -6120,20 +6120,16 @@ class LPhi MOZ_FINAL : public LInstructi
return 0;
}
MBasicBlock *getSuccessor(size_t i) const {
MOZ_CRASH("no successors");
}
void setSuccessor(size_t i, MBasicBlock *) {
MOZ_CRASH("no successors");
}
-
- virtual void printInfo(FILE *fp) {
- printOperands(fp);
- }
};
class LIn : public LCallInstructionHelper<1, BOX_PIECES+1, 0>
{
public:
LIR_HEADER(In)
explicit LIn(const LAllocation &rhs) {
setOperand(RHS, rhs);
--- a/js/src/jit/LIR.cpp
+++ b/js/src/jit/LIR.cpp
@@ -496,17 +496,17 @@ LInstruction::dump(FILE *fp)
fprintf(fp, "%s", getDef(i)->toString());
if (i != numDefs() - 1)
fprintf(fp, ", ");
}
fprintf(fp, "} <- ");
}
printName(fp);
- printInfo(fp);
+ printOperands(fp);
if (numTemps()) {
fprintf(fp, " t=(");
for (size_t i = 0; i < numTemps(); i++) {
fprintf(fp, "%s", getTemp(i)->toString());
if (i != numTemps() - 1)
fprintf(fp, ", ");
}
--- a/js/src/jit/LIR.h
+++ b/js/src/jit/LIR.h
@@ -706,17 +706,16 @@ class LInstruction
return false;
}
virtual void dump(FILE *fp);
void dump();
static void printName(FILE *fp, Opcode op);
virtual void printName(FILE *fp);
virtual void printOperands(FILE *fp);
- virtual void printInfo(FILE *fp) { }
public:
// Opcode testing and casts.
# define LIROP(name) \
bool is##name() const { \
return op() == LOp_##name; \
} \
inline L##name *to##name();
@@ -900,20 +899,16 @@ class LInstructionHelper : public LInstr
const LAllocation *input() {
MOZ_ASSERT(numOperands() == 1);
return getOperand(0);
}
const LDefinition *output() {
MOZ_ASSERT(numDefs() == 1);
return getDef(0);
}
-
- virtual void printInfo(FILE *fp) {
- printOperands(fp);
- }
};
template <size_t Defs, size_t Operands, size_t Temps>
class LCallInstructionHelper : public LInstructionHelper<Defs, Operands, Temps>
{
public:
virtual bool isCall() const {
return true;