Ignore:
Timestamp:
Nov 27, 2012, 5:29:29 PM (12 years ago)
Author:
[email protected]
Message:

Convert some remaining uses of FILE* to PrintStream&.

Rubber stamped by Mark Hahnenberg.

Source/JavaScriptCore:

  • bytecode/ValueProfile.h:

(JSC::ValueProfileBase::dump):

  • bytecode/ValueRecovery.h:

(JSC::ValueRecovery::dump):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseCodeBlock):

  • dfg/DFGNode.h:

(JSC::DFG::Node::dumpChildren):

Source/WTF:

  • wtf/BitVector.cpp:

(WTF::BitVector::dump):

  • wtf/BitVector.h:

(BitVector):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/ValueRecovery.h

    r130726 r135957  
    275275    }
    276276   
    277     void dump(FILE* out) const
     277    void dump(PrintStream& out) const
    278278    {
    279279        switch (technique()) {
    280280        case AlreadyInJSStack:
    281             fprintf(out, "-");
     281            out.printf("-");
    282282            break;
    283283        case AlreadyInJSStackAsUnboxedInt32:
    284             fprintf(out, "(int32)");
     284            out.printf("(int32)");
    285285            break;
    286286        case AlreadyInJSStackAsUnboxedCell:
    287             fprintf(out, "(cell)");
     287            out.printf("(cell)");
    288288            break;
    289289        case AlreadyInJSStackAsUnboxedBoolean:
    290             fprintf(out, "(bool)");
     290            out.printf("(bool)");
    291291            break;
    292292        case AlreadyInJSStackAsUnboxedDouble:
    293             fprintf(out, "(double)");
     293            out.printf("(double)");
    294294            break;
    295295        case InGPR:
    296             fprintf(out, "%%r%d", gpr());
     296            out.printf("%%r%d", gpr());
    297297            break;
    298298        case UnboxedInt32InGPR:
    299             fprintf(out, "int32(%%r%d)", gpr());
     299            out.printf("int32(%%r%d)", gpr());
    300300            break;
    301301        case UnboxedBooleanInGPR:
    302             fprintf(out, "bool(%%r%d)", gpr());
     302            out.printf("bool(%%r%d)", gpr());
    303303            break;
    304304        case UInt32InGPR:
    305             fprintf(out, "uint32(%%r%d)", gpr());
     305            out.printf("uint32(%%r%d)", gpr());
    306306            break;
    307307        case InFPR:
    308             fprintf(out, "%%fr%d", fpr());
     308            out.printf("%%fr%d", fpr());
    309309            break;
    310310#if USE(JSVALUE32_64)
    311311        case InPair:
    312             fprintf(out, "pair(%%r%d, %%r%d)", tagGPR(), payloadGPR());
     312            out.printf("pair(%%r%d, %%r%d)", tagGPR(), payloadGPR());
    313313            break;
    314314#endif
    315315        case DisplacedInJSStack:
    316             fprintf(out, "*%d", virtualRegister());
     316            out.printf("*%d", virtualRegister());
    317317            break;
    318318        case Int32DisplacedInJSStack:
    319             fprintf(out, "*int32(%d)", virtualRegister());
     319            out.printf("*int32(%d)", virtualRegister());
    320320            break;
    321321        case DoubleDisplacedInJSStack:
    322             fprintf(out, "*double(%d)", virtualRegister());
     322            out.printf("*double(%d)", virtualRegister());
    323323            break;
    324324        case CellDisplacedInJSStack:
    325             fprintf(out, "*cell(%d)", virtualRegister());
     325            out.printf("*cell(%d)", virtualRegister());
    326326            break;
    327327        case BooleanDisplacedInJSStack:
    328             fprintf(out, "*bool(%d)", virtualRegister());
     328            out.printf("*bool(%d)", virtualRegister());
    329329            break;
    330330        case ArgumentsThatWereNotCreated:
    331             fprintf(out, "arguments");
     331            out.printf("arguments");
    332332            break;
    333333        case Constant:
    334             fprintf(out, "[%s]", constant().description());
     334            out.printf("[%s]", constant().description());
    335335            break;
    336336        case DontKnow:
    337             fprintf(out, "!");
     337            out.printf("!");
    338338            break;
    339339        default:
    340             fprintf(out, "?%d", technique());
     340            out.printf("?%d", technique());
    341341            break;
    342342        }
Note: See TracChangeset for help on using the changeset viewer.