Ignore:
Timestamp:
Jan 29, 2018, 9:47:30 AM (8 years ago)
Author:
Matt Lewis
Message:

Unreviewed, rolling out r227725.

This caused internal failures.

Reverted changeset:

"JSC Sampling Profiler: Detect tester and testee when sampling
in RegExp JIT"
https://bugs.webkit.org/show_bug.cgi?id=152729
https://trac.webkit.org/changeset/227725

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/BytecodeDumper.cpp

    r227725 r227738  
    251251}
    252252
     253static CString regexpToSourceString(RegExp* regExp)
     254{
     255    char postfix[7] = { '/', 0, 0, 0, 0, 0, 0 };
     256    int index = 1;
     257    if (regExp->global())
     258        postfix[index++] = 'g';
     259    if (regExp->ignoreCase())
     260        postfix[index++] = 'i';
     261    if (regExp->multiline())
     262        postfix[index] = 'm';
     263    if (regExp->dotAll())
     264        postfix[index++] = 's';
     265    if (regExp->unicode())
     266        postfix[index++] = 'u';
     267    if (regExp->sticky())
     268        postfix[index++] = 'y';
     269
     270    return toCString("/", regExp->pattern().impl(), postfix);
     271}
     272
    253273static CString regexpName(int re, RegExp* regexp)
    254274{
    255     return toCString(regexp->toSourceString(), "(@re", re, ")");
     275    return toCString(regexpToSourceString(regexp), "(@re", re, ")");
    256276}
    257277
     
    17291749        size_t i = 0;
    17301750        do {
    1731             out.print("  re", i, " = ", block()->regexp(i)->toSourceString(), "\n");
     1751            out.printf("  re%u = %s\n", static_cast<unsigned>(i), regexpToSourceString(block()->regexp(i)).data());
    17321752            ++i;
    17331753        } while (i < count);
Note: See TracChangeset for help on using the changeset viewer.