Changeset 67146 in webkit for trunk/JavaScriptCore/jsc.cpp


Ignore:
Timestamp:
Sep 9, 2010, 7:10:37 PM (15 years ago)
Author:
[email protected]
Message:

2010-09-09 Michael Saboff <[email protected]>

Reviewed by Gavin Barraclough.

Added a regular expression tracing facility. This tracing is connected
to jsc. Every compiled regular expression object is added to a list.
When the process exits, each regular expression dumps its pattern,
JIT address, number of times it was executed and the number of matches.
This tracing is controlled by the macro ENABLE_REGEXP_TRACING in
wtf/Platform.h.
https://bugs.webkit.org/show_bug.cgi?id=45401

  • JavaScriptCore.exp:
  • jsc.cpp: (runWithScripts):
  • runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): (JSC::JSGlobalData::~JSGlobalData): (JSC::JSGlobalData::addRegExpToTrace): (JSC::JSGlobalData::dumpRegExpTrace):
  • runtime/JSGlobalData.h:
  • runtime/RegExp.cpp: (JSC::RegExp::RegExp): (JSC::RegExp::create): (JSC::RegExp::match):
  • runtime/RegExp.h:
  • wtf/Platform.h:
  • yarr/RegexJIT.h: (JSC::Yarr::RegexCodeBlock::getAddr):

2010-09-09 Michael Saboff <[email protected]>

Reviewed by Gavin Barraclough.

Added ListHashSet.h as an exported header in support of RegExp tracing.
https://bugs.webkit.org/show_bug.cgi?id=45401

  • ForwardingHeaders/wtf/ListHashSet.h: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jsc.cpp

    r65344 r67146  
    409409    AbstractSamplingCounter::dump();
    410410#endif
     411#if ENABLE(REGEXP_TRACING)
     412    globalData->dumpRegExpTrace();
     413#endif
    411414    return success;
    412415}
Note: See TracChangeset for help on using the changeset viewer.