Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Dmitri Gribenko
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Dmitri Gribenko
62f73f4469
Rename CollectionDefaultIterator to IndexingIterator
2016-01-21 11:49:03 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Max Moiseev
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
Chris Lattner
82e5c0c592
Update various tests to stop using ++/--
2015-12-21 18:07:37 -08:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Maxim Moiseev
c678a839dc
IndexType => Index
2015-12-09 17:16:42 -08:00
Maxim Moiseev
7e2466c14e
CollectionType => Collection
2015-12-09 17:12:48 -08:00
Dmitri Gribenko
99d3f96c6d
Rename IndexingGenerator to CollectionDefaultIterator
2015-12-09 17:12:07 -08:00
Dmitri Gribenko
1c0047829a
Rename SequenceType.generate() to SequenceType.iterator()
2015-12-09 17:11:17 -08:00
Joe Pamer
828eb68e72
Commit DaveA's API changes to 'print', along with the compiler changes necessary to support them.
...
There's still work left to do. In terms of next steps, there's still rdar://problem/22126141, which covers removing the 'workaround' overloads for print (that prevent bogus overload resolution failures), as well as providing a decent diagnostic when users invoke print with 'appendNewline'.
Swift SVN r30976
2015-08-04 01:57:11 +00:00
Dave Abrahams
1b0ff78e51
[stdlib] Drop now-unneeded test.
...
It was just checking a certiain dispatching path in the standard
library, which was removed with __ArrayType.
Swift SVN r29896
2015-07-02 20:35:25 +00:00
Dave Abrahams
fb241acf6f
[stdlib] kill __ArrayType
...
Swift SVN r29895
2015-07-02 18:47:05 +00:00
Joe Groff
d7b9ae72aa
Sema: Require '.init' when constructing from a dynamic metatype.
...
This makes it clearer that expressions like "foo.myType.init()" are creating new objects, instead of invoking a weird-looking method. The last part of rdar://problem/21375845.
Swift SVN r29375
2015-06-14 19:50:06 +00:00
Arnold Schwaighofer
f7771859d8
Rename the optimize_test feature to executable_test and document that feature.
...
Swift SVN r29213
2015-06-01 23:44:13 +00:00
Arnold Schwaighofer
3643c614a3
Run tests in optimize test modes
...
This runs all files that have a target-build-swift or target-run-stdlib-swift
RUN line in optimize test mode.
Swift SVN r29206
2015-06-01 21:23:31 +00:00
Dave Abrahams
abf8e2f921
[stdlib] ~>_copyToNativeArrayBuffer() => method
...
Swift SVN r29001
2015-05-25 03:28:54 +00:00
Dmitri Hrybenko
f46f16ae82
stdlib: implement new print() API
...
rdar://20775683
Swift SVN r28309
2015-05-08 01:37:59 +00:00
Dave Abrahams
ac3f047496
[stdlib] Renaming fallout from Mirror API review
...
toString(x) => String(x)
toDebugString(x) => String(reflecting: x)
Printable => CustomStringConvertible
DebugPrintable => CustomDebugStringConvertible
Also updated comments to clarify these protocols
Swift SVN r27090
2015-04-07 20:32:26 +00:00
Dmitri Hrybenko
ff2dd6320a
stdlib: fix coding style
...
When colon specifies is-a relationship between types, we put spaces on
both sides of the colon.
Swift SVN r27016
2015-04-05 05:54:55 +00:00
Dmitri Hrybenko
85764fd6aa
runtime: fix two bugs in swift_conformsToProtocol on Linux
...
First, on x86-64 Linux does not reserve lower 2 Gb of the address space,
and a space saving trick in the runtime did not work properly, confusing
pointers and failure generation numbers together.
Second, we ignored protocol conformances inside the executable (only
considered shared libraries).
Swift SVN r25972
2015-03-11 05:54:11 +00:00
Graham Batty
83b4384fac
Update test flags for linux failures and support.
...
Also removed the sdk 'feature' in favour of the more specific
objc_interop.
Swift SVN r24856
2015-01-30 21:31:48 +00:00
Graham Batty
83f27a8af7
Revert "Mark tests that don't pass on linux as XFAIL."
...
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.
Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe
Mark tests that don't pass on linux as XFAIL.
...
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Dave Abrahams
2794fe3a13
[stdlib] Restore a combination of 11 commits
...
...but remove all new uses of closures, to make things easier on the
optimizer.
Swift SVN r23183
2014-11-08 20:04:29 +00:00
Dave Abrahams
c77d7e353c
Revert a combination of 11 commits
...
These commits are suspected of causing performance regressions:
r22995, "[stdlib] Array nil state elimination, part trois"
r22994, "[stdlib] Array nil-state elimination II"
r22993, "[stdlib] Array nil-state elimination I"
r22992, "[stdlib] Still more nil buffer elimination"
r22991, "[stdlib] Nix an unneeded typealias"
r22988, "[stdlib] Nix _ContiguousArrayBuffer._base, part deux"
r22986, "[stdlib] Kill _ContiguousArrayBuffer._base, part I"
r22985, "[stdlib] destroy redundant property"
r22975, "[stdlib] More array nil-state destruction"
r22974, "[stdlib] Construct HeapBuffer without AnyObject"
r22959, "[stdlib] non-nil ContiguousArray"
Swift SVN r23001
2014-10-29 02:57:45 +00:00
Dave Abrahams
c06e89960b
[stdlib] Kill _ContiguousArrayBuffer._base, part I
...
Remove external dependencies
Swift SVN r22986
2014-10-28 03:58:40 +00:00
Erik Eckstein
e7ddfe4dde
[stdlib] Make ArrayType public because it is accessed from tests.
...
Swift SVN r22966
2014-10-27 15:08:24 +00:00
Dave Abrahams
ab69e26656
[stdlib] Actually run the ArrayCore test
...
Fixes rdar://problem/18646425
Running the test uncovered avoidable inefficiencies in Array copying, so
dispatch of _copyToNativeArrayBuffer was revamped. It's reasonable to
expect some speedups from this.
Also, the internal Array API requestNativeBuffer was highly error prone
when the source was a Slice, because it could return an array buffer
that represented more than the entire slice. That capability was
probably used for optimization once, but is no longer, and the error
prone API probably caused bugs, so it was reformed.
Swift SVN r22746
2014-10-15 03:24:47 +00:00
Jordan Rose
e83c117c30
[test] Hack: run stdlib tests first to start long-running tests earlier.
...
This decreases total testing time by over a minute on my old Mac Pro.
It probably has much less effect on systems with fewer cores, but shouldn't
be any worse there.
Swift SVN r22745
2014-10-15 01:30:51 +00:00