Erik Eckstein
ea3b6a02af
stdlib: rewrite Array/ContiguousArray logic for reserving capacity and creating a new buffer.
...
Share more code and avoid the large generic functions of ArrayProtocol.
The result is a significant code size win.
2020-01-09 16:17:38 +01:00
Robert Widmann
b9fe66e0e8
Add documentation to _DependenceToken
2019-11-21 10:48:18 -08:00
Ben Cohen
e9d4687e31
De-underscore @frozen, apply it to structs ( #24185 )
...
* De-underscore @frozen for enums
* Add @frozen for structs, deprecate @_fixed_layout for them
* Switch usage from _fixed_layout to frozen
2019-05-30 17:55:37 -07:00
Ravi Kandhadai
6c662f7a6c
[stdlib][Semantics annotation] Add ".empty" suffix to the semantics attribute of
...
array.init() and add semantics annotation to the compiler-intrinsic:
Array._allocateUninitializedArray
2019-03-05 17:09:34 -08:00
Ben Cohen
1673c12d78
[stdlib] Replace "sanityCheck" with "internalInvariant" ( #20616 )
...
* Replace "sanityCheck" with "internalInvariant"
2018-11-15 20:50:22 -08:00
Maxim Moiseev
cbf83ac04f
[NFC][stdlib] Add FIXME markers to simplify audit
2018-11-14 11:58:42 -08:00
Slava Pestov
f6c2caf64b
stdlib: Add @inlinable to @inline(__always) declarations
...
These should be audited since some might not actually need to be
@inlinable, but for now:
- Anything public and @inline(__always) is now also @inlinable
- Anything @usableFromInline and @inline(__always) is now @inlinable
2018-11-13 15:15:07 -05:00
Ben Cohen
df995de0d6
[stdlib] Make KeyValuePairs fully inlinable ( #19502 )
...
* Move KVP into its own Swift file. Make it fully inlineable.
* Make _makeCollectionDescription an extension. Add KeyValue equivalent.
2018-09-24 17:46:32 -07:00
Karoy Lorentey
546c829491
[stdlib] _makeCollectionDescription: Make internal
2018-09-22 02:04:06 +01:00
Ben Cohen
ae6f5dd604
[stdlib] Add consuming/owned annotations to Collection implementations ( #19360 )
...
* Add consuming/owned annotations to Collection implementations
* Update SILOptimizer tests
* Fix access_marker_verify test
* XFAIL reconstruct_type_from_mangled_name
2018-09-21 12:06:56 -07:00
Lance Parker
ff9b80688f
made initializeNewElements non-Optional
2018-07-10 11:05:27 -07:00
Lance Parker
4c3bc53a4c
put back _sanityCheck
2018-07-09 10:18:17 -07:00
Lance Parker
0ccf21f9f1
remove _PointerFunction
2018-07-06 16:28:26 -07:00
Lance Parker
fd808f3ea7
[stdlib] De-gyb Arrays.swift.gyb ( #16230 )
...
De-gyb Array
2018-05-30 14:11:32 -07:00