Commit Graph

1286 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 61c28db886 backend: improve Nothing type handling 2016-12-20 15:33:38 +07:00
Svyatoslav Scherbina 44f2036506 backend: implement autoboxing as IR transformation 2016-12-20 15:33:38 +07:00
Nikolay Igotti 3b7321ef94 Boxing. 2016-12-20 15:33:38 +07:00
Vasily Levchenko 86a6771a09 kotlin-compiler update: 1.1-20161217.025654-317 2016-12-19 12:36:47 +03:00
Alexander Gorshenev e8c2fb4f53 Fix broken build. 2016-12-14 21:49:11 +04:00
Alexander Gorshenev f5a627f6ff Allow -Pkonanc_flags="-print_bitcode" for gradle commands. 2016-12-14 20:40:45 +04:00
Nikolay Igotti 175dc9fb14 Fix build. 2016-12-14 18:23:36 +03:00
Vasily Levchenko 11f132f16d CODEGEN: string concatination with string builder 2016-12-14 16:48:44 +03:00
Nikolay Igotti 08bdcc963f Use lambdas in stdlib. (#140) 2016-12-14 16:46:39 +03:00
Alexander Gorshenev 35668cc7e1 Added phase control flags.
-print_descriptors
-print_ir
-print_bitcode

-verify_descriptors
-verify_ir
-verify_bitcode

-list

-enable <phase name>
-disable <phase name>
-verbose <phase name>
2016-12-13 21:31:47 +04:00
Alexander Gorshenev 6a6424f462 A little more konanc. 2016-12-13 17:11:27 +04:00
Nikolay Igotti 093409a1af Allow binary search for open methods. (#132) 2016-12-13 13:24:50 +03:00
Svyatoslav Scherbina a6a6c677a3 backend.common: fix minor bug in LocalFunctionsLowering
extension receiver parameter should be remapped too
(e.g. to support lambda with receiver)
2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 7cebc4f676 backend: support function types with receiver 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 319a473565 backend: add test for lambda with receiver 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina ac4aca1c3a backend: add more tests for lambda 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 7d4074a1a4 Review feedback, part 1 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 4dec392880 backend: add tests for lambda functions 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina b5ffc48547 backend.konan: support function types in codegen 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 2fa2727935 backend.konan: implement callable reference lowering 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 8dce1884fd backend: implement KonanSharedVariablesManager 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 7d5890e354 backend.konan: apply common lowering 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina a37cabbd51 backend/common: adapt common lowering to use in konan 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 6edafb1974 backendn: fix minor bug in SharedVariablesLowering 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 0fec2e743c backend/common: extract common part from copied sources 2016-12-13 16:09:55 +07:00
Svyatoslav Scherbina 191c98ec60 backend/common: copy some sources from JVM BE 2016-12-13 16:09:55 +07:00
Nikolay Igotti 8071b4999f As catching exception by type requires RTTI, use catch all clause. (#136) 2016-12-12 18:13:31 +03:00
Vasily Levchenko 3646ab7825 CODEGEN: add initializer in place and reference to GET_OBJECT 2016-12-12 17:35:58 +03:00
Nikolay Igotti 240a87d0ac Remve unreachable code for -opt, minor bugfix. (#135) 2016-12-12 16:38:19 +03:00
Nikolay Igotti 6565a5eb23 Fix broken build. 2016-12-11 20:40:17 +03:00
Nikolay Igotti 62e08b330e Switch away from snapshots. 2016-12-11 19:47:10 +03:00
Nikolay Igotti 34077e26ac Fix multiple object storage. (#131) 2016-12-08 16:45:47 +03:00
Nikolay Igotti c9f2e1ca22 More standard library operations. (#124) 2016-12-08 15:44:22 +03:00
Konstantin Anisimov 3bb946e144 CODEGEN: fix of string concatenation issue 2016-12-08 13:37:22 +03:00
Konstantin Anisimov 282f4fee07 TEST: yet another string concatenation test 2016-12-08 13:37:22 +03:00
Konstantin Anisimov 68e324c207 CODEGEN: spread element implementation 2016-12-08 11:59:46 +03:00
Konstantin Anisimov d8fe22cfb8 TEST: spread element test 2016-12-08 11:59:46 +03:00
Nikolay Igotti 6fb4b47cb1 Add init test. 2016-12-07 17:44:46 +03:00
Alexander Gorshenev b04c52664e Moved link args computation to the root build.gradle.
Pass the link args to konanc.
2016-12-07 17:29:30 +04:00
Alexander Gorshenev f79b0bdf6a Changed link stage from using "clang++" to "clang -lc++abi". 2016-12-07 17:29:30 +04:00
Alexander Gorshenev 44d07ef829 Mentioned -opt in the README. 2016-12-07 13:47:21 +04:00
Alexander Gorshenev 140587641a Introuced "-opt" for "-flto -O3". 2016-12-07 13:47:21 +04:00
Alexander Gorshenev cc2a35408a Provided KONAN_HOME relative -Djava.library.path.
Updated the README.

Allow -output in addition to -o.
2016-12-07 13:47:21 +04:00
Alexander Gorshenev 4dba5fdec4 Disable NAN toString test for now. 2016-12-07 00:22:50 +04:00
alexander-gorshenev 74df14d458 Fixed golden value for tostring3 test. (#123) 2016-12-06 19:25:31 +03:00
Nikolay Igotti e1b91945d0 Restore proper compiler. 2016-11-28 12:05:40 +03:00
Konstantin Anisimov b71ee37669 TEST: array_list1 test enabled 2016-12-06 16:44:44 +03:00
Konstantin Anisimov 3cb1dd2eb1 CODEGEN: support for instanceof for null implemented 2016-12-06 16:41:27 +03:00
Konstantin Anisimov 3eec3da511 TEST: tests for instanceof are modified to take in account null and nullable 2016-12-06 16:41:27 +03:00
Alexander Gorshenev 6331323ef1 Minor changes after code review. 2016-12-06 17:36:45 +04:00