Commit Graph

3168 Commits

Author SHA1 Message Date
Vasily Levchenko e2d2ed5237 [codegen][debug info] wrong usage of DW_OP_plus with const fixed 2017-12-01 10:36:34 +03:00
Ilya Matveev 1c16fc1166 build: Rename kotlin version properties
kotlin_version -> buildKotlinVersion
kotlinVersion -> kotlinCompilerVersion
2017-12-01 13:01:08 +07:00
Ilya Matveev f8b6519864 Fix platform lib build on TeamCity 2017-12-01 13:01:08 +07:00
Nikolay Igotti 8ae1a156b7 Generate reverse interop stubs (#1065) 2017-11-30 18:09:40 +03:00
Igor Chevdar 6492682b28 Supported recursive references in enums
Split enum entries initialization onto two steps:
1. Allocation of all instances and storing them in the array;
2. Calling constructors on each instance.
2017-11-30 16:27:06 +03:00
Igor Chevdar faa9986489 DFGBuilder fix
Intrinsic functions considered internal.
2017-11-30 16:27:06 +03:00
Ilya Matveev a991b51064 gradle-plugin: Fix konanArtifact block for Kotlin DSL 2017-11-30 18:23:58 +07:00
Rodrigo B. de Oliveira 1144a6e036 Explicitly declare public type of konanArtifacts extension
Because `KonanArtifactContainer` inherits from Gradle's `DefaultPolymorphicDomainObjectContainer`, it inherits its implementation of [`HasPublicType`](https://github.com/gradle/gradle/blob/283a513257628b93a0b092f78385e2b42fec6da3/subprojects/model-core/src/main/java/org/gradle/api/reflect/HasPublicType.java#L29). This default implementation tells Gradle to expose the extension as a `NamedDomainObjectContainer<ElementType>` where `ElementType` is inferred in a best-effort manner. 

This means that any additional members of `KonanArtifactContainer` wouldn't be easily accessible in a Gradle Kotlin build script.

This commit explicitly declares the public extension type to be `KonanArtifactContainer` by using the appropriate [`ExtensionContainer#create` overload](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionContainer.html#create(java.lang.Class,%20java.lang.String,%20java.lang.Class,%20java.lang.Object...)).
2017-11-30 12:58:53 +07:00
Ilya Matveev 917919d27e gradle-plugin: Improve CMake generation test 2017-11-30 12:16:08 +07:00
Ilya Matveev b47f7dcf73 gradle-plugin: Fix CMake generation 2017-11-30 12:16:08 +07:00
Ilya Matveev 4a8d07493c gradle-plugin: Support user jvm args 2017-11-30 12:16:08 +07:00
Ilya Matveev 8d8da0acf2 gradle-plugin: Update compiler downloading path 2017-11-30 12:16:08 +07:00
Svyatoslav Scherbina d745e80135 Implement -produce framework option
It compiles Kotlin code to Objective-C framework
(also importable to Swift)
2017-11-29 12:12:02 +03:00
Svyatoslav Scherbina 6114a5b35c Preserve visibility of classes copied by inliner 2017-11-29 12:12:02 +03:00
Ilya Matveev 7889d13974 stdlib: Support kotlin.math 2017-11-28 19:39:33 +07:00
Ilya Matveev 2227c6c522 stdlib: Implement float/double <-> bits conversion 2017-11-28 19:39:33 +07:00
Aleksey Kladov a033dbf131 gradle-plugin: generate CMake file 2017-11-28 18:46:46 +07:00
Vasily Levchenko 5a858247bc [kotlin compiler][update] 1.2-20171124.204021-51
kotlinScriptRuntimeVersion=1.2-20171124.204038-51
kotlinStdLibVersion=1.2-20171124.204041-51
9kotlinReflectVersion=1.2-20171124.204033-51
kotlinStdLibJdk8Version=1.2-20171124.204046-51
kotlinGradlePluginVersion=1.2-20171124.204030-51
2017-11-28 09:25:18 +03:00
Mikhael Bogdanov 28fff970e9 Get rid of cli in common ir
(cherry picked from commit d16ff1f4f9fbf54d2bc1916c80adfba2dfd4d513)
2017-11-28 09:25:18 +03:00
Igor Chevdar efbc8fd3e6 Added serialization/deserialization of DFG 2017-11-27 14:18:34 +03:00
Igor Chevdar 4c4ab1f226 Fixed bug in DeepCopyIrTreeWithDescriptors
A class’s interfaces were forgotten to be copied during copying of a class descriptor.
2017-11-27 14:18:34 +03:00
Igor Chevdar 0a07db93ed Data flow graph building 2017-11-27 14:18:34 +03:00
Konstantin Anisimov 356400158f All arguments of inline function are evaluated. 2017-11-24 17:12:29 +03:00
Pavel Punegov 1c371bc937 Review fix 2017-11-24 15:02:43 +03:00
Pavel Punegov 9e24e41d36 Add compilation failures into statistics 2017-11-24 15:02:43 +03:00
Pavel Punegov b1641a2c3b Send message about failed build to slack channel 2017-11-24 15:02:43 +03:00
Pavel Punegov 8ac1fed0f3 Build results file even if some tasks failed with exception 2017-11-24 15:02:43 +03:00
Ilya Matveev 044cced42b dependencies: Redownload unstable dependencies 2017-11-24 18:06:55 +07:00
Ilya Matveev a7662098d4 Update Gradle wrapper to 4.3.1 2017-11-24 15:30:25 +07:00
Konstantin Anisimov 4e043e8f46 Default argument can contain subjects for parameter substitution 2017-11-23 12:51:09 +03:00
Ilya Matveev 0dd754e7c7 gradle-plugin: Update doc 2017-11-23 13:01:10 +07:00
Ilya Matveev ccf03e51fa gradle-plugin Use a script-block to specify include directories
Replace headerFilterAdditionalSearchPrefix cinterop option with
includeDir script block:

includeDir {
    allHeaders 'path' // Used for all headers (an analogue of -I<path>)
    // Used only for headers in headerFilter
    // (replacement for headerFilterAdditionalSearchPrefix)
    headerFilterOnly 'path'
}
2017-11-23 13:01:10 +07:00
Ilya Matveev f4d31f479f build: Fix execution of Ring benchmark 2017-11-23 13:01:10 +07:00
Ilya Matveev e4fc1eda7c gradle-plugin: Add tests for headerFilterAdditionalSearchPrefixes 2017-11-23 13:01:10 +07:00
Ilya Matveev 5c05891ba7 samples: Use headerFilterAdditionalSearchPrefixes interop option 2017-11-23 13:01:10 +07:00
Ilya Matveev 9a545efa1b samples: Add gradle build in workers sample 2017-11-23 13:01:10 +07:00
Ilya Matveev 83323985bf gradle-plugin: Support headerFilterAdditionalSearchPrefix
Support the headerFilterAdditionalSearchPrefix interop tool option
in the Gradle plugin
2017-11-23 13:01:10 +07:00
Ilya Matveev 59b91cf906 gradle-plugin: Support custom entry point 2017-11-23 13:01:10 +07:00
Alexander Gorshenev 9c0a583801 Assume all user functions to be @Used when compiling for -produce dynamic. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev de41c5a71f Brought back the @Used annotation processing. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev 4236bb22fb Deal with entry points and launcher bcs for shared object generation. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev 0d0a2b4c99 Link stage fixes for "produce dynamic". 2017-11-21 12:28:53 +03:00
Alexander Gorshenev 6061c50887 Shared object suffixes. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev 5441ded8ed Separate nativeInteropPlugin output by targets 2017-11-21 12:28:32 +03:00
Tristan Greeno 2aa18d5833 update readme to fix grammar, spelling, wording (#1058)
I have updated the Readme markdown file to fix certain grammar and spelling issues.
2017-11-21 12:04:40 +03:00
Konstantin Anisimov 783a18fad2 1) Move IrClassReference and IrGetClass processing from PreInlineLowering to PostInlineLowering
2) Move immutableBinaryBlobOf processing from PreInlineLowering to PostInlineLowering
3) Support IrClassReference and IrGetClass elements in DeepCopyIrTreeWithDescriptors
2017-11-21 08:21:46 +03:00
Alexander Gorshenev 4a0be88d47 IrClassReference support in virtualization. 2017-11-21 08:21:46 +03:00
Alexander Gorshenev 5ca5923b9a IrGetClass serialization/deserialization. 2017-11-21 08:21:46 +03:00
Abhishek Sudhakaran 9a922c6947 Update Readme.md to notify users to install JDK (#1051) 2017-11-20 16:39:22 +03:00
Alexander Gorshenev 625bf54944 Moved wasm stub generator from explicit hasGetter/hasSetter
to somewhat more natural readOnly attributes.
2017-11-20 12:20:37 +03:00