Commit Graph

788 Commits

Author SHA1 Message Date
Svyatoslav Scherbina f9f418c51b Interop: add minor code improvements 2016-09-26 10:34:50 +03:00
Vasily Levchenko 6572f84b31 translator-bc: bit more transfer to laptop 2016-09-23 18:32:43 +03:00
Vasily Levchenko f6c9a4ad6b translator-bc: takeplacers for bc/ir generators (to move from desktop to laptop) 2016-09-23 18:18:41 +03:00
Vasily Levchenko 8ed1b7b083 test run, test was done with following command:
for f in $(find . -name \*.kt) ; do java -jar ../../../../build/libs/translator-bc-1.0.jar ./while_break_1/while_break_1.kt > ./while_break_1/while_break_1.kt.out 2>./while_break_1/while_break_1.kt.err; [ 0 -ne 0 ] && echo ./while_break_1/while_break_1.kt failed ; done
after this, *.err files with zero bytes were removed, so some mean this is test data, for wheather modification are corrent and whether they were translated correctly

NOTE:
for loop should be launched in experiments/translator-bc/src/test/kotlin/tests to avoid run of trunlator on other sources of the project.
2016-09-23 11:34:45 +03:00
Vasily Levchenko e8fe1dd5e4 interop: fix import 2016-09-22 17:30:09 +03:00
Vasily Levchenko 05eadb0031 translator-bc: added llvm module creation in state to get access at every place it's required (commited to move on my laptop) 2016-09-22 17:27:06 +03:00
Vasily Levchenko 13136a36af translator-bc: gradle build 2016-09-22 17:27:06 +03:00
Vasily Levchenko 4d6912a1d0 translator-bc: declarations for llvm-3.6 2016-09-22 17:27:06 +03:00
Vasily Levchenko 3b121f920b added interop integration to translator-bc 2016-09-22 17:27:06 +03:00
Vasily Levchenko d5a6c854dd translator-bc: is copy of translator, currently...
it was copied to inject byte code generation instead of llvm asm
via domestic interop library
2016-09-22 17:27:06 +03:00
Vasily Levchenko 6f0cfb989a buildSrc: added DYLD_LIBRARY_PATH to pass it to indexer, require fix someday for MS and Unix builds. 2016-09-22 17:25:58 +03:00
Svyatoslav Scherbina b3f554efc2 Interop/StubGenerator: do not use hard-coded path to JNI headers 2016-09-22 13:39:56 +03:00
Svyatoslav Scherbina 9e248a57b9 Interop: improve Gradle scripts
build Indexer native libs instead of distributing prebuilt ones
2016-09-21 17:38:45 +03:00
Svyatoslav Scherbina a45e557be1 Interop: gradlify
* move sources to meet gradle conventions
* create gradle scripts and plugin
2016-09-21 14:29:08 +03:00
Svyatoslav Scherbina 5107ebf56e Interop: prevent libclang from installing signal handlers
because it leads to JVM crashes
2016-09-20 17:18:50 +03:00
SvyatoslavScherbina 70c11b0098 Interop: update README.md 2016-09-20 00:08:23 +04:00
Nikolay Igotti 9fffcebc42 Split generic code and example. Add RTTI, arrays and such. 2016-09-19 19:36:55 +03:00
Svyatoslav Scherbina e031dffdd0 Interop: add generated indexer's bindings to clang
to workaround bootstrap issues
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina 5490ebe556 experiments: remove kni submodule 2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina b5b5fef5ba Interop: implement new indexer in Kotlin
and slightly improve StubGenerator code
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina 04a0b57b6d Interop: add support for passing structs by value
also improve support for enums
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina 5068a99b69 Interop: improve types and runtime
* add some utility methods
* add "placements"
* fix "==" implementation for native pointers
2016-09-19 18:53:59 +03:00
Nikolay Igotti f54e75138c Tweaks, pass by ref, cleaner obj model. 2016-09-19 15:36:23 +03:00
Nikolay Igotti b362539b3b Tweaks, pass by ref. 2016-09-19 13:09:27 +03:00
Vasily Levchenko 71612664a4 kotlin-ir: sync with origin 2016-09-16 20:47:46 +03:00
Vasily Levchenko e50e6ed96d translator with kotlin 1.0.5 2016-09-16 20:45:02 +03:00
Vasily Levchenko 3d6013cbf0 original copy of student's translator 2016-09-16 20:45:02 +03:00
Nikolay Igotti 784dd97f72 More explicit intentions in sample. 2016-09-16 19:01:17 +03:00
Nikolay Igotti 80ec94352c Merge branch 'master' of ssh://github.com/JetBrains/kotlin-native 2016-09-16 18:02:30 +03:00
Nikolay Igotti 1a174c118e Reference is single value. 2016-09-16 18:01:52 +03:00
Vasily Levchenko fa6a6f7a47 placer/Makefile: make it more readable ... declarative. 2016-09-16 16:36:35 +03:00
Nikolay Igotti b1101d64fc Add simple explicit placer in C++. 2016-09-16 16:05:32 +03:00
Nikolay Igotti 2ad1a4fe3b Move to ports paths 2016-09-15 18:18:57 +03:00
Vasily Levchenko 5d44ecd2ca fix source passing to frontend :) and binding from analyzing result, dumping ir compiler:) 2016-09-15 18:08:16 +03:00
Vasily Levchenko 96cfa903e2 minimal compiler to get ir from the source 2016-09-15 18:08:16 +03:00
Vasily Levchenko 4d3ad76d15 student-backend added some dependencies:
ir.psi2ir
ir.tree
frontend.java
descriptor.loader.java
2016-09-15 18:08:16 +03:00
Svyatoslav Scherbina 6cb344de07 experiments/Interop: add workaround to lookup symbols lazily 2016-09-15 16:06:41 +03:00
Svyatoslav Scherbina 9e4bc811b8 experiments/Interop: add brief description 2016-09-15 14:06:25 +03:00
Svyatoslav Scherbina c766a530aa experiments/Interop: add first prototype 2016-09-15 13:54:48 +03:00
Svyatoslav Scherbina 4def3f79f5 experiments: add forked kni as a submodule 2016-09-15 13:19:01 +03:00
Vasily Levchenko 965c9e4ac1 g/c: .idea: maven settings removed 2016-09-14 21:38:59 +03:00
Vasily Levchenko 6e24e0db2a .idea: removed workspace.xml, seems it good to add it to .gitignore 2016-09-14 21:17:54 +03:00
Vasily Levchenko e17de76f6c added dependencies util and frontend 2016-09-14 21:16:36 +03:00
Vasily Levchenko 12635cdee4 added kotlin.iml module [kotlin-ir] and ir.* modules 2016-09-14 21:15:43 +03:00
Vasily Levchenko 80e1de4947 libraries: file->jar://...protobuf, for some reasons my idea do not find required classes and can't open jar:
IntelliJ IDEA 2016.3 EAP
Build #IU-163.3983.4, built on September 7, 2016
IntelliJ IDEA EAP User
Expiration date: October 7, 2016
JRE: 1.8.0_112-release-b340 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
2016-09-14 21:10:18 +03:00
Vasily Levchenko 450954d8cb g/c: cli_parser_1_1_2 isn't required 2016-09-14 21:02:24 +03:00
Vasily Levchenko 95e845d21c experiments/kotlin-ir: sync with origin 2016-09-14 20:35:19 +03:00
Vasily Levchenko 8fa26fed9f student-backend: vivisectioned finally modules and libraries to make backend compilable 2016-09-14 17:48:13 +03:00
Vasily Levchenko 932da705da missed .idea part of student-backend 2016-09-14 17:15:26 +03:00
Vasily Levchenko 7fd7e176b5 student-backend: only take placers and picked modules from kotlin-ir. this commit to switch from imac to pro 2016-09-14 17:10:54 +03:00