Changeset 34411 in webkit for trunk/JavaScriptCore/VM/Opcode.h


Ignore:
Timestamp:
Jun 6, 2008, 9:51:02 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-06 Cameron Zwarich <[email protected]>

Reviewed by Oliver.

Bug 19424: Add support for logging opcode pair counts
<https://bugs.webkit.org/show_bug.cgi?id=19424>

JavaScriptCore:

  • VM/Machine.cpp: (KJS::Machine::privateExecute):
  • VM/Opcode.cpp: (KJS::OpcodeStats::OpcodeStats): (KJS::compareOpcodeIndices): (KJS::compareOpcodePairIndices): (KJS::OpcodeStats::~OpcodeStats): (KJS::OpcodeStats::recordInstruction): (KJS::OpcodeStats::resetLastInstruction):
  • VM/Opcode.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Opcode.h

    r34372 r34411  
    144144        OpcodeStats();
    145145        ~OpcodeStats();
    146         static unsigned opcodeCounts[numOpcodeIDs];
     146        static long long opcodeCounts[numOpcodeIDs];
     147        static long long opcodePairCounts[numOpcodeIDs][numOpcodeIDs];
     148        static int lastOpcode;
     149
    147150        static void recordInstruction(int opcode);
     151        static void resetLastInstruction();
    148152    };
    149153
Note: See TracChangeset for help on using the changeset viewer.