Title: [106153] trunk/Source/_javascript_Core
Revision
106153
Author
[email protected]
Date
2012-01-27 14:43:34 -0800 (Fri, 27 Jan 2012)

Log Message

[JSC] Asm-originated symbols should be marked as hidden
https://bugs.webkit.org/show_bug.cgi?id=77150

Patch by Simon Hausmann <[email protected]> on 2012-01-27
Reviewed by Filip Pizlo.

* dfg/DFGOperations.cpp: The HIDE_SYMBOLS macros were present in the CPU(ARM) preprocessor branches,
but they were missing in the CPU(X86) and the CPU(X86_64) cases.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (106152 => 106153)


--- trunk/Source/_javascript_Core/ChangeLog	2012-01-27 22:42:05 UTC (rev 106152)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-01-27 22:43:34 UTC (rev 106153)
@@ -1,3 +1,13 @@
+2012-01-27  Simon Hausmann  <[email protected]>
+
+        [JSC] Asm-originated symbols should be marked as hidden
+        https://bugs.webkit.org/show_bug.cgi?id=77150
+
+        Reviewed by Filip Pizlo.
+
+        * dfg/DFGOperations.cpp: The HIDE_SYMBOLS macros were present in the CPU(ARM) preprocessor branches,
+        but they were missing in the CPU(X86) and the CPU(X86_64) cases.
+
 2012-01-27  MORITA Hajime  <[email protected]>
 
         [JSC] Some JS_EXPORTDATA may not be necessary.

Modified: trunk/Source/_javascript_Core/dfg/DFGOperations.cpp (106152 => 106153)


--- trunk/Source/_javascript_Core/dfg/DFGOperations.cpp	2012-01-27 22:42:05 UTC (rev 106152)
+++ trunk/Source/_javascript_Core/dfg/DFGOperations.cpp	2012-01-27 22:43:34 UTC (rev 106153)
@@ -43,6 +43,7 @@
 #define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, register) \
     asm( \
     ".globl " SYMBOL_STRING(function) "\n" \
+    HIDE_SYMBOL(function) "\n" \
     SYMBOL_STRING(function) ":" "\n" \
         "mov (%rsp), %" STRINGIZE(register) "\n" \
         "jmp " SYMBOL_STRING_RELOCATION(function##WithReturnAddress) "\n" \
@@ -57,6 +58,7 @@
 #define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, offset) \
     asm( \
     ".globl " SYMBOL_STRING(function) "\n" \
+    HIDE_SYMBOL(function) "\n" \
     SYMBOL_STRING(function) ":" "\n" \
         "mov (%esp), %eax\n" \
         "mov %eax, " STRINGIZE(offset) "(%esp)\n" \
@@ -677,6 +679,7 @@
 #if CPU(X86_64)
 asm (
 ".globl " SYMBOL_STRING(getHostCallReturnValue) "\n"
+HIDE_SYMBOL(getHostCallReturnValue) "\n"
 SYMBOL_STRING(getHostCallReturnValue) ":" "\n"
     "mov -40(%r13), %r13\n"
     "mov %r13, %rdi\n"
@@ -685,6 +688,7 @@
 #elif CPU(X86)
 asm (
 ".globl " SYMBOL_STRING(getHostCallReturnValue) "\n"
+HIDE_SYMBOL(getHostCallReturnValue) "\n"
 SYMBOL_STRING(getHostCallReturnValue) ":" "\n"
     "mov -40(%edi), %edi\n"
     "mov %edi, 4(%esp)\n"
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to