Ignore:
Timestamp:
Mar 13, 2012, 2:10:47 PM (13 years ago)
Author:
[email protected]
Message:

Dump the generated code for ARM_TRADITIONAL
https://bugs.webkit.org/show_bug.cgi?id=80975

Patch by Hojong Han <[email protected]> on 2012-03-13
Reviewed by Gavin Barraclough.

  • assembler/LinkBuffer.h:

(JSC::LinkBuffer::dumpCode):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/assembler/LinkBuffer.h

    r109307 r110605  
    375375        for (unsigned i = 0; i < tsize; i++)
    376376            dataLog("\t.short\t0x%x\n", tcode[i]);
     377#elif CPU(ARM_TRADITIONAL)
     378        //   gcc -c jit.s
     379        //   objdump -D jit.o
     380        static unsigned codeCount = 0;
     381        unsigned int* tcode = static_cast<unsigned int*>(code);
     382        size_t tsize = size / sizeof(unsigned int);
     383        char nameBuf[128];
     384        snprintf(nameBuf, sizeof(nameBuf), "_jsc_jit%u", codeCount++);
     385        dataLog("\t.globl\t%s\n"
     386                    "\t.align 4\n"
     387                    "\t.code 32\n"
     388                    "\t.text\n"
     389                    "# %p\n"
     390                    "%s:\n", nameBuf, code, nameBuf);
     391
     392        for (unsigned i = 0; i < tsize; i++)
     393            dataLog("\t.long\t0x%x\n", tcode[i]);
    377394#endif
    378395    }
Note: See TracChangeset for help on using the changeset viewer.