Changeset 34411 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


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/Machine.cpp

    r34374 r34411  
    900900    } while (0)
    901901
     902#if DUMP_OPCODE_STATS
     903    OpcodeStats::resetLastInstruction();
     904#endif
     905
    902906#if HAVE(COMPUTED_GOTO)
    903907    #define NEXT_OPCODE goto *vPC->u.opcode
     
    18701874           instruction.
    18711875        */
     1876#if DUMP_OPCODE_STATS
     1877        OpcodeStats::resetLastInstruction();
     1878#endif
    18721879        int target = (++vPC)->u.operand;
    18731880
     
    20672074            vPC = codeBlock->instructions.begin();
    20682075
     2076#if DUMP_OPCODE_STATS
     2077            OpcodeStats::resetLastInstruction();
     2078#endif
     2079           
    20692080            NEXT_OPCODE;
    20702081        }
Note: See TracChangeset for help on using the changeset viewer.