Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c74e4da
[stdlib][NFC] Shorten notes about SR-6437
lorentey Jul 23, 2018
2053f74
[stdlib] Set, Dictionary: Review variant enums
lorentey Jul 23, 2018
cc8e378
[stdlib] Set, Dictionary: Remove obsolete operator definitions.
lorentey Jul 23, 2018
e2fb468
[stdlib] Set, Dictionary: Review native & cocoa representations
lorentey Jul 23, 2018
ac9f294
[stdlib] Set, Dictionary: Review enumerators
lorentey Jul 23, 2018
fcadebc
[stdlib] Set, Dictionary: Review indices
lorentey Jul 23, 2018
e588f1a
[stdlib] Set, Dictionary: Audit inlinability of storage classes
lorentey Jul 24, 2018
3f9cd3f
[stdlib] Set, Dictionary: Review iterators
lorentey Jul 24, 2018
ad3c970
[stdlib] Set, Dictionary: Review builders
lorentey Jul 25, 2018
791d29f
[stdlib] Set, Dictionary: Audit one more round of inlinability attrib…
lorentey Jul 25, 2018
2201d0e
[stdlib] Set, Dictionary: Move compatibility typealiases to end of file
lorentey Jul 25, 2018
6ee9fce
[stdlib] Set, Dictionary: Remove remaining internal typealiases
lorentey Jul 25, 2018
063d926
[stdlib] Dictionary: Add implementation for first
lorentey Jul 25, 2018
b0471b5
[test] Update Mirror tests for new Set/Dictionary internals
lorentey Jul 26, 2018
9eb2743
[stdlib] _UnsafeBitMap: make internal; force-inline members
lorentey Jul 26, 2018
3bb720c
[stdlib] Set, Dictionary: Prefer collection-agnostic names for stored…
lorentey Aug 13, 2018
b1c81e5
[test] Update api-digester source compatibility tests
lorentey Aug 13, 2018
5e969ce
[stdlib] Set, Dictionary: Simplify _find(_:,startBucket:)
lorentey Aug 14, 2018
548f59a
[stdlib] Set, Dictionary: Make internal representations conform to Se…
lorentey Aug 14, 2018
2213b4e
[stdlib] Set, Dictionary: Review _SwiftDeferredNS*
lorentey Aug 14, 2018
d2d3c0c
[stdlib] Implement Set.contains without retrieving the stored value
lorentey Aug 15, 2018
d1ec3b9
[stdlib] Make Set.isSubset(of:) self-contained; remove standalone fun…
lorentey Aug 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,228 changes: 1,059 additions & 1,169 deletions stdlib/public/core/Dictionary.swift

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions stdlib/public/core/Hashing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,19 @@ internal func _stdlib_NSObject_isEqual(_ lhs: AnyObject, _ rhs: AnyObject) -> Bo
///
/// Accesses the underlying raw memory as Unmanaged<AnyObject> using untyped
/// memory accesses. The memory remains bound to managed AnyObjects.
@_fixed_layout // FIXME(sil-serialize-all)
@usableFromInline // FIXME(sil-serialize-all)
internal struct _UnmanagedAnyObjectArray {
/// Underlying pointer.
@usableFromInline // FIXME(sil-serialize-all)
internal var value: UnsafeMutableRawPointer

@inlinable // FIXME(sil-serialize-all)
internal init(_ up: UnsafeMutablePointer<AnyObject>) {
self.value = UnsafeMutableRawPointer(up)
}

@inlinable // FIXME(sil-serialize-all)
internal init?(_ up: UnsafeMutablePointer<AnyObject>?) {
guard let unwrapped = up else { return nil }
self.init(unwrapped)
}

@inlinable // FIXME(sil-serialize-all)
internal subscript(i: Int) -> AnyObject {
get {
let unmanaged = value.load(
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/SequenceAlgorithms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension Sequence {
/// list consisting of indices of names with five or fewer letters.
///
/// let names: Set = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"]
/// var shorterIndices: [SetIndex<String>] = []
/// var shorterIndices: [Set<String>.Index] = []
/// for (i, name) in zip(names.indices, names) {
/// if name.count <= 5 {
/// shorterIndices.append(i)
Expand Down
Loading