Advertisement
Guest User

Swift optimization level breaks converting NSArray to Array

a guest
Dec 29th, 2014
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.05 KB | None | 0 0
  1. AppName`@objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool at AppDelegate.swift:
  2. 0x100077b64: stp x22, x21, [sp, #-48]!
  3. 0x100077b68: stp x20, x19, [sp, #16]
  4. 0x100077b6c: stp fp, lr, [sp, #32]
  5. 0x100077b70: add fp, sp, #32
  6. 0x100077b74: sub sp, sp, #16
  7. 0x100077b78: mov x19, x3
  8. 0x100077b7c: mov x21, x2
  9. 0x100077b80: mov x22, x0
  10. 0x100077b84: cbnz x19, 0x100077b9c ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 56 at AppDelegate.swift
  11. 0x100077b88: mov x0, x22
  12. 0x100077b8c: bl 0x10014b4c0 ; symbol stub for: objc_retain
  13. 0x100077b90: mov x0, x21
  14. 0x100077b94: bl 0x10014b4c0 ; symbol stub for: objc_retain
  15. 0x100077b98: b 0x100077c28 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 196 [inlined] AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool
  16. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 196 at AppDelegate.swift
  17. 0x100077b9c: adrp x8, 294
  18. 0x100077ba0: ldr x20, [x8, #672]
  19. 0x100077ba4: mov x0, x21
  20. 0x100077ba8: bl 0x10014b4c0 ; symbol stub for: objc_retain
  21. 0x100077bac: mov x0, x22
  22. 0x100077bb0: bl 0x10014b4c0 ; symbol stub for: objc_retain
  23. 0x100077bb4: mov x0, x19
  24. 0x100077bb8: bl 0x10014b4c0 ; symbol stub for: objc_retain
  25. 0x100077bbc: cbnz x20, 0x100077be0 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 124 at AppDelegate.swift
  26. 0x100077bc0: nop
  27. 0x100077bc4: ldr x0, #1017060 ; (void *)0x000000019ae160a0: NSObject
  28. 0x100077bc8: bl 0x10014bbbc ; symbol stub for: swift_getInitializedObjCClass
  29. 0x100077bcc: bl 0x10014bbc8 ; symbol stub for: swift_getObjCClassMetadata
  30. 0x100077bd0: mov x20, x0
  31. 0x100077bd4: adrp x8, 294
  32. 0x100077bd8: add x8, x8, #672
  33. 0x100077bdc: stlr x20, [x8]
  34. 0x100077be0: adrp x8, 294
  35. 0x100077be4: ldr x3, [x8, #656]
  36. 0x100077be8: cbnz x3, 0x100077c14 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 176 at AppDelegate.swift
  37. 0x100077bec: adrp x8, 289
  38. 0x100077bf0: ldr x8, [x8, #3192]
  39. 0x100077bf4: str x8, [sp, #8]
  40. 0x100077bf8: add x1, sp, #8
  41. 0x100077bfc: orr x0, xzr, #0x1
  42. 0x100077c00: bl 0x10014bb74 ; symbol stub for: swift_getExistentialTypeMetadata
  43. 0x100077c04: mov x3, x0
  44. 0x100077c08: adrp x8, 294
  45. 0x100077c0c: add x8, x8, #656
  46. 0x100077c10: stlr x3, [x8]
  47. 0x100077c14: nop
  48. 0x100077c18: ldr x2, #1017456 ; (void *)0x00000001006ecf20: protocol witness table for ObjectiveC.NSObject : Swift.Hashable
  49. 0x100077c1c: mov x0, x19
  50. 0x100077c20: mov x1, x20
  51. 0x100077c24: bl 0x10014b964 ; symbol stub for: Foundation._convertNSDictionaryToDictionary <A : Swift.Hashable, B>(ObjectiveC.NSDictionary) -> Swift.Dictionary<A, B>
  52. 0x100077c28: adr x0, #919416 ; "foo"
  53. 0x100077c2c: nop
  54. 0x100077c30: orr x1, xzr, #0x3
  55. 0x100077c34: movz x2, #0
  56. 0x100077c38: bl 0x10014b9ac ; symbol stub for: ext.Foundation.Swift.String._bridgeToObjectiveC (Swift.String)() -> ObjectiveC.NSString
  57. 0x100077c3c: mov x20, x0
  58. 0x100077c40: adr x0, #919396 ; "bar"
  59. 0x100077c44: nop
  60. 0x100077c48: orr x1, xzr, #0x3
  61. 0x100077c4c: movz x2, #0
  62. 0x100077c50: bl 0x10014b9ac ; symbol stub for: ext.Foundation.Swift.String._bridgeToObjectiveC (Swift.String)() -> ObjectiveC.NSString
  63. 0x100077c54: mov x21, x0
  64. 0x100077c58: adr x8, #1020120 ; metadata4
  65. 0x100077c5c: nop
  66. 0x100077c60: add x0, x8, #16
  67. 0x100077c64: movz x1, #40
  68. 0x100077c68: orr x2, xzr, #0x7
  69. 0x100077c6c: bl 0x10014bab4 ; symbol stub for: swift_allocObject
  70. 0x100077c70: mov x19, x0
  71. 0x100077c74: orr x8, xzr, #0x2
  72. 0x100077c78: stp x8, xzr, [x19, #16]
  73. 0x100077c7c: stp x20, x21, [x19, #24]
  74. 0x100077c80: adrp x8, 293
  75. 0x100077c84: ldr x0, [x8, #1528]
  76. 0x100077c88: cbnz x0, 0x100077cd8 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 372 [inlined] AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 176
  77. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 196 at AppDelegate.swift
  78. 0x100077c8c: adrp x8, 294
  79. 0x100077c90: ldr x1, [x8, #656]
  80. 0x100077c94: cbnz x1, 0x100077cc0 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 348 [inlined] AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 152
  81. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 196 at AppDelegate.swift
  82. 0x100077c98: adrp x8, 289
  83. 0x100077c9c: ldr x8, [x8, #3192]
  84. 0x100077ca0: str x8, [sp, #8]
  85. 0x100077ca4: add x1, sp, #8
  86. 0x100077ca8: orr x0, xzr, #0x1
  87. 0x100077cac: bl 0x10014bb74 ; symbol stub for: swift_getExistentialTypeMetadata
  88. 0x100077cb0: mov x1, x0
  89. 0x100077cb4: adrp x8, 294
  90. 0x100077cb8: add x8, x8, #656
  91. 0x100077cbc: stlr x1, [x8]
  92. 0x100077cc0: nop
  93. 0x100077cc4: ldr x0, #1017028 ; (void *)0x00000001004892d0: direct generic type metadata pattern for Swift._ContiguousArrayStorage
  94. 0x100077cc8: bl 0x10014bb98 ; symbol stub for: swift_getGenericMetadata1
  95. 0x100077ccc: adrp x8, 293
  96. 0x100077cd0: add x8, x8, #1528
  97. 0x100077cd4: stlr x0, [x8]
  98. 0x100077cd8: orr x1, xzr, #0x30
  99. 0x100077cdc: orr x2, xzr, #0x7
  100. 0x100077ce0: bl 0x10014bae4 ; symbol stub for: swift_bufferAllocate
  101. 0x100077ce4: mov x21, x0
  102. 0x100077ce8: stp xzr, xzr, [x21, #16]
  103. 0x100077cec: bl 0x10014b664 ; symbol stub for: malloc_size
  104. 0x100077cf0: subs x8, x0, #32
  105. 0x100077cf4: csinc w9, wzr, wzr, vc
  106. 0x100077cf8: tbnz w9, #0, 0x100077df8 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 660 at AppDelegate.swift
  107. 0x100077cfc: cmn x8, #7
  108. 0x100077d00: b.lt 0x100077df8 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 660 at AppDelegate.swift
  109. 0x100077d04: asr x9, x8, #63
  110. 0x100077d08: add x8, x8, x9, lsr #61
  111. 0x100077d0c: asr x8, x8, #3
  112. 0x100077d10: lsl x8, x8, #1
  113. 0x100077d14: orr x8, x8, #0x1
  114. 0x100077d18: orr x9, xzr, #0x2
  115. 0x100077d1c: stp x9, x8, [x21, #16]
  116. 0x100077d20: ldr x0, [x19, #24]
  117. 0x100077d24: str x0, [x21, #32]
  118. 0x100077d28: bl 0x10014bc94 ; symbol stub for: swift_unknownRetain
  119. 0x100077d2c: ldr x0, [x19, #32]
  120. 0x100077d30: str x0, [x21, #40]
  121. 0x100077d34: bl 0x10014bc94 ; symbol stub for: swift_unknownRetain
  122. 0x100077d38: bl 0x10014ba90 ; symbol stub for: type metadata accessor for Swift._IndirectArrayBuffer
  123. 0x100077d3c: movz x1, #27
  124. 0x100077d40: orr x2, xzr, #0x7
  125. 0x100077d44: bl 0x10014bab4 ; symbol stub for: swift_allocObject
  126. 0x100077d48: mov x20, x0
  127. 0x100077d4c: cbnz x21, 0x100077d54 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 496 [inlined] specialization <Swift.UnsafeBufferPointer<Swift.AnyObject> with Swift.UnsafeBufferPointer<Swift.AnyObject> : Swift.CollectionType, Swift.UnsafeBufferPointerGenerator<Swift.AnyObject> with Swift.UnsafeBufferPointerGenerator<Swift.AnyObject> : Swift.GeneratorType, Swift.AnyObject, Swift.Int with Swift.Int : Swift.ForwardIndexType, Swift.Int with Swift.Int : Swift._SignedIntegerType, Swift.Int with Swift.Int : Swift._BuiltinIntegerLiteralConvertible, Swift.Int> of Swift.~> infix <A : Swift.CollectionType>(A, (Swift._CopyToNativeArrayBuffer, ())) -> Swift._ContiguousArrayBuffer<A._Element> + 116 at AppDelegate.swift:25
  128. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 380 [inlined] AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 184
  129. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 196 at AppDelegate.swift
  130. 0x100077d50: movz x21, #0
  131. 0x100077d54: str x21, [x20, #16]
  132. 0x100077d58: orr w8, wzr, #0x1
  133. 0x100077d5c: strb w8, [x20, #24]
  134. 0x100077d60: strb wzr, [x20, #25]
  135. 0x100077d64: strb wzr, [x20, #26]
  136. 0x100077d68: str x19, [sp]
  137. 0x100077d6c: mov x0, sp
  138. 0x100077d70: bl 0x10014bb5c ; symbol stub for: swift_fixLifetime
  139. 0x100077d74: ldr x0, [sp]
  140. 0x100077d78: bl 0x10014bc04 ; symbol stub for: swift_release
  141. 0x100077d7c: nop
  142. 0x100077d80: ldr x0, #1016552 ; (void *)0x0000000197805038: NSArray
  143. 0x100077d84: bl 0x10014bbbc ; symbol stub for: swift_getInitializedObjCClass
  144. 0x100077d88: adrp x8, 287
  145. 0x100077d8c: ldr x1, [x8, #1824]
  146. 0x100077d90: movz x2, #0
  147. 0x100077d94: bl 0x10014b49c ; symbol stub for: objc_msgSend
  148. 0x100077d98: mov x19, x0
  149. 0x100077d9c: adrp x8, 294
  150. 0x100077da0: ldr x1, [x8, #656]
  151. 0x100077da4: cbnz x1, 0x100077dd0 ; @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 620 [inlined] AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool
  152. @objc AppName.AppDelegate.application (AppName.AppDelegate)(ObjectiveC.UIApplication, didFinishLaunchingWithOptions : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>) -> Swift.Bool + 620 at AppDelegate.swift
  153. 0x100077da8: adrp x8, 289
  154. 0x100077dac: ldr x8, [x8, #3192]
  155. 0x100077db0: str x8, [sp, #8]
  156. 0x100077db4: add x1, sp, #8
  157. 0x100077db8: orr x0, xzr, #0x1
  158. 0x100077dbc: bl 0x10014bb74 ; symbol stub for: swift_getExistentialTypeMetadata
  159. 0x100077dc0: mov x1, x0
  160. 0x100077dc4: adrp x8, 294
  161. 0x100077dc8: add x8, x8, #656
  162. 0x100077dcc: stlr x1, [x8]
  163. 0x100077dd0: mov x0, x20
  164. 0x100077dd4: bl 0x10014b934 ; symbol stub for: Foundation._convertArrayToNSArray <A>(Swift.Array<A>) -> ObjectiveC.NSArray
  165. 0x100077dd8: mov x20, x0
  166. 0x100077ddc: adrp x8, 287
  167. 0x100077de0: ldr x1, [x8, #1952]
  168. 0x100077de4: mov x0, x19
  169. 0x100077de8: mov x2, x20
  170. 0x100077dec: bl 0x10014b49c ; symbol stub for: objc_msgSend
  171. 0x100077df0: mov x0, x20
  172. 0x100077df4: bl 0x10014b4b4 ; symbol stub for: objc_release
  173. 0x100077df8: brk #1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement