Commit Graph

4850 Commits

Author SHA1 Message Date
Nikolay Igotti 07add87d7b Properly handle Kotlin from Objective-C allocations. (#2934) 2019-04-30 18:22:13 +03:00
Martin Petrov e62bcea97f Don't print phases twice with -Xlist-phases.
createPhaseConfig already prints out the phases if this flag is present. Remove
it from KonanDriver so it doesn't print twice.
2019-04-30 15:41:06 +03:00
Roman Artemev a65b782eb9 Merge SuspendFunctionsLowering with common part
* extract platform specific part into separate lowering
2019-04-30 12:51:01 +03:00
Roman Artemev 2da91bf388 Move utils to Kotlin out of K/N repo 2019-04-30 12:51:01 +03:00
Roman Artemev 772f6d9b21 Add unimplemented parts of common backend interface (Context & Symbols) 2019-04-30 12:51:01 +03:00
LepilkinaElena dbc10781af Unify compiler and cinterop flags names (#2915) 2019-04-30 12:48:50 +03:00
Dmitriy Dolovov 474fc4eb04 Add filtering for standard KLIBs (advance kotlin-native-shared version) (#2919) 2019-04-30 12:57:52 +07:00
Igor Chevdar 2138b37dc9 Supported IrConstructorCall
(cherry picked from commit 315362b0fc3ddec049955b67f1df876d5569aa22)
2019-04-29 22:03:41 +03:00
Vasily Levchenko 6708e4df80 [kotlin compiler][update] 1.3.40-dev-2423 2019-04-29 22:03:41 +03:00
Nikolay Igotti 1161e2c6b4 Improve stack slots object references handling. (#2912) 2019-04-29 17:03:40 +03:00
SvyatoslavScherbina 8de601e794 Update INTEROP.md (#2928) 2019-04-29 16:56:49 +03:00
SvyatoslavScherbina dd1d229297 Fix #2926 (#2927) 2019-04-29 16:55:34 +03:00
Pavel Punegov 8a4f06cdaf Escape backslash symbol in file path 2019-04-29 16:07:56 +03:00
Martin Petrov 7e38685c95 Fix invalid isEqual swift_name. (#2923)
Compiling frameworks currently produces the following warning:
```
./hello.framework/Headers/hello.h:150:63: warning: 'swift_name' attribute has invalid identifier for parameter name [-Wswift-name-attribute]
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(:)")));
```
2019-04-29 13:52:46 +03:00
Nikolay Igotti 019d4b1981 Fix typo in MIPS platform names. 2019-04-26 18:13:17 +03:00
Nikolay Igotti fe78fad45d Support linux/arm64 targets. 2019-04-26 18:13:17 +03:00
LepilkinaElena e348e7845b Update Docker with new version (#2920) 2019-04-26 17:00:55 +03:00
SvyatoslavScherbina cd4e0af034 Improve support for Objective-C methods clashing with methods of Any (#2914) 2019-04-25 11:29:35 +03:00
Ilya Matveev 270a53ac8b Fix composite build against shared
Gradle executes buildSrc logic in a separate classloader.
Thus we need to build sources of the composite shared
in buildSrc and include them in runtime dependencies of
the buildSrc:plugin project.
2019-04-25 13:23:14 +07:00
SvyatoslavScherbina 14fb86d487 Refactor and improve Objective-C override checks (#2907) 2019-04-24 15:01:47 +03:00
Mark Punzalan 73d5ac8120 Fix typo in ring benchmark list (incorrect benchmarks are called). (#2911) 2019-04-24 12:38:41 +03:00
Mark Punzalan 6d544cd667 Add option to use regexes for filtering and add property for passing compiler args when running benchmarks. (#2894) 2019-04-24 10:18:22 +03:00
Nikolay Igotti a764723e4f Fix object sharing and early instance allocations. (#2908) 2019-04-23 16:43:39 +03:00
SvyatoslavScherbina a6f1048e8a Fix #2872 (#2898) 2019-04-23 11:40:15 +03:00
SvyatoslavScherbina 44dbf684e5 Fix casts to type parameters with multiple bounds (#2891)
Fix #2888
2019-04-23 11:40:15 +03:00
Vasily Levchenko 85485522cf [kotlin compiler][update] 1.3.40-dev-2068 (#2905) 2019-04-23 08:06:25 +03:00
Nikolay Igotti 248414a1c2 Add platform zlib for Linux arm32. (#2903) 2019-04-22 15:49:32 +03:00
Ilya Matveev 9f5e4c3634 Exclude the testing_stacktrace test for wasm32 2019-04-22 11:10:35 +07:00
Svyatoslav Scherbina d90d6cd47a Add trivial test for @OverrideInit 2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina 99e1ec6c9f Fix location for @OverrideInit-derived synthetic method parameters 2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina 39e31d7086 Support *arrayOf(...) for variadic C/Objective-C functions
To be used with named arguments, which may be required to resolve ambiguity.
2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina e437339d9a Support variadic Objective-C methods 2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina 79e36a31cf Add improved compiler error reporting util 2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina ba212bddba Make arrayOf(...) intrinsic 2019-04-19 13:52:19 +03:00
Elena Lepilkina f8f44533a4 Removed people notification from report 2019-04-19 13:36:13 +03:00
Elena Lepilkina 528820db61 Disable sending performance report to users 2019-04-19 10:22:23 +03:00
SvyatoslavScherbina e87680825e Fix C names mangling in CBridgeGen (#2895) 2019-04-18 15:51:00 +03:00
Mark Punzalan aae53cfda9 Generate unsigned ICmp instructions for builtin comparison operators for Char. (#2875) 2019-04-18 09:12:34 +03:00
Dmitriy Dolovov a9a8559410 Support building tetris sample for MinGW32 (#2890)
* Samples: Make API inside of MPPTools less verbose

* Samples: Ability to build tetris for MinGW X86

* Samples: Instructions for installing SDL2 to MinGW32

* Fix location of MinGW32

* Simplify MinGW32 check
2019-04-18 10:19:28 +07:00
Pavel Punegov 8272ca7442 Update compiler to 1.3.40-dev-1842 (#2876) 2019-04-17 17:44:14 +03:00
Alexander Gorshenev 10ade4cd35 Don't use private interfaces in stdlib.
This is a murky area which exists just because jvm allows that.
2019-04-17 16:18:49 +03:00
Ilya Matveev b586be2a50 Test runner: Add tests for Gradle test filter 2019-04-17 16:34:51 +07:00
Ilya Matveev 25b2ec8366 Test runner: Report stacktraces for failed tests in TC messages 2019-04-17 16:34:51 +07:00
Ilya Matveev 43c6452575 Test runner: Add a flag to ignore failures in the exit code
Kotlin/Native test runner sets the exit code to a non-zero value
if there are failing tests. This patch adds a flag allowing a user
to disable this feature and make the runner to always return 0.
Note the exit code is still returned using the `exitProcess` call.
2019-04-17 16:34:51 +07:00
Ilya Matveev 6c39516380 Test runner: Report ignored test suites 2019-04-17 16:34:51 +07:00
Ilya Matveev beaf832413 Test runner: Support Gradle test patterns (KT-30533) 2019-04-17 16:34:51 +07:00
Pavel Punegov 0dab2df25c Escape file names that contain whitespaces 2019-04-17 12:12:54 +03:00
Svyatoslav Scherbina d029e3b730 Add trivial tests for compositions of ObjCExport and overriding 2019-04-17 11:41:05 +03:00
Ilya Matveev ad58a55e03 Update Kotlin version in samples and Dockerfile
1.3.40-dev-1480 for samples.
1.3.30 for the Dockerfile (it reflects the latest K/N release).
2019-04-17 13:30:56 +07:00
Vasily Levchenko 3bf3b6a5a3 [codegen][debug info] improvement of generation debug info for 'finally' block 2019-04-17 05:11:20 +03:00