Commit Graph

1790 Commits

Author SHA1 Message Date
Nikolay Igotti 63d72d3bb3 Make stdlib map freezing aware. (#1876) 2018-08-13 18:35:07 +03:00
Igor Chevdar 235b51daff Fixed bug in DFG layout hash computation 2018-08-13 17:26:03 +03:00
Vasily Levchenko cdbefa6710 [codegen] added konan.internal.NoReorderFields to disable field reordering 2018-08-13 12:32:09 +03:00
Igor Chevdar bcbcaa5d7c Made handling of inconsistent DFG layout softer
Turn off devirtualization and report a warning instead of crashing.
2018-08-10 18:29:56 +03:00
Igor Chevdar 562c1f3961 Fixed bug in devirtualization
In a library fields of objects might be initialized by some of users with unknown type.
2018-08-10 18:29:56 +03:00
Igor Chevdar a07ca86575 [dfg] Added field.type 2018-08-10 18:29:56 +03:00
Svyatoslav Scherbina 6876ccd3ee Fix handling implicit cast between different inline classes 2018-08-10 17:09:48 +03:00
Svyatoslav Scherbina d5a8e034e4 Add workaround for incorrect IR produced by function inliner 2018-08-10 17:09:48 +03:00
Mike Sinkovsky 2876acd93e Add libiconv to mingw platform (#1861) 2018-08-10 14:02:50 +03:00
Nikolay Igotti 73b6935da7 Fix .def file generation. (#1859) 2018-08-10 12:02:18 +03:00
SvyatoslavScherbina cd4f116f78 Support inline classes (#1840) 2018-08-10 09:57:15 +03:00
Sergey Bogolepov 6d5a812952 Fix for #1811 2018-08-08 15:47:39 +03:00
Vasily Levchenko 7b730544ea [kotlin compiler][update] 1.2.70-dev-915 2018-08-06 17:26:40 +03:00
Mikhael Bogdanov 209dd837df Get rid of 'externalPackageFragments' and 'dependencyModules' in IrModuleFragment 2018-08-06 17:26:40 +03:00
Mikhael Bogdanov ac19ec21a9 Support lazy ir in native 2018-08-06 17:26:40 +03:00
Igor Chevdar 6b66f632dc Extracted a separate phase for synthetic fields creation 2018-08-02 19:36:51 +03:00
Igor Chevdar b8428903ed Supported synthetic fields in serialization 2018-08-02 19:36:51 +03:00
Igor Chevdar bde9b3e5ed Added linkage tests on synthetic fields 2018-08-02 19:36:51 +03:00
Vasily Levchenko a28c435d95 [kotlin compiler][update] 1.2.70-dev-764 2018-07-30 17:01:20 +03:00
Vasily Levchenko 34fe09c59c [kotlin compiler][update] 1.2.70-dev-616 2018-07-26 11:39:08 +03:00
Sergey Bogolepov d04ee83e76 Fixed bug in post-inline lowering 2018-07-18 18:24:45 +07:00
Igor Chevdar 4645f86225 Fixed bug in inliner with default args + test 2018-07-17 19:09:02 +03:00
ilmat192 a83a48930b [backend] Allow argument reordering in enum entry initializers (#1794) 2018-07-13 15:33:24 +07:00
Pavel Punegov 5879784536 Fix Random.nextInt with bound that returned negative values 2018-07-12 15:34:42 +03:00
Vasily Levchenko f376d9da37 [backend] friend module support 2018-07-11 09:49:14 +03:00
Nikolay Igotti da7e31a10a APIs for easier freeze debugging. (#1783) 2018-07-10 14:28:56 +03:00
Vasily Levchenko f4e29c88c5 [kotlin compiler][update] 1.2.70-dev-198 (#1784)
* [kotlin compiler][update] 1.2.70-dev-198
2018-07-09 17:12:44 +03:00
Vasily Levchenko 2e4cd70f1a [build] replace direct urls with cached ones 2018-07-09 09:52:02 +03:00
SvyatoslavScherbina d474f862ab Don't use IR annotations to check for 'ThreadLocal' (#1771)
Fix #1768
2018-07-06 13:41:45 +03:00
Nikolay Igotti bc15678cd6 Atomic lazy getter. (#1769) 2018-07-06 13:40:11 +03:00
Pavel Punegov 96b0d10746 Implement LC random generator and Collection.shuffle 2018-07-05 14:51:34 +03:00
Svyatoslav Scherbina b6c7d2d7c3 Export internal declarations too
Mangle internal function names with module name

Fix #1758
2018-07-05 06:40:57 +03:00
Svyatoslav Scherbina 155b7b698e Fix minor bug in memory management
Properly handle the case when the program finishes with empty 'toFree' buffer
but non-empty deallocation queue.
2018-07-04 22:31:49 +03:00
Igor Chevdar f4fef09447 Fixed external tests
Marked all mutable objects with konan.ThreadLocal annotation
2018-07-04 17:11:02 +03:00
Vasily Levchenko cb916d017b [kotlin compiler][update] 1.2.70-dev-83
- Revert "Use local Kotlin jars built from 372e2c5c"
2018-07-04 14:21:56 +03:00
Igor Chevdar c9e7a4faed Fixed bug with objects access in global initialisers + test 2018-07-04 12:24:50 +03:00
Vsevolod Tolstopyatov a8d6113308 Dispatch Any methods called on interface via vtable instead of itable (#1753) 2018-07-04 10:10:58 +03:00
Svyatoslav Scherbina 627d28db8a Ignore deserialized fake-override fields
Fix #1748
2018-07-04 10:09:11 +03:00
Nikolay Igotti dfc01847c5 Freeze objects by default, stdlib improvements. (#1743) 2018-07-03 16:45:34 +03:00
Igor Chevdar c19b9d787f Fixed bug in inliner 2018-07-02 18:59:48 +03:00
Igor Chevdar 986f5220df Added possibility of debug output from lowerings 2018-06-29 15:48:48 +03:00
Igor Chevdar 11c4a2518d Fixed bug in finally blocks lowering + test
Return type must be taken from the function
2018-06-29 15:48:48 +03:00
Igor Chevdar 6a07322f62 Fixed bug in inliner with recursive inline
Return type of a returnable block should be substituted as well as other types
2018-06-29 15:48:48 +03:00
Svyatoslav Scherbina 695f93ea61 Fix generating Unit-returning bridge for suspend function
#KT-25137 Fixed
2018-06-29 08:25:02 +03:00
Nikolay Igotti e2b051e2d5 Documentation tweaks. 2018-06-28 15:52:00 +03:00
Igor Chevdar 57e75915ff Fixed bug in SuspendFunctionsLowering + test
Supported callable references to non-local suspend functions.
2018-06-27 09:14:08 +03:00
Alexander Gorshenev b93188a056 Added a regression test for Char constant serialization. 2018-06-26 17:08:02 +03:00
Alexander Gorshenev 756fe0735b The Char type was missing in ir serialization. 2018-06-26 17:08:02 +03:00
Igor Chevdar 5e59045352 Fixed bug with default args copying in enums + test 2018-06-26 11:38:58 +03:00
Svyatoslav Scherbina 338152263a Add minor code improvements 2018-06-26 10:44:53 +03:00