Commit Graph

1977 Commits

Author SHA1 Message Date
Svyatoslav Scherbina bdd5ec83e1 Reduce interop stub generation verbosity 2017-03-30 14:54:55 +03:00
Svyatoslav Scherbina 4a1b2721d8 Eliminate some warnings from Kotlin code 2017-03-30 14:54:55 +03:00
Igor Chevdar 760de3cdad Run inlining phase against whole module
It is wrong to run inlining phase file by file, because other lowerings
could modify inline function before it had been inlined.
2017-03-30 11:05:30 +03:00
Igor Chevdar dbea244b0e Fixed bug with type substitution for reified type parameter 2017-03-30 11:05:30 +03:00
Igor Chevdar 662abba4a7 Changed type of exception from CastClassException to TypeCastException
When converting from null to non-nullable type kotlin JVM throws TypeCastException
2017-03-30 11:05:30 +03:00
Ilya Matveev 9d64aa7153 build: Rename bunlde archive
This patch renames the bundle to .tar.gz to work with it in
dependecny downloader.
Also it adds a version number in the bundle name.
2017-03-30 14:46:24 +07:00
Nikolay Igotti 0cbd34086e Added JB copyright (#417) 2017-03-30 09:51:58 +03:00
Ilya Matveev 7aec0ae532 tools: Download dependencies in a temporary file 2017-03-30 11:02:35 +07:00
Ilya Matveev fd5f837299 Use download.jetbrains.com for user dependency downloading 2017-03-30 11:02:35 +07:00
Ilya Matveev a906bd0d07 Download dependencies only in dist
Don't extract dependencies in dependencies/all, only in dist/dependencies
Remove konan.dependencies property
2017-03-30 11:02:35 +07:00
Igor Chevdar 7f4740130e Use cloned descriptors for default enum entry 2017-03-29 18:58:25 +03:00
Igor Chevdar 9447cf8d9d Do not duplicate inherited bridge 2017-03-29 18:58:25 +03:00
alexander-gorshenev db7b22bbb1 Don't serialize anything to a final kexe file. (#413)
That gives a little compilation speed improvement.
2017-03-29 18:15:08 +03:00
Igor Chevdar 8e38e28f89 Added tests 2017-03-29 15:58:36 +03:00
Igor Chevdar d31a770e70 Implemented enumValueOf<>() and enumValues<>() 2017-03-29 15:58:36 +03:00
Svyatoslav Scherbina b7695b4f20 Make NativePtr.toLong() public 2017-03-29 15:14:40 +03:00
Svyatoslav Scherbina 29fb37bdb8 Fix handling unused typedefs in interop 2017-03-29 15:14:40 +03:00
Svyatoslav Scherbina 9ad17f5e48 Fix support for pointers to arrays in interop
Also represent multidimensional arrays as one-dimensional ones.
2017-03-29 15:14:40 +03:00
Svyatoslav Scherbina 4a54fe793e Implement excludeSystemLibs interop option (disabled by default) 2017-03-29 15:14:36 +03:00
Svyatoslav Scherbina 30bab17c21 Make struct and enum indexing more local 2017-03-29 15:14:36 +03:00
Dmitry Jemerov 0b7aff3d11 Tuning the wording of README (#398) 2017-03-29 13:16:58 +03:00
Igor Chevdar a3becd24ec Fix for finally block for inline functions
For local return from inline function to outer scope just
call super version of genReturn.
2017-03-29 12:53:33 +03:00
Igor Chevdar 1bf73fd9d7 Added titles to all basic blocks 2017-03-29 12:53:33 +03:00
Ilya Matveev ddcecba1dc Rename clang+llvm-3.9.0* dependencies to clang-llvm-3.9.0* 2017-03-29 16:38:19 +07:00
Nikolay Igotti b6e488b210 Remove early maps problems (#408) 2017-03-29 12:10:52 +03:00
Alexander Gorshenev 9e15aa7204 Moved the backend from llc to llvm-lto even for unoptimized compilation.
Unoptimized means '-O1' -- that's the fastest one. ;-)

Mark llvm functions with "no-frame-pointer-elim" attribute when not optimizing.
2017-03-29 12:10:41 +03:00
Alexander Gorshenev 89ea6396f6 It should be --time, not -time.
It should be -list_targets, not --list_targets.
The -list should better be -list_phases now that we have several sets to list.
2017-03-29 12:10:41 +03:00
Alexander Gorshenev e8327bc4f8 Gzipping serialized metadata saves some library load time. 2017-03-29 12:10:41 +03:00
Ilya Matveev 6dea5e5c79 tools: Don't use Distribution class in helpers 2017-03-29 14:42:48 +07:00
Ilya Matveev d4ced1ba9b Update tools tests according to dependency caching 2017-03-29 14:42:48 +07:00
Ilya Matveev 386228e2ba tools: Check if dependency directory is not empty 2017-03-29 14:42:48 +07:00
Ilya Matveev d0a6441384 tools: Add ExecRemote in helpers project 2017-03-29 14:42:48 +07:00
Ilya Matveev 0d13908f78 Fix RaspberryPi dependences in konan.properties 2017-03-29 14:42:48 +07:00
Ilya Matveev 9ca938bfef build: Use dependency downloading helper in dependencies:update 2017-03-29 14:42:48 +07:00
Ilya Matveev f39f37c90f Fix paths in run-debug scipts 2017-03-29 14:42:48 +07:00
Ilya Matveev 9308f86223 tools: Use dependency cache 2017-03-29 14:42:48 +07:00
Nikolay Igotti 2d51a7bab7 Very minor doc updates 2017-03-28 22:22:14 +03:00
SvyatoslavScherbina c1d9dc1cbb Replace CArray by CPointer (#406)
Also do some cleanup.
2017-03-28 17:44:08 +03:00
Nikolay Igotti e36b5d3476 Add licenses (#397)
* Add licenses

* Add more licenses
2017-03-28 17:03:30 +03:00
Vasily Levchenko d106e9e8d9 FLAGS: added --print_locations flag (boolean) for printing lines/column information
(cherry picked from commit 9decbaadfb3ef7ca946a732a03e475b576f4f1be)
2017-03-28 15:56:14 +03:00
Igor Chevdar 6f8d75a232 Always finish basic block if it exists 2017-03-28 15:53:38 +03:00
Igor Chevdar 779976f2b1 Supported nested non-local returns 2017-03-28 15:46:32 +03:00
Alexander Gorshenev eb4683f452 Exclude 'dist/dependencies' from bundle tgz. 2017-03-28 14:15:53 +03:00
Svyatoslav Scherbina 6af710028c Add @file:Suppress("UNUSED_EXPRESSION") to generated interop stubs 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina 6eb0ceb572 fixup! Implement interop integer conversions to be used with type inference 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina f65044c7bb Implement interop integer conversions to be used with type inference 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina 757c306341 Support enum arguments and return values in interop variadic functions 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina a6b89e3a0d Expose interop enum .value through CEnum interface 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina 88a69015d8 Add "import konan.SymbolName" to generated interop stubs 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina 220efdf621 Do not call directly C variadic functions from Kotlin N 2017-03-28 10:15:06 +03:00