Changeset 192326 in webkit


Ignore:
Timestamp:
Nov 11, 2015 2:31:18 PM (8 years ago)
Author:
mark.lam@apple.com
Message:

Add convenience utility to support dataLogging opcodeIDs.
https://bugs.webkit.org/show_bug.cgi?id=151117

Reviewed by Saam Barati.

  • bytecode/Opcode.cpp:

(WTF::printInternal):

  • bytecode/Opcode.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r192321 r192326  
     12015-11-11  Mark Lam  <mark.lam@apple.com>
     2
     3        Add convenience utility to support dataLogging opcodeIDs.
     4        https://bugs.webkit.org/show_bug.cgi?id=151117
     5
     6        Reviewed by Saam Barati.
     7
     8        * bytecode/Opcode.cpp:
     9        (WTF::printInternal):
     10        * bytecode/Opcode.h:
     11
    1122015-11-10  Keith Miller  <keith_miller@apple.com>
    213
  • trunk/Source/JavaScriptCore/bytecode/Opcode.cpp

    r165676 r192326  
    3131#include "Opcode.h"
    3232
     33#include <wtf/PrintStream.h>
     34
    3335#if ENABLE(OPCODE_STATS)
    3436#include <array>
     
    186188
    187189} // namespace JSC
     190
     191namespace WTF {
     192
     193using namespace JSC;
     194
     195void printInternal(PrintStream& out, OpcodeID opcode)
     196{
     197    out.print(opcodeNames[opcode]);
     198}
     199
     200} // namespace WTF
  • trunk/Source/JavaScriptCore/bytecode/Opcode.h

    r170147 r192326  
    129129} // namespace JSC
    130130
     131namespace WTF {
     132
     133class PrintStream;
     134
     135void printInternal(PrintStream&, JSC::OpcodeID);
     136
     137} // namespace WTF
     138
    131139#endif // Opcode_h
Note: See TracChangeset for help on using the changeset viewer.