Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove conditional compilation of tvOS #15

Merged
merged 1 commit into from
Dec 1, 2015

Conversation

gribozavr
Copy link
Contributor

No description provided.

@gribozavr gribozavr assigned gribozavr and jrose-apple and unassigned gribozavr Dec 1, 2015
@gribozavr
Copy link
Contributor Author

@jrose-apple Could you take a look?

@jrose-apple
Copy link
Contributor

Looks good to me. Thanks!

gribozavr added a commit that referenced this pull request Dec 1, 2015
Remove conditional compilation of tvOS
@gribozavr gribozavr merged commit 9886aee into swiftlang:master Dec 1, 2015
@gribozavr gribozavr deleted the unifdef-tvos-target branch December 2, 2015 02:48
airspeedswift added a commit that referenced this pull request Oct 27, 2016
[stdlib] Add arg labels to _expectEnd (ABI FIXME #15)
lorentey added a commit to lorentey/swift that referenced this pull request Jan 11, 2018
* Restore support for 32-bit platforms

On 32-bit platforms, add an extra 32-bit word to both _StringObject and _StringGuts for padding and metadata bit storage.

Padding _StringObject rather than adding two extra words to _StringGuts makes for unattractively discontiguous inline storage. However, _StringObject needs 2 more metadata bits than are available in a 32-bit BridgeObject; shoving an extra word in there was easier than a full code reorganization.

To make use of all this luxurious extra space, on 32-bit platforms, _StringGuts._otherBits always contains the count for contiguous strings, while the new _StringGuts._extraBits stored property contains the start address. This makes extracting an unmanaged view a trivial operation.

* [runtime] SwiftObject, SwiftValue: Simplify -description implementation

Previously, these classes implemented -description and -debugDescription by
1) calling _getSummary in the stdlib to get the Swift String description corresponding to the value, and then
2) calling _convertStringToNSString in the Foundation overlay to convert the resulting String into an NSString.

To hold the Swift String value between the two calls, SwiftObject defined a dummy C++ struct whose layout is supposed match that of Swift Strings.

Instead of updating this struct to the new String representation, this commit collapses the two stages above into a single call into a new generic function, _getDescription (defined in the Foundation overlay), which gets rid of this maintenance chore.

* [runtime] Reflection: Update String representation to follow stdlib changes

* _StringObject: Replace _BridgeObject with AnyObject? on 32-bit platforms

Also, don't store any tagged value in _StringObject on 32-bit -- with AnyObject taking up a full word now, we only have 28 bits available (30 tops), which is not enough to store either a count nor a start address.

* LibcShims: Adjust _swift_stdlib_print_hex for 32-bit platforms.

* [test] Update 32-bit reflection tests

Previous (speculative) update missed a couple of offset/size changes.

* [test] IRGen/lazy_multi_file.swift: Allow for the possibility of an sret param before self.

String is 4 words long on 32 bit platforms, which gets returned via sret on i386.

* [test] DebugInfo/self.swift: Don't expect self to be alloca'd first

On i386, space for a String gets allocated before the self variable.

* _StringGuts: Add _RawBitPattern typealias

* _StringGuts: Fix an overlapping access warning

* _StringVariant: Remove IndexDistance condition

* [runtime] Update mangled symbol
lorentey added a commit to lorentey/swift that referenced this pull request Jan 18, 2018
* Restore support for 32-bit platforms

On 32-bit platforms, add an extra 32-bit word to both _StringObject and _StringGuts for padding and metadata bit storage.

Padding _StringObject rather than adding two extra words to _StringGuts makes for unattractively discontiguous inline storage. However, _StringObject needs 2 more metadata bits than are available in a 32-bit BridgeObject; shoving an extra word in there was easier than a full code reorganization.

To make use of all this luxurious extra space, on 32-bit platforms, _StringGuts._otherBits always contains the count for contiguous strings, while the new _StringGuts._extraBits stored property contains the start address. This makes extracting an unmanaged view a trivial operation.

* [runtime] SwiftObject, SwiftValue: Simplify -description implementation

Previously, these classes implemented -description and -debugDescription by
1) calling _getSummary in the stdlib to get the Swift String description corresponding to the value, and then
2) calling _convertStringToNSString in the Foundation overlay to convert the resulting String into an NSString.

To hold the Swift String value between the two calls, SwiftObject defined a dummy C++ struct whose layout is supposed match that of Swift Strings.

Instead of updating this struct to the new String representation, this commit collapses the two stages above into a single call into a new generic function, _getDescription (defined in the Foundation overlay), which gets rid of this maintenance chore.

* [runtime] Reflection: Update String representation to follow stdlib changes

* _StringObject: Replace _BridgeObject with AnyObject? on 32-bit platforms

Also, don't store any tagged value in _StringObject on 32-bit -- with AnyObject taking up a full word now, we only have 28 bits available (30 tops), which is not enough to store either a count nor a start address.

* LibcShims: Adjust _swift_stdlib_print_hex for 32-bit platforms.

* [test] Update 32-bit reflection tests

Previous (speculative) update missed a couple of offset/size changes.

* [test] IRGen/lazy_multi_file.swift: Allow for the possibility of an sret param before self.

String is 4 words long on 32 bit platforms, which gets returned via sret on i386.

* [test] DebugInfo/self.swift: Don't expect self to be alloca'd first

On i386, space for a String gets allocated before the self variable.

* _StringGuts: Add _RawBitPattern typealias

* _StringGuts: Fix an overlapping access warning

* _StringVariant: Remove IndexDistance condition

* [runtime] Update mangled symbol
slavapestov pushed a commit to slavapestov/swift that referenced this pull request Nov 27, 2018
Port most of libdispatch tests to Linux (31 compile; 21 pass).
slavapestov pushed a commit to slavapestov/swift that referenced this pull request Nov 27, 2018
Port most of libdispatch tests to Linux (31 compile; 21 pass).

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
kateinoigakukun referenced this pull request in kateinoigakukun/swift Nov 16, 2019
Any changes in this repository should be tested with the packaging script and a basic smoke test that compiles `hello.swift` on CI.

In the future packaging and linking scripts should be moved to this repository, `swiftwasm-sdk` and `swiftwasm-package-sdk` projects probably would be archived when that happens. For now we're pulling the scripts from `swiftwasm-package-sdk` as it is.

* Run packaging scripts and smoke test on CI

* Make prepare-package.sh executable

* Make SymbolLookup.swift compilable for wasm

* Use GitHub Actions upload/download steps

* Remove packaging steps from ci-*.sh

* Move prepare-package.sh to main.yml to avoid clone

* Refine formatting in .github/workflows/main.yml
lorentey pushed a commit that referenced this pull request Dec 11, 2019
kateinoigakukun referenced this pull request in kateinoigakukun/swift Dec 14, 2019
Any changes in this repository should be tested with the packaging script and a basic smoke test that compiles `hello.swift` on CI.

In the future packaging and linking scripts should be moved to this repository, `swiftwasm-sdk` and `swiftwasm-package-sdk` projects probably would be archived when that happens. For now we're pulling the scripts from `swiftwasm-package-sdk` as it is.

* Run packaging scripts and smoke test on CI

* Make prepare-package.sh executable

* Make SymbolLookup.swift compilable for wasm

* Use GitHub Actions upload/download steps

* Remove packaging steps from ci-*.sh

* Move prepare-package.sh to main.yml to avoid clone

* Refine formatting in .github/workflows/main.yml
kateinoigakukun referenced this pull request in kateinoigakukun/swift Jan 11, 2020
Any changes in this repository should be tested with the packaging script and a basic smoke test that compiles `hello.swift` on CI.

In the future packaging and linking scripts should be moved to this repository, `swiftwasm-sdk` and `swiftwasm-package-sdk` projects probably would be archived when that happens. For now we're pulling the scripts from `swiftwasm-package-sdk` as it is.

* Run packaging scripts and smoke test on CI

* Make prepare-package.sh executable

* Make SymbolLookup.swift compilable for wasm

* Use GitHub Actions upload/download steps

* Remove packaging steps from ci-*.sh

* Move prepare-package.sh to main.yml to avoid clone

* Refine formatting in .github/workflows/main.yml
kateinoigakukun referenced this pull request in kateinoigakukun/swift Jan 24, 2020
Any changes in this repository should be tested with the packaging script and a basic smoke test that compiles `hello.swift` on CI.

In the future packaging and linking scripts should be moved to this repository, `swiftwasm-sdk` and `swiftwasm-package-sdk` projects probably would be archived when that happens. For now we're pulling the scripts from `swiftwasm-package-sdk` as it is.

* Run packaging scripts and smoke test on CI

* Make prepare-package.sh executable

* Make SymbolLookup.swift compilable for wasm

* Use GitHub Actions upload/download steps

* Remove packaging steps from ci-*.sh

* Move prepare-package.sh to main.yml to avoid clone

* Refine formatting in .github/workflows/main.yml
MaxDesiatov referenced this pull request in MaxDesiatov/swift May 1, 2020
Any changes in this repository should be tested with the packaging script and a basic smoke test that compiles `hello.swift` on CI.

In the future packaging and linking scripts should be moved to this repository, `swiftwasm-sdk` and `swiftwasm-package-sdk` projects probably would be archived when that happens. For now we're pulling the scripts from `swiftwasm-package-sdk` as it is.

* Run packaging scripts and smoke test on CI

* Make prepare-package.sh executable

* Make SymbolLookup.swift compilable for wasm

* Use GitHub Actions upload/download steps

* Remove packaging steps from ci-*.sh

* Move prepare-package.sh to main.yml to avoid clone

* Refine formatting in .github/workflows/main.yml
DougGregor pushed a commit to DougGregor/swift that referenced this pull request Apr 28, 2024
correct the location for the ICU packaging rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants