]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/Auto.subproj/objc-auto-x86_64.s
objc4-493.9.tar.gz
[apple/objc4.git] / runtime / Auto.subproj / objc-auto-x86_64.s
index 12f096204364ef69245d5955a758f49b69ba7e4c..ac2d144151b6fcb89e1439a8f04845f8b350c358 100644 (file)
@@ -21,6 +21,8 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#error not currently used
+
 #ifdef __x86_64__
 
 /*
@@ -38,8 +40,6 @@
 .data
 .align 12   // align to page boundary
 
-LNonGCAssigns$Begin:
-
 // id objc_assign_ivar(id value, id dest, ptrdiff_t offset);
 .globl  _objc_assign_ivar
 _objc_assign_ivar:
@@ -60,6 +60,16 @@ _objc_assign_global:
     leave
     ret
 
+// id objc_assign_threadlocal(id value, id *dest);
+.globl  _objc_assign_threadlocal
+_objc_assign_threadlocal:
+    pushq   %rbp
+    movq    %rsp,%rbp
+    movq    %rdi,(%rsi)     // *(dest = value);
+    movq    %rdi,%rax       // return value;
+    leave
+    ret
+
 // As of OS X 10.5, objc_assign_strongCast_non_gc is identical to
 // objc_assign_global_non_gc.
 
@@ -73,10 +83,7 @@ _objc_assign_strongCast:
     leave
     ret
 
-LNonGCAssigns$End:
-
 // Claim the remainder of the page.
-.set    L$set$assignsSize,LNonGCAssigns$End-LNonGCAssigns$Begin
-.space  4096-L$set$assignsSize
+.align 12, 0
 
 #endif