Ignore:
Timestamp:
Aug 11, 2011, 5:11:08 PM (14 years ago)
Author:
[email protected]
Message:

DFG JIT verbose mode does not report the generated types of nodes
https://bugs.webkit.org/show_bug.cgi?id=65830

Reviewed by Sam Weinig.

Added code that prints the type selected for each node's result.

  • dfg/DFGGenerationInfo.h:

(JSC::DFG::dataFormatToString):

  • dfg/DFGNonSpeculativeJIT.cpp:

(JSC::DFG::NonSpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compile):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGGenerationInfo.h

    r91804 r92892  
    4949    DataFormatJSCell = DataFormatJS | DataFormatCell,
    5050};
     51
     52#ifndef NDEBUG
     53inline const char* dataFormatToString(DataFormat dataFormat)
     54{
     55    switch (dataFormat) {
     56    case DataFormatNone:
     57        return "None";
     58    case DataFormatInteger:
     59        return "Integer";
     60    case DataFormatDouble:
     61        return "Double";
     62    case DataFormatCell:
     63        return "Cell";
     64    case DataFormatJS:
     65        return "JS";
     66    case DataFormatJSInteger:
     67        return "JSInteger";
     68    case DataFormatJSDouble:
     69        return "JSDouble";
     70    case DataFormatJSCell:
     71        return "JSCell";
     72    default:
     73        return "Unknown";
     74    }
     75}
     76#endif
    5177
    5278inline bool needDataFormatConversion(DataFormat from, DataFormat to)
Note: See TracChangeset for help on using the changeset viewer.