Vasily Levchenko
addb6e08d8
[link][debug] when build debug build, it's better to use -O0 opt flags
2017-07-10 07:25:17 -07:00
Vasily Levchenko
27517b0db1
[codegen][debug] make runtime debug information friendly to generated one.
...
- inroduced function generation context containing mostly functionality local to function generation
- initial debug location is linked with basic block.
- then on each expression location is tuned.
- removed manual placement of debug location dictations over the place.
- refactoring removed unused declarations
2017-07-10 07:25:17 -07:00
Alexander Gorshenev
5b25613e23
Separated Zipped and Unzipped libraries.
...
Picking up files right from the zip filesystem, if possible.
2017-07-06 12:36:35 +03:00
Vasily Levchenko
56c1f2b07c
[codegen][clean up] warnings, inspections and absolete comments
...
- useless_is_checked
- unreachable_code
- a lot of unneeded string templates
- removed extra curly backets in string templates.
2017-07-05 06:42:37 -07:00
Alexander Gorshenev
5effdcb1d2
Pass linkerOpts from .def to klib manifest.
2017-07-04 17:58:30 +03:00
Alexander Gorshenev
e2516f42e6
Moved KonanLibrary to use KonanTarget.
2017-07-04 17:58:30 +03:00
Alexander Gorshenev
edde21827c
A little bit more of utils abstracting us from java api.
2017-07-04 17:58:30 +03:00
Konstantin Anisimov
0582d8f1bd
Build function -> file map
...
Serialize/deserialize file name
Define FileEntryImpl
Provide IrReturnableBlock with information about source file
Move file iteration in NoJavaUtil
Insert future description comments
Move debug info (source file name) from IrFunction to IrDeclaration
2017-07-03 19:54:14 +07:00
Vasily Levchenko
db4388a343
[kotlin compiler][update] 1.1-20170701.191134-644
2017-07-03 04:09:14 -07:00
Ilya Matveev
6f35106337
dependencies: Add "airplane mode"
...
The patch adds airplaneMode parameter in konan.properties.
If airplaneMode = true the dependency downloader will throw
an exception instead of downloading a missing dependency.
2017-06-28 10:37:49 +07:00
Vasily Levchenko
974426d70d
[codegen][debug] opt build fix
2017-06-27 05:20:40 -07:00
Alexander Gorshenev
e257445a3b
Konan Library reshuffle.
...
Distributed classes into several files.
Eliminated Base64 encoding of protobufs, it was a kt.bc library leftover.
2017-06-26 19:46:51 +03:00
Vasily Levchenko
9fc16260c6
[link stage][macos] forcebly mute dsymutil warning about absence of _main symbol.
2017-06-22 00:33:17 -07:00
Alexander Gorshenev
7615c36f2e
Slightly tweaked klib utility to work with suffix-less klib names.
2017-06-21 17:09:04 +03:00
Nikolay Igotti
1ad50bc33f
Workers draft ( #655 )
2017-06-21 11:26:09 +03:00
Igor Chevdar
919ea4e8f7
Fixed android build
2017-06-20 20:01:43 +03:00
Alexander Gorshenev
fb20eb9a37
Produce a message and a non-zero exit code if no source argumens have been provided.
2017-06-20 20:00:08 +03:00
Igor Chevdar
282ac885c5
Added nullifying all globals on deinitialization of runtime
2017-06-20 16:45:13 +03:00
Ilya Matveev
c994573a77
regex: Fix warnings and TODOs
2017-06-20 02:53:54 +07:00
Ilya Matveev
bfcc0fc0d0
regex: Refactor predefined character classes.
2017-06-20 02:53:54 +07:00
Ilya Matveev
1bf9b23108
regex: Initial regex implementation
...
regex: All tests are passed.
2017-06-20 02:53:54 +07:00
Ilya Matveev
4f251003ef
tests: Add Harmony regex tests
2017-06-20 02:53:54 +07:00
Igor Chevdar
dbc885b811
Implemented intrinsics dataClassArrayToString & dataClassArrayHashCode
2017-06-19 17:17:30 +03:00
alexander-gorshenev
d3c24bb387
Different extensions (and KonanTarget communalization). ( #665 )
2017-06-19 12:45:57 +03:00
Alexander Gorshenev
f04827cd57
Deserialization of IrSetField/IrGetField was missing.
2017-06-17 21:23:08 +03:00
Alexander Gorshenev
a1ee247a7b
Allow deserialization of IrVariable without initializer.
2017-06-17 21:23:08 +03:00
Vasily Levchenko
7ef5cbb52a
[stage][link][debug] always produce code with debug info.
2017-06-15 10:53:22 -07:00
Ilya Matveev
07c8404a5e
backend: Fix enum constructor default parameters
...
The problem was observed in the follwing code:
enum class A(one: Int, val two: Int = one) ...
The problem is in the `two` default value. Here the enum constructor
lowering used an old (not lowered) symbol for `one`. Also the lowering
didn't copy the default expression for DEFAULT class.
The patch fixes both problems.
2017-06-14 19:42:29 +07:00
Ilya Matveev
e64a5f42f0
stdlib: Improve character API.
...
The patch adds methods for surrogate characters processing and Unicode
category support needed for regular expression library.
2017-06-14 10:33:45 +07:00
Ilya Matveev
96e807697a
[Kotlin compiler][update] 1.1-20170611.100554-585
2017-06-13 16:16:09 +07:00
Mikhael Bogdanov
f6d47aa93c
Support handler parameter generation
2017-06-09 15:51:07 +03:00
Mikhael Bogdanov
cd54f010e0
Move DefaultArgumentStubGenerator to common package
2017-06-09 15:51:07 +03:00
Mikhael Bogdanov
724710811d
Rename DefaultArgumentMarker to DefaultConstructorMarker
2017-06-09 15:51:07 +03:00
Mikhael Bogdanov
890ccd96f0
Make TailrecLowering public
2017-06-09 15:51:07 +03:00
Mikhael Bogdanov
6b686735ee
Move LateinitLowering to common package
2017-06-09 15:51:04 +03:00
Mikhael Bogdanov
5a1be2715f
Add kFunctionImpl to ReflectionTypes
2017-06-09 15:49:03 +03:00
Mikhael Bogdanov
f5c421d64b
Move isFunctionOrKFunctionType to common package
2017-06-09 15:49:03 +03:00
Mikhael Bogdanov
03e9d7a701
Use KOTLIN_REFLECT_FQ_NAME from builtins
2017-06-09 15:49:03 +03:00
Mikhael Bogdanov
9ce0082ec0
Replace compilerConfiguration with messageCollector in CommonBackendContext
2017-06-09 15:49:02 +03:00
Mikhael Bogdanov
a81b6731f8
Move DumpIrTreeWithDescriptorsVisitor to common package
2017-06-09 15:49:02 +03:00
Mikhael Bogdanov
10ca3dbeca
Use isPrimitiveType instead of isValueType in LateinitLowering assertion
2017-06-09 15:48:58 +03:00
Ilya Matveev
a18e9dbe0d
backend: Don't process FAKE_OVERRIDE properties in lateinit lowering
2017-06-09 19:13:52 +07:00
Alexander Gorshenev
a23c64012b
A bit of infrastructure for the klib pretty printer.
2017-06-08 23:27:53 +03:00
Alexander Podkhalyuzin
9e8ca0fa8d
Fixed tests.
2017-06-08 17:21:04 +03:00
Alexander Podkhalyuzin
bc941269f0
Fixed samples for the latest changes in Gradle plugin.
...
- Smaller gradle scripts.
- More structure in sample projects.
- Simplified build/run.
- Added gradle to the rest two samples.
- Almost removed all sh scripts.
- Gradle now works only inside of build directory.
- Fixed READMEs according to the new changes.
2017-06-08 17:21:04 +03:00
Alexander Gorshenev
114010bbcd
Make klib info report targets available.
2017-06-08 03:28:18 +03:00
Alexander Gorshenev
646117a60b
Initial klib tool check in.
2017-06-08 03:28:18 +03:00
Igor Chevdar
242e1da191
Removed redundant main from tests
2017-06-07 12:29:22 +03:00
Ilya Matveev
a70f170e80
[SQUASHME] bitset: fix logical operations.
2017-06-07 11:11:36 +07:00
Ilya Matveev
6ff43d690f
stdlib: Add BitSet implementation.
2017-06-07 11:11:36 +07:00