Bug 1058095 - IonMonkey: Remove LInstruction::printInfo r=bhackett
authorDan Gohman <sunfish@mozilla.com>
Fri, 10 Oct 2014 21:21:35 -0700
changeset 209954 3d5ddfdf72d6a76edb6fbea0e3ebfbaf6c24bd4a
parent 209953 89d559ebb859d1a7511227458210c092db608d81
child 209955 7deba8fa4e1993409c2b1464ec430debd8608ac8
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbhackett
bugs1058095
milestone35.0a1
Bug 1058095 - IonMonkey: Remove LInstruction::printInfo r=bhackett
js/src/jit/LIR-Common.h
js/src/jit/LIR.cpp
js/src/jit/LIR.h
--- 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;