Commit Graph

931 Commits

Author SHA1 Message Date
Svyatoslav Scherbina a1593c86f1 backend.native: support external functions
also implement changing external function symbol name with the annotation
2016-10-19 13:45:40 +03:00
Svyatoslav Scherbina 61e1d91c03 backend.native: use common/hash to compute hashes for RTTI 2016-10-19 13:42:53 +03:00
Svyatoslav Scherbina 9f5f2eecfc backend.native: add minor improvements to code for compile time values 2016-10-19 13:33:51 +03:00
Svyatoslav Scherbina d43b0f62bc Interop/Runtime: implement trivial lexical mem scopes 2016-10-19 13:33:51 +03:00
Svyatoslav Scherbina 5bb5cb70ee build: trivially support runtime sources written in Kotlin 2016-10-19 13:33:50 +03:00
Svyatoslav Scherbina 7350b4da37 backend-native: fix tests after reworking Gradle interop plugin 2016-10-19 13:33:50 +03:00
Svyatoslav Scherbina 68686bd577 runtime: move name hasing to common/hash 2016-10-19 13:33:45 +03:00
Svyatoslav Scherbina ba69ba7b5b common/hash: fix header compilation errors 2016-10-19 13:33:29 +03:00
Vasily Levchenko 4142ff8845 kotlin-ir: sync 2016-10-18 09:55:21 +03:00
Vasily Levchenko b756ddc067 switch kotlin-ir on master, see
https://jetbrains.slack.com/archives/kotlin-ir/p1476772444000204
for details.
2016-10-18 09:53:54 +03:00
SvyatoslavScherbina 11cfd5ac72 Update README.md 2016-10-17 18:52:11 +03:00
SvyatoslavScherbina ddf9625ad3 Merge pull request #9 from JetBrains/download-deps
Download some deps from the JFrog repo
2016-10-17 18:30:45 +03:00
Svyatoslav Scherbina 2835ddb7f2 build: add "LD_LIBRARY_PATH=llvmDir/lib" for Linux 2016-10-17 18:25:31 +03:00
Svyatoslav Scherbina b0998fe56e dependencies: update libffi to 3.2.1-2
(trying to fix Linux build)
2016-10-17 18:05:00 +03:00
Svyatoslav Scherbina 3d350cf40d dependencies: add minor code improvement 2016-10-17 18:00:45 +03:00
Svyatoslav Scherbina e4bc19b145 build: download llvm and libffi from the JFrog repo 2016-10-17 17:35:57 +03:00
Svyatoslav Scherbina 7ed9d9c633 build: implement downloading (native) dependencies from the JFrog repo 2016-10-17 17:35:57 +03:00
Vasily Levchenko ddae560ffe support new interface for jvm frontend 2016-10-17 14:03:25 +03:00
Vasily Levchenko a2b1f028c8 kotlin-ir: sync 2016-10-17 14:02:35 +03:00
Nikolay Igotti acca9e0eb8 FFI on iOS test. 2016-10-17 13:59:33 +03:00
Vasily Levchenko 5790787840 kotlin-ir sync 2016-10-17 05:28:05 +03:00
SvyatoslavScherbina 7c22d4e1c0 Merge pull request #8 from JetBrains/callbacks-strike-back
Fix bugs after supporting callbacks in Interop
2016-10-14 17:40:02 +03:00
Svyatoslav Scherbina e6351a3446 Interop/Indexer: improve memory management 2016-10-14 17:11:46 +03:00
Svyatoslav Scherbina bdcb7fb33c Interop/Indexer: update prebuilt interop stubs
after fixing bugs in stub generation
2016-10-14 16:28:14 +03:00
Svyatoslav Scherbina 32c6e62297 Interop/Indexer: unions don't have natural layout 2016-10-14 16:28:14 +03:00
Svyatoslav Scherbina 6d04320471 Interop/StubGenerator: fix regressions after refactoring
performed to support callbacks
2016-10-14 16:28:14 +03:00
Svyatoslav Scherbina 2d2c79c54c Interop/StubGenerator: do not treat array-typed fields as pointers
when passing structs by value through libffi
2016-10-14 16:28:14 +03:00
Svyatoslav Scherbina bd449b2ac3 Interop/Runtime: properly initialize ffi_type for structs 2016-10-14 16:28:14 +03:00
Svyatoslav Scherbina b4db26f846 Interop/Runtime: do not reuse JNI local ref globally 2016-10-14 16:28:14 +03:00
Nikolay Igotti 6f43e7befd Fetch IR branch. 2016-10-14 14:25:33 +03:00
Nikolay Igotti 6ccdc02633 Merge pull request #7 from JetBrains/rt_exceptions
Add basic exception supports and tagged refcounting.
2016-10-14 12:30:13 +03:00
Nikolay Igotti 5bbb5a4d13 Comment on race for shared containers, added fourth type for container. 2016-10-14 12:15:53 +03:00
Nikolay Igotti 90a09ca356 Use proper PC. 2016-10-14 11:20:22 +03:00
Nikolay Igotti 5786f5a2af Add basic exception supports and tagged refcounting. 2016-10-14 11:10:19 +03:00
SvyatoslavScherbina 25c5349004 Merge pull request #6 from JetBrains/runtime-code-in-compiler
Import some runtime code to compiler using interop
2016-10-13 18:15:49 +03:00
Svyatoslav Scherbina 8c4f5c3cef backend.native: add -fPIC for interop with :common:hash
to fix build on Linux
2016-10-13 18:12:21 +03:00
Svyatoslav Scherbina edc88c67da backend.native: include interop with :common:hash 2016-10-13 17:29:02 +03:00
Svyatoslav Scherbina f30c840d1c runtime: move hash functions to newly created subproject
to reuse in compiler
2016-10-13 17:29:02 +03:00
Svyatoslav Scherbina 2f004edff7 Interop: fix minor bug in Indexer
handle empty compiler args
2016-10-13 17:29:02 +03:00
Svyatoslav Scherbina d00d3daf86 Interop: support passing linker as arg to stub generator 2016-10-13 17:29:02 +03:00
Svyatoslav Scherbina d800e193e8 runtime/build.gradle: extract bitcode compilation to custom task class 2016-10-13 17:29:01 +03:00
Nikolay Igotti abc98983e1 Add FFI libs for ports. 2016-10-13 17:19:03 +03:00
SvyatoslavScherbina 0707285fa4 Merge pull request #5 from JetBrains/interop-as-dependency
Represent Interop as dependency in Gradle plugin
2016-10-13 16:41:22 +03:00
Nikolay Igotti ed53aceaa5 Minor fixes. 2016-10-13 15:10:54 +03:00
Svyatoslav Scherbina 94f3c1d048 Interop: implement stub gen without .def
also add some default values to .def file format
2016-10-13 13:10:44 +03:00
Svyatoslav Scherbina fc5c7ac6df Interop: support linking with libs from the same build 2016-10-13 13:10:44 +03:00
Svyatoslav Scherbina 1316aee069 Interop: add LD_LIBRARY_PATH to stub generation task 2016-10-13 13:10:20 +03:00
Svyatoslav Scherbina 57cfc617a6 Interop: represent it as dependency in Gradle plugin 2016-10-12 16:29:52 +03:00
Vasily Levchenko 6f666b6ca9 fix: constructing parameterless function descriptors 2016-10-12 11:14:23 +03:00
Vasily Levchenko 937e721d56 kotlin-ir sync 2016-10-11 21:50:51 +03:00