Max Moiseev
d7e92a5bc5
Using masking shifts
2016-12-15 14:53:56 -08:00
Max Moiseev
61b923f396
Using init(extendingOrTruncating:) instead of a deprecated init(truncatingBitPattern:)
2016-12-15 14:53:31 -08:00
Nate Cook
f2bc719eff
[stdlib] Address feedback from @stephentyrone
2016-12-15 13:55:38 -06:00
Nate Cook
a14daa0c44
[stdlib] Address feedback from @gottesmm
2016-12-15 13:52:33 -06:00
Nate Cook
e070568078
[stdlib] Add documentation for pointer operators
2016-12-15 13:51:32 -06:00
Nate Cook
3bc4909de8
[stdlib] Various revisions and fixes for documentation
...
- Fix wording for RandomAccessCollection
- Add note about array growth to reserveCapacity(_:)
- Reformat lazy flatMap discussions
- Improve Collection symbol consistency
2016-12-15 11:47:19 -06:00
Greg Parker
eddf2de4b5
[build] Reposition an orphaned comment.
2016-12-14 18:54:49 -08:00
swift-ci
55bdf5954c
Merge pull request #6285 from eeckstein/more-mangling
2016-12-14 17:21:43 -08:00
Max Moiseev
9a8cdbc703
Merge branch 'master' into new-integer-protocols
2016-12-14 17:18:02 -08:00
Greg Parker
8734f21bd9
[runtime] Improve thread-safety of swift_conformsToProtocol(). ( #5719 )
2016-12-14 16:54:25 -08:00
Erik Eckstein
c34c0e4bbc
Mangling: Don’t hardcode the mangling prefixes in symbols selected by SELECT_MANGLING
2016-12-14 16:39:00 -08:00
Max Moiseev
701740a884
Revert "Speeding up the generic smart shift"
...
This reverts commit 26111e8dd8 .
2016-12-14 13:54:37 -08:00
Max Moiseev
26111e8dd8
Speeding up the generic smart shift
2016-12-14 13:54:28 -08:00
Nate Cook
7494e2045e
[stdlib] Revise unsafe pointers documentation
...
This revises and expands upon documentation for the standard library's
unsafe pointer types. This includes typed and raw pointers and buffers,
the MemoryLayout type, and some other top-level functions.
2016-12-14 14:58:24 -06:00
Robert Widmann
be9f205115
Merge pull request #6246 from CodaFi/the-farmer-refuted
...
[Stdlib][ABI] Resolve ABI FIXME #25
2016-12-14 12:20:45 -05:00
Hugh Bellamy
aeaf0463af
Port stdlib/public/stubs/GlobalObjects to Windows
2016-12-14 15:36:16 +00:00
Alexis Beingessner
41d8b2f6d2
Merge pull request #6211 from dtorres/unique-removeAll
...
[stdlib] Resolve unnecessary buffer copy in HashedCollections
2016-12-13 23:49:38 -05:00
Max Moiseev
7a8a840071
Fixing a typo
2016-12-13 16:16:37 -08:00
K Staring
cd52ed65c9
fix erroneous logic pointed and commas out by @jrose-apple and @llvm-beanz
2016-12-14 00:10:22 +01:00
Max Moiseev
bfbab798b9
Merge branch 'master' into new-integer-protocols
2016-12-13 14:43:31 -08:00
Erik Eckstein
c73ac007d1
Mangling: support new mangled symbols in ErrorObject.mm
2016-12-13 11:01:58 -08:00
Max Moiseev
0b271e86d1
Removing overloads of == on concrete types in favor of a generic one that is now faster
2016-12-13 10:47:36 -08:00
Max Moiseev
b42c5144d8
Commenting an overload that leads to compiler error
2016-12-13 10:46:52 -08:00
Hugh Bellamy
eca5b3da34
Change _MSC_VER conditions to _WIN32 conditions in stubs
2016-12-13 14:15:39 +00:00
Robert Widmann
fe00dc74ea
Get rid of _stdlib_didEnterMain
...
Process arguments are now fetched per-platform
2016-12-12 23:47:48 -05:00
Max Moiseev
c655d8a053
Cleaning up the smart shifts
2016-12-12 14:47:17 -08:00
Max Moiseev
74253ea91f
Speeding up the heterogeneous == and < by using more opimizable checks
2016-12-12 14:25:32 -08:00
Slava Pestov
30c81e862f
Foundation overlay: Fix resilient build
2016-12-12 14:05:50 -08:00
Saleem Abdulrasool
6b8b156014
Merge pull request #6218 from compnerd/runtime-unused-variable
...
runtime: clean up unused variable warning
2016-12-12 12:17:47 -08:00
swift-ci
2d5c4dea4e
Merge pull request #6026 from hughbe/reflection-msvc
2016-12-12 08:36:11 -08:00
Saleem Abdulrasool
5217db0d73
runtime: clean up unused variable warning
...
classType is unused without ObjC interop. Simplify the code a bit by increasing
the scope covered by the SWIFT_OBJC_INTEROP. It also silences the warning.
2016-12-11 21:42:23 -08:00
Saleem Abdulrasool
ad99326e2e
Merge pull request #6138 from hughbe/shims-msvc
...
Fix errors and warnings building swift/shims on Windows using MSVC
2016-12-11 14:19:06 -08:00
Diego Torres
7168a9ea6a
Resolve unnecessary buffer copy in HashedCollections
2016-12-11 21:54:09 +01:00
Hugh Bellamy
137b2ab295
Fix errors and warnings building swift/reflection on Windows with MSVC
2016-12-11 10:00:32 +00:00
Doug Coleman
3e7e514050
Merge pull request #6180 from erg/overlay-target-closure
...
[cmake]: Allow a --darwin-overlay-target=FooKit to build one overlay and its dependencies
2016-12-10 13:41:04 -08:00
Saleem Abdulrasool
ac6edab22e
Merge pull request #6025 from hughbe/remote-msvc
...
Port swift/remote to Windows and MSVC
2016-12-10 12:54:35 -08:00
Hugh Bellamy
53744b9b5a
Fix errors and warnings building swift/remote on Windows using MSVC
2016-12-10 16:05:01 +00:00
Doug Coleman
ca9026a720
[cmake]: Allow a --darwin-overlay-target=CloudKit to build one overlay
...
and its transitive closure of overlay dependencies.
[utils]:find-overlay-deps-closure.sh: Add a bash script to find the
closure of all other overlays required by a target overlay.
2016-12-09 17:00:24 -08:00
practicalswift
76f0fdd670
[gardening] NULL → nullptr
2016-12-09 23:17:54 +01:00
Alexis Beingessner
ec4c99377e
Merge pull request #6127 from Gankro/escape-fix
...
[stdlib] remove unsafe escaping closure hack
2016-12-09 14:43:34 -05:00
Max Moiseev
5fb929cabf
Merge branch 'master' into new-integer-protocols
2016-12-09 10:51:48 -08:00
swift-ci
962235bca0
Merge pull request #6157 from bob-wilson/fix-asan
2016-12-08 19:25:42 -08:00
Bob Wilson
c2e63dcbc1
Disable sanitizers for the runtime with SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER
...
My recent change to enable SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER by default
exposed this problem with ASan. There are some places, e.g., the
swift-reflection-dump tool, where we link together Swift runtime code with
other code built by the host compiler. If we try to use the sanitizers
with both compilers mixed together, this can cause link failures.
To get the same coverage, we probably need to sanitize the runtime
separately. rdar://problem/29567862
2016-12-08 19:02:16 -08:00
Max Moiseev
72fe1e4cac
Speeding up .description for built-in integers
2016-12-08 15:19:33 -08:00
Max Moiseev
4831aac549
Speeding up conversion between integer types
...
This change levereges the fact that there is no need to check for the
upper bound if the source type if narrower than the destination type.
2016-12-08 15:19:32 -08:00
Hugh Bellamy
60e1cd1271
Fix condition in the runtime from _MSC_VER to _WIN32
2016-12-08 21:23:45 +00:00
Hugh Bellamy
87012b85cf
Fix warning building with compiler without __has_feature
2016-12-08 21:22:51 +00:00
Hooman Mehr
d7d05e1a92
Make .significandWidth do the right thing for exact powers of two
...
Resolves SR-2868.
2016-12-08 14:49:19 -05:00
Max Moiseev
9b2f8858ec
Merge branch 'master' into new-integer-protocols
2016-12-08 09:38:38 -08:00
Max Moiseev
485e7c06f8
More type hints and inlining to speed up integer convertions
2016-12-07 16:17:33 -08:00