Alexis Beingessner
aba7ade5e9
[stdlib] remove unsafe escaping closure hack
2016-12-07 15:43:18 -05:00
Philippe Hausler
e8b19d9924
Merge pull request #6098 from phausler/additional_data_refinements
...
Merge the swift-corelibs-foundation version of Data
2016-12-06 15:16:51 -08:00
Mishal Shah
b01eb90844
Merge pull request #6103 from apple/revert-5978-redundant-array-init-removal
...
Revert "SILOptimizer: Replace Array.append(contentsOf: with Array.append(elem…"
2016-12-06 15:03:34 -08:00
Max Moiseev
01ba85d95f
Type hints for operators
2016-12-06 14:41:43 -08:00
Max Moiseev
edc08ac587
Adding prefix ~ protocol requirement to FixedWidthInteger
2016-12-06 13:48:10 -08:00
Max Moiseev
ae89d38f25
Consistent implementation of mutating vs non-mutating operators on FixedWidthInteger
2016-12-06 13:35:36 -08:00
Maxim Moiseev
bfae2471d6
[stdlib] operators on pointer types to static funcs ( #6100 )
2016-12-06 13:32:32 -08:00
practicalswift
3e31a3ade4
[gardening] Fix typos.
2016-12-06 21:42:01 +01:00
Max Moiseev
b9c910a2b9
Deprecation message to FixedWidthInteger.allZeros
2016-12-06 12:36:59 -08:00
Mishal Shah
5eece8860f
Revert "SILOptimizer: Replace Array.append(contentsOf: with Array.append(elem…"
2016-12-06 11:26:15 -08:00
practicalswift
cfdaf9f14a
[gardening] Fix invalid Swift URLs.
2016-12-06 20:12:20 +01:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Philippe Hausler
6134083d31
Merge the swift-corelibs-foundation version of Data in as a single source and correct initializers for copy variants as well as remove defers of _fixLifetime
2016-12-06 10:12:55 -08:00
Saleem Abdulrasool
3328592c20
Merge pull request #5942 from compnerd/windows-target-sdks
...
build: remove `TARGET_SDKS` from the runtime
2016-12-06 08:02:37 -08:00
Alexis Beingessner
b4d30b7c1a
Merge pull request #5988 from Gankro/roundup
...
[stdlib] delete dead code
2016-12-05 22:19:27 -05:00
Max Moiseev
d8e35f20b7
Adding trailingZeros property to BinaryInteger protocol
...
<rdar://problem/17505796>
2016-12-05 16:35:59 -08:00
eeckstein
68a6975412
Merge pull request #6073 from eeckstein/test-new-mangling
...
Mangling: wire up the new mangling in various places in the compiler,…
2016-12-05 15:08:46 -08:00
Slava Pestov
a32e11a0de
Merge pull request #6064 from slavapestov/killing-substituted-type-access-check
...
Refactor accessibility checking to use TypeReprs (most of the time) rather than Types
2016-12-05 13:19:58 -08:00
Erik Eckstein
d93a9fd103
Mangling: use mangling macros for some more symbols in the runtime library
2016-12-05 12:34:25 -08:00
Roman Levenstein
e34ae86be4
Merge pull request #5978 from ben-ng/redundant-array-init-removal
...
SILOptimizer: Replace [].append(contentsOf:) with [].append(element:)
2016-12-05 11:24:08 -08:00
Ben Ng
1b10c18b3e
SILOptimizer: Replace [].append(contentsOf:) with [].append(element:)
2016-12-05 12:27:42 -05:00
Slava Pestov
d1b753c46a
Sema: Remove a workaround for an accessibility problem in the standard library
2016-12-04 23:57:11 -08:00
Saleem Abdulrasool
c67a33fbc7
build: remove TARGET_SDKS from the runtime
...
The runtime and stubs are built for ALL targets, not specific ones. This allows
us to configure when cross-compiling to Windows again. Collapse the dual
addition of the swiftRuntime into a single build. This unifies the runtime
build for the apple and non-Apple SDKs. The difference here was the ObjC
interop sources. In order to deal with that unification add a CPP macro to
indicate whether the interop sources should be included or not.
2016-12-03 17:02:44 -08:00
Ben Cohen
33e999b69d
Merge pull request #6039 from airspeedswift/remove-anyhashable-trampolines
...
[stdlib] Remove trampolines for concrete types used with Set/Dict of AnyHashable
2016-12-03 14:46:07 -08:00
Max Moiseev
baf392eda4
Deprecating the BitwiseOperations protocol in favor of FixedWidthInteger
2016-12-02 16:59:32 -08:00
Erik Eckstein
5e6c5a70d7
Mangling: Let the demangler handle the new mangling scheme
2016-12-02 15:55:30 -08:00
Erik Eckstein
9f8b68ae11
Mangling: use macros instead of hard-coded swift symbol names.
...
This makes it easier to switch between the old and new mangling scheme.
2016-12-02 15:55:30 -08:00
Ben Cohen
30fc489b9b
Remove trampolines for using concrete hashable types with Set/Dictionary of AnyHashable
2016-12-02 15:38:07 -08:00
Max Moiseev
7afd9bbdef
Making StdlibUnittest compile in absense of + on Strideable
2016-12-02 15:21:51 -08:00
Philippe Hausler
4c2d6e24ff
Merge pull request #5975 from phausler/data_performance
...
First draft at a new inlinable version of struct Data
2016-12-02 10:44:51 -08:00
Nate Cook
df8486dc0d
Merge pull request #5994 from Gankro/doc-ptr
...
Fixups for UnsafePointer documentation
2016-12-02 11:27:22 -06:00
Jordan Rose
e54ec3d2d4
Merge pull request #5854 from jrose-apple/excise-silgen_name-from-Dispatch
...
Use an extra shims header to remove _silgen_name from Dispatch.
2016-12-02 09:20:24 -08:00
Greg Parker
5001ee4645
Revert "Test and Fix: subset and superset for empty character set" ( #6021 )
2016-12-01 20:26:10 -08:00
practicalswift
568a3e46ba
[gardening] Improve header consistency.
2016-12-02 01:47:38 +01:00
Jordan Rose
7d61a5e6a2
[SDK] Use an extra shims header to remove _silgen_name from Dispatch.
...
We still have a bunch of redeclarations of Dispatch functions to avoid
the automatic bridging of dispatch_data_t and dispatch_block_t, but
mostly this is a vast reduction in complexity (and increase in safety).
2016-12-01 16:06:15 -08:00
Philippe Hausler
e27b2b0923
Account for nullability issues of bytes in NSData subclasses and return a placeholder value for now
2016-12-01 15:34:04 -08:00
MuhammadAnnaqeeb
e41a29a11c
Fix subset and superset for empty character set ( #6000 )
...
Fix isSubset() and isSuperset() involving the empty CharacterSet.
2016-12-01 14:43:25 -08:00
Philippe Hausler
bdafb2dac0
Handle no-copy cases and custom deallocators as inline construction of swift Data
2016-12-01 12:27:57 -08:00
Maxim Moiseev
698d25cb3d
[overlay] Fixing the incorrect type of fanSpeedPercentage ( #5992 )
...
Fixes <rdar://problem/29167201>
2016-12-01 10:29:47 -08:00
Alexis Beingessner
ff82c1e59f
[docs] Change argument name to match docs.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
8e4f98ff42
[docs] downgrade internal notes to normal comments.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
3d0d3e17a9
[docs] Add GEP preconditions to UnsafePointer.
...
Offsets lower to GetElementPointer inbounds, which specifies that it's
Undefined Behaviour for the result to be out of bounds, regardless of if
the result is actually dereferenced.
2016-11-30 18:35:54 -05:00
Joe Groff
1f6a8ff3ea
Merge pull request #5394 from spevans/pr_libicu_with_static_executable
...
[SR-648] Add option to create statically linked binaries (take 2)
2016-11-30 12:34:58 -08:00
Alexis Beingessner
bd50a6a5c6
[stdlib] delete dead code
2016-11-30 15:17:20 -05:00
Max Moiseev
3059b3cdd1
Merge branch 'master' into new-integer-protocols
2016-11-30 10:45:10 -08:00
Simon Evans
707588c962
[SR-648] ELF static binary fixes
...
- Revert the use of SWIFT_RUNTIME_EXPORT in ImageInspectionELF.cpp and
fix the unittests by explicitly adding the file to the list
- Revert the change of section data names
2016-11-30 18:39:16 +00:00
Max Moiseev
6a5739f3c3
Changing == and < on UnsafeRawPointer to static funcs
2016-11-30 10:17:32 -08:00
Tony Parker
66a1aaa8ed
Clarify a few comments on autoupdating vs current for TimeZone, Calendar, and Locale
2016-11-30 08:12:17 -08:00
Max Moiseev
d2d814edef
Changing == and < on UnsafeRawPointer to static funcs
2016-11-29 16:00:23 -08:00
Max Moiseev
2b50c6fadc
Fixing the benchmark crash
...
... by removing the + - overloads for Strideable, and only leaving them
for pointers (both Strideable and _Pointer).
Strideable was used in the past to simplify advancing collection
indices, but with new collection indexing model it is no longer
necessary to overload `+` and `-` for all strideable types..
2016-11-29 15:55:46 -08:00