Max Moiseev
ffeeaca8b1
Using faster initializer for integers where appropriate
2016-11-16 14:45:33 -08:00
Max Moiseev
6104f86e39
Simplifying masking shift implementation on concrete integers
2016-11-16 14:45:33 -08:00
Max Moiseev
ffc8a37811
Strideable for _Pointer is not necessary in Swift 4
...
All the necessary methods and operators are already implemented for
concrete pointer types more efficiently.
2016-11-16 14:45:33 -08:00
Max Moiseev
60751f614a
Hiding the shift operators of type (Self, Int) -> Self
2016-11-16 14:45:33 -08:00
Max Moiseev
8fea72db20
Using more masking shifts
2016-11-16 14:45:32 -08:00
Maxim Moiseev
32feae52b6
Marking .abs() method for floating point types as obsolete in Swift 4 ( #5810 )
...
* Marking .abs() method for floating point types as obsolete in Swift 4
...and deprecated in Swift 3.1
2016-11-16 14:00:10 -08:00
Alexis Beingessner
7536b9420e
Merge pull request #5722 from Gankro/unmanaged
...
Resolve ABI FIXME#158
2016-11-16 16:42:25 -05:00
Doug Coleman
fc945ef86a
Merge pull request #5806 from erg/sdk-minimum-versions
...
cmake: Allow requiring minimum versions using sdk-os-version triples
2016-11-15 18:48:27 -08:00
swift-ci
67f4ae078b
Merge pull request #5723 from natecook1000/nc-fixes-05
2016-11-15 16:47:20 -08:00
Doug Coleman
692bc1c031
cmake: Allow requiring minimum versions using sdk-os-version triples on
...
Darwin.
Example:
--darwin-sdk-deployment-targets=fookit-ios-8.0;barkit-tvos-9.2
2016-11-15 16:43:37 -08:00
Alexis Beingessner
ad0a9daf8f
Resolve ABI FIXME#158
2016-11-15 17:36:21 -05:00
Nate Cook
534bea8f9f
[stdlib] Update revisions with feedback
2016-11-15 15:00:10 -06:00
Slava Pestov
ba72188927
stdlib: Fix resilient build
2016-11-14 18:03:11 -08:00
Chris Williams
2857b1cbc8
SE-0080 (4/5) - Failable initializers for Int->Float
2016-11-14 17:04:49 -08:00
Slava Pestov
7c1adfe31d
Runtime: Use metadata accessor functions in Reflection.mm and make sure they're public
...
Correct behavior with resilience requires calling accessors instead
of using the metadata symbols directly.
For some reason this file gets linked in with SwiftRuntimeTests too,
so make the types @_versioned in the stdlib.
Fixes <rdar://problem/29213794>.
2016-11-14 16:25:23 -08:00
Nate Cook
20ce99a255
[stdlib] Fix example in String.CharacterView discussion
2016-11-14 15:43:50 -06:00
Max Moiseev
f34808be11
using masking shifts
2016-11-14 10:16:28 -08:00
Max Moiseev
92813be403
Merge branch 'master' into new-integer-protocols
2016-11-11 16:14:57 -08:00
Nate Cook
9b2128eb35
[stdlib] Add missing trivial type info to withUnsafeBytes
2016-11-11 14:03:37 -06:00
Nate Cook
7ca1c4b2fe
[stdlib] Fix incorrect operator name
2016-11-11 12:51:24 -06:00
practicalswift
38351faefc
[gardening] Fix recently introduced typos
2016-11-11 18:35:01 +01:00
Nate Cook
bd6025f463
[stdlib] Various documentation fixes
...
- Fix incorrect type in Float(_:String) examples
- Expand discussions for ExpressibleBy_Literal protocols
- Add notes about non-escaping unsafe pointers from closures
- Add note about isEmpty to Collection.count discussions
- Describe imported `Bool` types
- Clean up some floating point discussions
- Provide some additional operator documentation
- Revise documentation for CVarArg functions
- Fix incorrect Set method parameter descriptions
- Clarify array bridging behavior
- Add collection subscript complexity notes
2016-11-11 11:23:49 -06:00
Slava Pestov
db79762c3b
Reflection: Fix class layout start offset calculations
...
Fixes <rdar://problem/29115967>.
2016-11-11 03:13:22 -08:00
Slava Pestov
83692bb398
Reflection: Fix bug where presence of a no-payload enum resets field offsets back to zero for subsequent fields
...
The alignment was set to 0, which messed up the record layout
computations. Add an assert to catch this in the future.
Fixes <rdar://problem/29115967>.
2016-11-10 22:43:15 -08:00
Alexis Beingessner
2ac37cb76e
Merge pull request #5690 from Gankro/versioned
...
WIP fix resilience build
2016-11-09 12:47:36 -05:00
Doug Gregor
320e439f24
[Standard library] Duplicate subscript requirement in RandomAccessCollection.
...
Similar to what we did for BidirectionalCollection, duplicate the
subscript-returning-SubSequence requirement in
RandomAccessCollection.
2016-11-08 16:35:26 -08:00
Alexis Beingessner
9ad14ea890
WIP fix resilience build
2016-11-08 19:12:26 -05:00
Doug Gregor
f786a9a230
[Standard library] Duplicate subscript requirement in BidirectionalCollection.
...
The BidirectionalCollection protocol has no requirements that mention
the associated type 'SubSequence', which means it cannot be easily
inferred. Duplicate the subscript requirement from Collection into
BidirectionalCollection to aid type witness inference.
2016-11-08 16:11:30 -08:00
Doug Gregor
6f362357b2
[Random access collection] Weaken constraints for 'indices' default.
...
Extensions of the RandomAccessCollection protocol provide two
mutually-incompatible default implementations for 'indices', one of
which uses DefaultRandomAccessIndices<Self> and the other uses
CountableRange<Index>. Type witness inference (rightly) considers the
two ambiguous, although it didn't before, causing regressions.
Remove the same-type constraint
SubSequence == DefaultRandomAccessIndices<Self>
from the most general extension, so that the more-specialized,
CountableRange version is selected when it's constraints are met, and
the most-general version is selected otherwise.
The down-side to this change is that the most-general version of
'indices', which produces a DefaultRandomAccessIndices<Self>, will be
available in all types that conform to RandomAccessCollection, even if
they have a different Indices type.
2016-11-08 16:11:30 -08:00
swift-ci
596c290d9b
Merge pull request #5673 from parkera/fix_affinetransform_init_master
2016-11-08 10:11:12 -08:00
Alexis Beingessner
5fdd0c7b5b
revert _CocoaDictionaryBuffer indexing design
...
The use of a lazy var crashes the swift module (de)serializer.
2016-11-07 21:28:24 -05:00
Tony Parker
8f8f6fd5f3
Fix AffineTransform initializer
2016-11-07 14:02:08 -08:00
practicalswift
17503b0d85
[gardening] Use American English.
2016-11-06 10:12:04 +01:00
practicalswift
4552fc8f88
[gardening] Use American English: "behaviour" → "behavior"
2016-11-05 20:33:57 +01:00
practicalswift
debeebaa3a
[gardening] Fix recently introduced typo: "nsenumator" → "nsenumerator"
2016-11-05 20:32:25 +01:00
Alexis Beingessner
c565c7ca02
Merge pull request #5291 from Gankro/dsindex
...
[stdlib] Rewriting native hashed collection indices
2016-11-04 11:21:57 -04:00
Alexis Beingessner
e4c5e159c9
remove useless constant redefinition
2016-11-04 03:17:13 -04:00
Alexis Beingessner
3cdc8ec444
remove buffer header to eliminate optional traps
2016-11-04 02:44:29 -04:00
Alexis Beingessner
931f7ba658
actually used the cached keys/values pointer
2016-11-04 01:19:50 -04:00
Alexis Beingessner
5e776e5e39
cleanup initializers in HashedCollections
2016-11-04 01:19:50 -04:00
Alexis Beingessner
428cdac57c
leave FIXME for future dictionary bucaneers
2016-11-04 01:01:35 -04:00
Alexis Beingessner
a62f6c6a89
Fix incorrect bitcasts, refactor code to guard against this error.
2016-11-04 01:01:35 -04:00
Alexis Beingessner
b4d97776d8
more comment cleanups
2016-11-04 01:01:35 -04:00
Alexis Beingessner
731aa1494b
Properly if-def out bridging code.
2016-11-03 19:55:36 -04:00
Alexis Beingessner
bb0b4be7ac
Update comment to clarify why it's interesting, link a relevant impl.
2016-11-03 19:55:36 -04:00
Alexis Beingessner
8eea522e9c
rename storage type to be more useful
2016-11-03 19:52:30 -04:00
Alexis Beingessner
b1425ce78b
remove _'s from some variables that don't need it
2016-11-03 19:52:30 -04:00
Alexis Beingessner
41fb15f042
rename Buffer <---> Storage in HashedCollections to match conventions
2016-11-03 19:52:30 -04:00
Alexis Beingessner
3144870e86
add new toll-free bridge fast-paths to HashedCollections
2016-11-03 19:52:30 -04:00
Alexis Beingessner
a43c1dfba0
Some minor cleanups in HashedCollections:
...
* rename bridgingStorage to bridged
* add a missing fixLifetime
* remove useless temporary
2016-11-03 19:52:30 -04:00