Permalink
Browse files

objc4-437, released with OS X v10.6

  • Loading branch information...
1 parent 42039b8 commit c07abbdabf9067a34002891199786292a580ca1c @bavarious committed Aug 28, 2009
Showing with 23,506 additions and 41,298 deletions.
  1. +0 −559 Makefile
  2. +358 −0 ReleaseNotes.rtf
  3. +0 −1 libobjc.order
  4. +4 −3 markgc.c
  5. +34 −0 objc.sln
  6. BIN objc.suo
  7. +1,030 −0 objc.vcproj
  8. +729 −0 objc.xcodeproj/project.pbxproj
  9. +95 −0 objcrt/objcrt.vcproj
  10. +24 −0 runtests.sh
  11. +0 −157 runtime/Accessors.subproj/objc-accessors-i386.s
  12. +0 −24 runtime/Accessors.subproj/objc-accessors-ppc.s
  13. +0 −24 runtime/Accessors.subproj/objc-accessors-ppc64.s
  14. +0 −166 runtime/Accessors.subproj/objc-accessors-table.h
  15. +0 −24 runtime/Accessors.subproj/objc-accessors-x86_64.s
  16. +15 −93 runtime/Accessors.subproj/objc-accessors.m
  17. +6 −1 runtime/Auto.subproj/objc-auto-i386.s
  18. +4 −2 runtime/Auto.subproj/objc-auto-ppc.s
  19. +4 −0 runtime/Auto.subproj/objc-auto-ppc64.s
  20. +4 −0 runtime/Auto.subproj/objc-auto-x86_64.s
  21. +0 −35 runtime/Auto.subproj/objc-auto.s
  22. +914 −0 runtime/Messengers.subproj/objc-msg-arm.s
  23. +52 −45 runtime/Messengers.subproj/objc-msg-i386.s
  24. +29 −4 runtime/Messengers.subproj/objc-msg-ppc.s
  25. +0 −1,434 runtime/Messengers.subproj/objc-msg-ppc64.s
  26. +0 −62 runtime/Messengers.subproj/objc-msg-stub-i386.s
  27. +0 −58 runtime/Messengers.subproj/objc-msg-stub-ppc.s
  28. +0 −57 runtime/Messengers.subproj/objc-msg-stub-ppc64.s
  29. +0 −38 runtime/Messengers.subproj/objc-msg-stub-x86_64.s
  30. +0 −36 runtime/Messengers.subproj/objc-msg-stub.s
  31. +505 −0 runtime/Messengers.subproj/objc-msg-win32.m
  32. +503 −292 runtime/Messengers.subproj/objc-msg-x86_64.s
  33. +2 −2 runtime/OldClasses.subproj/List.h
  34. +1 −1 runtime/OldClasses.subproj/List.m
  35. +1 −1 runtime/Protocol.h
  36. +1 −1 runtime/Protocol.m
  37. +4 −4 runtime/error.h
  38. +2 −0 runtime/hashtable.h
  39. +7 −1 runtime/hashtable2.h
  40. +87 −72 runtime/hashtable2.m
  41. +0 −24 runtime/lookupa.h
  42. +0 −244 runtime/lookupa.m
  43. +1 −2 runtime/maptable.h
  44. +17 −6 runtime/maptable.m
  45. +31 −2 runtime/message.h
  46. +24 −3 runtime/objc-api.h
  47. +53 −0 runtime/objc-auto-dump.h
  48. +218 −0 runtime/objc-auto-dump.m
  49. +148 −35 runtime/objc-auto.h
  50. +548 −844 runtime/objc-auto.m
  51. +167 −119 runtime/objc-cache.m
  52. +292 −138 runtime/objc-class-old.m
  53. +280 −193 runtime/objc-class.m
  54. +58 −12 runtime/objc-config.h
  55. +61 −9 runtime/objc-errors.m
  56. +10 −9 runtime/objc-exception.h
  57. +139 −153 runtime/objc-exception.m
  58. +119 −69 runtime/objc-file.m
  59. +117 −0 runtime/objc-gdb.h
  60. +10 −0 runtime/objc-initialize.h
  61. +117 −27 runtime/objc-initialize.m
  62. +19 −19 runtime/{Messengers.subproj/objc-msg.s → objc-internal.h}
  63. +152 −138 runtime/objc-layout.m
  64. +3 −3 runtime/objc-load.h
  65. +2 −7 runtime/objc-load.m
  66. +1 −1 runtime/objc-loadmethod.h
  67. +26 −21 runtime/objc-loadmethod.m
  68. +407 −29 runtime/objc-lockdebug.m
  69. +843 −0 runtime/objc-os.h
  70. +913 −0 runtime/objc-os.m
  71. +373 −198 runtime/objc-private.h
  72. +5 −0 runtime/objc-probes.d
  73. +18 −11 runtime/{Accessors.subproj/objc-accessors-arch.s → objc-references.h}
  74. +305 −0 runtime/objc-references.mm
  75. +0 −72 runtime/objc-rtp-sym.s
  76. +2 −0 runtime/objc-rtp.h
  77. +45 −92 runtime/objc-rtp.m
  78. +20 −7 runtime/objc-runtime-new.h
  79. +2,267 −900 runtime/objc-runtime-new.m
  80. +493 −236 runtime/objc-runtime-old.m
  81. +256 −695 runtime/objc-runtime.m
  82. +4 −0 runtime/objc-sel-set.h
  83. +42 −12 runtime/objc-sel-set.m
  84. +0 −32,771 runtime/objc-sel-table.h
  85. +21 −0 runtime/objc-sel-table.s
  86. +0 −172 runtime/objc-sel.m
  87. +362 −0 runtime/objc-sel.mm
  88. +1,041 −0 runtime/objc-selopt.h
  89. +3 −11 runtime/objc-sync.h
  90. +119 −148 runtime/objc-sync.m
  91. +2 −3 runtime/objc-typeencoding.m
  92. +2 −2 runtime/objc.h
  93. +97 −0 runtime/objcrt.c
  94. +20 −0 runtime/objcrt.h
  95. +0 −17 runtime/phash.h
  96. +0 −573 runtime/phash.m
  97. +47 −20 runtime/runtime.h
  98. +0 −54 runtime/standard.h
  99. +279 −0 test/Makefile
  100. +22 −0 test/README
  101. +77 −0 test/accessors.m
  102. +105 −0 test/addMethod.m
  103. +24 −0 test/association-cf.m
  104. +7 −0 test/cacheflush.h
  105. +54 −0 test/cacheflush.m
  106. +8 −0 test/cacheflush0.m
  107. +6 −0 test/cacheflush2.m
  108. +6 −0 test/cacheflush3.m
  109. +107 −0 test/category.m
  110. +19 −0 test/classgetclass.m
  111. +41 −0 test/classname.m
  112. +250 −0 test/classpair.m
  113. +22 −0 test/classversion.m
  114. +110 −0 test/concurrentcat.m
  115. +70 −0 test/concurrentcat_category.m
  116. +111 −0 test/copyIvarList.m
  117. +146 −0 test/copyMethodList.m
  118. +120 −0 test/copyPropertyList.m
  119. +57 −0 test/createInstance.m
  120. +157 −0 test/debuggerMode.m
  121. +23 −0 test/definitions.m
  122. +157 −0 test/duplicateClass.m
  123. +116 −0 test/errcheck.pl
  124. +635 −0 test/exc.m
  125. +86 −0 test/exchangeImp.m
  126. +6 −0 test/fail.m
  127. +237 −0 test/foreach.m
  128. +639 −0 test/forward.m
  129. +19 −0 test/future.h
  130. +7 −0 test/future0.m
  131. +86 −0 test/future1.m
  132. +17 −0 test/future2.m
  133. +1 −0 test/gc.c
  134. +2 −0 test/gc.m
  135. +22 −0 test/gcenforcer.m
  136. +2 −0 test/gcenforcer_nogc.gc.expected-stderr
  137. +1 −0 test/gcenforcer_nogc.nogc.expected-stderr
  138. +1 −0 test/gcenforcer_requiresgc.gc.expected-stderr
  139. +2 −0 test/gcenforcer_requiresgc.nogc.expected-stderr
  140. +59 −0 test/gdb-lock.m
  141. +51 −0 test/gdb.m
  142. +117 −0 test/getMethod.m
  143. +287 −0 test/ignoredSelector.m
  144. +19 −0 test/imageorder.h
  145. +32 −0 test/imageorder.m
  146. +41 −0 test/imageorder1.m
  147. +23 −0 test/imageorder2.m
  148. +23 −0 test/imageorder3.m
  149. +129 −0 test/initialize.m
  150. +63 −0 test/instanceSize.m
  151. +16 −0 test/ismeta.m
  152. +116 −0 test/ivar.m
  153. +120 −0 test/ivarSlide.h
  154. +27 −0 test/ivarSlide1.m
  155. +519 −0 test/ivarSlide2.m
  156. +94 −0 test/layout.m
  157. +9 −0 test/load-order.m
  158. +14 −0 test/load-order1.m
  159. +14 −0 test/load-order2.m
  160. +11 −0 test/load-order3.m
  161. +46 −0 test/load-parallel.m
  162. +44 −0 test/load-parallel0.m
  163. +1 −0 test/load-parallel00.m
  164. +28 −0 test/load-reentrant.m
  165. +22 −0 test/load-reentrant2.m
  166. +82 −0 test/load.m
  167. +9 −0 test/main.m
  168. +147 −0 test/methodArgs.m
  169. +20 −0 test/method_getName.m
  170. +501 −0 test/msgSend.m
  171. +11 −0 test/nilAPIArgs.m
  172. +24 −0 test/nsobject.m
  173. +65 −0 test/property.m
  174. +202 −0 test/protocol.m
  175. +141 −0 test/protocol_copyMethodList.m
  176. +105 −0 test/protocol_copyPropertyList.m
  177. +36 −0 test/protocol_cw.m
  178. +3 −0 test/resolve.expected-stderr
  179. +275 −0 test/resolve.m
  180. +2 −0 test/runtime.expected-stderr
  181. +83 −0 test/runtime.m
  182. +32 −0 test/sel.m
  183. +44 −0 test/setSuper.m
  184. +27 −0 test/super.m
  185. +82 −0 test/synchronized-counter.m
  186. +104 −0 test/synchronized-grid.m
  187. +101 −0 test/synchronized.m
  188. +104 −0 test/test.h
  189. +453 −0 test/test.xcodeproj/project.pbxproj
  190. +10 −0 test/unload.h
  191. +126 −0 test/unload.m
  192. +33 −0 test/unload2.m
  193. +8 −0 test/unload3.m
  194. +8 −0 test/unload4.m
  195. +83 −0 test/unwind.m
  196. +34 −0 test/weakcopy.m
  197. +33 −0 test/zone.m
  198. +1 −0 unexported_symbols
View
559 Makefile
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -117,7 +117,6 @@ _setOriginalClassForFutureClass
_change_class_references
_NXInitHashState
_NXNextHashState
-__objc_headerStart
_objc_msgSend
__class_lookupMethodAndLoadCache
__class_getFreedObjectClass
View
@@ -323,12 +323,12 @@ void doofile(void *start, uint32_t size, struct gcinfo *gcip) {
mh->flags = OSSwapInt32(mh->flags);
isFlipped = true;
}
- if (rrOnly && mh->filetype != 6) return; // ignore executables
+ if (rrOnly && mh->filetype != MH_DYLIB) return; // ignore executables
NXArchInfo *info = (NXArchInfo *)NXGetArchInfoFromCpuType(mh->cputype, mh->cpusubtype);
//printf("%s:", info->description);
gcip->arch = (char *)info->description;
//if (debug) printf("...description is %s\n", info->description);
- bool is32 = (mh->cputype == 18 || mh->cputype == 7);
+ bool is32 = !(mh->cputype & CPU_ARCH_ABI64);
if (debug) printf("is 32? %d\n", is32);
if (debug) printf("filetype -> %d\n", mh->filetype);
if (debug) printf("ncmds -> %d\n", mh->ncmds);
@@ -386,6 +386,7 @@ void dofat(void *start) {
int narchs;
struct fat_arch *arch_ptr = (struct fat_arch *)(fh + 1);
for (narchs = 0; narchs < fh->nfat_arch; ++narchs) {
+ if (debug) printf("doing arch %d\n", narchs);
if (needsFlip) {
arch_ptr->offset = OSSwapInt32(arch_ptr->offset);
arch_ptr->size = OSSwapInt32(arch_ptr->size);
@@ -433,7 +434,7 @@ void closeFile() {
void dumpinfo(char *filename) {
initGCInfo();
- openFile(filename);
+ if (!openFile(filename)) exit(1);
struct fat_header *fh = (struct fat_header *)FileBase;
if (fh->magic == FAT_MAGIC || fh->magic == FAT_CIGAM) {
dofat((void *)FileBase);
View
@@ -0,0 +1,34 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C++ Express 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "objc", "objc.vcproj", "{B3408263-0CF1-47BE-83CC-56070EFC9BC1}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "objcrt", "objcrt\objcrt.vcproj", "{E38C1996-8B3D-4050-A4B2-DC85957B047D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1} = {B3408263-0CF1-47BE-83CC-56070EFC9BC1}
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ DebugDLL|Win32 = DebugDLL|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.Debug|Win32.Build.0 = Debug|Win32
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.DebugDLL|Win32.Build.0 = DebugDLL|Win32
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.Release|Win32.ActiveCfg = Release|Win32
+ {B3408263-0CF1-47BE-83CC-56070EFC9BC1}.Release|Win32.Build.0 = Release|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.Debug|Win32.ActiveCfg = Debug|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.Debug|Win32.Build.0 = Debug|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.DebugDLL|Win32.ActiveCfg = Debug|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.DebugDLL|Win32.Build.0 = Debug|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.Release|Win32.ActiveCfg = Release|Win32
+ {E38C1996-8B3D-4050-A4B2-DC85957B047D}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
BIN objc.suo
Binary file not shown.
Oops, something went wrong.

0 comments on commit c07abbd

Please sign in to comment.