Title: [110605] trunk/Source/_javascript_Core
Revision
110605
Author
[email protected]
Date
2012-03-13 14:10:47 -0700 (Tue, 13 Mar 2012)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (110604 => 110605)


--- trunk/Source/_javascript_Core/ChangeLog	2012-03-13 21:06:44 UTC (rev 110604)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-03-13 21:10:47 UTC (rev 110605)
@@ -1,3 +1,13 @@
+2012-03-13  Hojong Han  <[email protected]>
+
+        Dump the generated code for ARM_TRADITIONAL
+        https://bugs.webkit.org/show_bug.cgi?id=80975
+
+        Reviewed by Gavin Barraclough.
+
+        * assembler/LinkBuffer.h:
+        (JSC::LinkBuffer::dumpCode):
+
 2012-03-13  Adam Barth  <[email protected]> && Benjamin Poulain  <[email protected]>
 
         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)

Modified: trunk/Source/_javascript_Core/assembler/LinkBuffer.h (110604 => 110605)


--- trunk/Source/_javascript_Core/assembler/LinkBuffer.h	2012-03-13 21:06:44 UTC (rev 110604)
+++ trunk/Source/_javascript_Core/assembler/LinkBuffer.h	2012-03-13 21:10:47 UTC (rev 110605)
@@ -374,6 +374,23 @@
         
         for (unsigned i = 0; i < tsize; i++)
             dataLog("\t.short\t0x%x\n", tcode[i]);
+#elif CPU(ARM_TRADITIONAL)
+        //   gcc -c jit.s
+        //   objdump -D jit.o
+        static unsigned codeCount = 0;
+        unsigned int* tcode = static_cast<unsigned int*>(code);
+        size_t tsize = size / sizeof(unsigned int);
+        char nameBuf[128];
+        snprintf(nameBuf, sizeof(nameBuf), "_jsc_jit%u", codeCount++);
+        dataLog("\t.globl\t%s\n"
+                    "\t.align 4\n"
+                    "\t.code 32\n"
+                    "\t.text\n"
+                    "# %p\n"
+                    "%s:\n", nameBuf, code, nameBuf);
+
+        for (unsigned i = 0; i < tsize; i++)
+            dataLog("\t.long\t0x%x\n", tcode[i]);
 #endif
     }
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to