Commit Graph

6 Commits

Author SHA1 Message Date
Graham Batty
0aaf9af5c9 Use a type_traits shim for is_trivially_constructible.
Swift SVN r23383
2014-11-17 21:23:20 +00:00
Graham Batty
243fb6de51 Don't do is_trivial_constrictible on libstdc++.
This is currently unimplemented as of this macro being 20141011,
when it is implemented in libstdc++ the check should be changed
to a < the version that implemented it.

Swift SVN r23368
2014-11-17 17:15:11 +00:00
Joe Groff
b9bd3a2fea Ensure HeapObject and RefCount objects are trivially constructible and destructible.
We don't want them to trigger .cxx_*struct behavior in our ObjC base classes after Clang is fixed.

Swift SVN r23332
2014-11-14 21:54:48 +00:00
Greg Parker
c6a88262cf [stdlib] Scrap bit-rotted FastEntryPoints.s. Rewrite refcounts using __atomic.
Generated code on x86_64 for swift_retain and swift_release and 
swift_allocObject are unchanged. arm64 is improved by using weaker 
memory barriers, fixing rdar://17423624.


Swift SVN r22887
2014-10-23 08:22:48 +00:00
Dave Abrahams
d016db3285 [stdlib] Factor common non-ObjC instance members
Make sure that if the object layout changes, we don't have to update the
stdlib in too many places.

Swift SVN r15166
2014-03-17 23:12:18 +00:00
Dave Abrahams
6eee8e3205 Move HeapObject into the stdlib shim module
Now that we can read definitions directly from "C" headers, stop trying
to maintain a mirror of the HeapObject struct in Swift code in the
standard library.

Swift SVN r14982
2014-03-12 23:48:31 +00:00