Ilya Matveev
fd7f379ff5
stdlib: Add binary search for lists
2017-04-19 18:27:32 +07:00
Ilya Matveev
1c081d351b
stdlib: Add Grouping.eachCount extension
2017-04-19 18:27:32 +07:00
Alexander Gorshenev
c7963a86c1
Start a new serializer for each class.
...
The consequence of that would be the type tables started anew for each class.
Without that the ever growing common global type table is written to each class.
Making the class protobufs bigger and bigger.
2017-04-19 14:12:53 +03:00
Alexander Gorshenev
e2bf81d7d8
Captured type constructor support in serializer.
2017-04-19 14:06:50 +03:00
Vasily Levchenko
1544045643
CODEGEN: Initial support for emiting debug information.
...
- avoiding generating debug info using function scope (prolog/epilog problem).
- bit logging.
- extracted function for debug location.
- attempted to reset debug location at the start of the function (not working but looks like it's right way).
- private modifier added to non public functions
- removied IrFunction::line copy of IrElement::line() extention function.
- added FileScope used in IrToBitcode::visitFile()
- local variable support
- mechanism of central managment of debug info emitting
2017-04-19 09:52:05 +03:00
Vasily Levchenko
747ad0efda
VERSIONING: 1st aproach
2017-04-19 09:52:05 +03:00
Vasily Levchenko
84d62eb471
DEBUGINFO: makes debug info stab usable from konan compiler
2017-04-19 09:52:05 +03:00
Vasily Levchenko
05c25e4e0a
LINK: makes macosx based target awared about dsymuil on link stage
...
- added verbosing symbol information (perhaps it's require special flag).
2017-04-19 09:52:05 +03:00
Vasily Levchenko
7e9a01b6ba
DRIVER: added '-g' key to enable emitting debug information
2017-04-19 09:52:05 +03:00
Alexander Udalov
a4eceb3e3a
kotlin-compiler:1.1-20170417.154352-466
...
- Fix usage of new Kotlin command line arguments API
(cherry picked from commit fb8534d05d2f69902fd1add631754f7cdfb75c89)
2017-04-18 19:36:00 +03:00
Alexander Gorshenev
e60754474a
Preserve origin LAMBDA. The inliner seems to be looking at it.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
d79875ac7c
A couple of functions in stdlib are marked with @InlineExposed.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
f959c4e43c
a little warning cleanup
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
ce85975fac
Slightly lighter weight when constructs.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
2ad0be6182
Substitute real rootFunction type parametrs instead of deserialized ones.
...
More direct acquisition of type serializer from the descriptor serializer.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
3139ae279c
Don't share descriptor table between runs.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
2403f874a6
Somewaht better diagnostics.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
5654f78cae
Enable deserializer phase.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
6a23af0f04
Update extension receivers on deep IR copy.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
8d2c6e4878
Separated native and jvm staticCFunction() because for native it needs not be inline now.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
a434e039b2
Don't lose KonanLinkData extensions to ProtoBuf even when parsing KonanIr.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
e3a253f508
Treat internal names with @PublishedApi annotation as exported.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
f14716dfc0
Moved from int32 indices to message UniqId { int64 index; }.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
a703647b79
Type parameters for accessors should be taken from their property.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
c944ea78c1
account for the receiver in property mangling
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
ff27066502
Use a hash of public name as descriptor deserialization id.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
9b4a1f1569
Assume deserialization failure if we could not deserialize a KotlinType.
...
Various exceptions for IR deserialization.
2017-04-18 13:54:37 +03:00
Alexander Gorshenev
a7b6d1e8ea
invoke() with extension receiver is not present in the member scope,
...
so it needs to be resynthsized.
2017-04-18 13:54:37 +03:00
Konstantin Anisimov
6d1a9b2420
Print more accurate warning message
2017-04-18 15:26:13 +07:00
Konstantin Anisimov
8db33dd530
Callable reference type does not coincides with descriptor return type
...
Callable reference should be excluded from parameter evaluation procedure
2017-04-18 15:26:13 +07:00
Ilya Matveev
7bf9669f57
stdlib: Add clear and remove methods in AbstractMutableCollection
2017-04-18 12:48:07 +07:00
Ilya Matveev
16f3dcde8a
stdlib: Uncomment linkedMapOf and linkedSetOf methods
2017-04-18 12:48:07 +07:00
Ilya Matveev
325210ae52
stdlib: Remove TODO comment in ArrayUtil.kt
...
We don't need to handle cases when a count of objects provided
by the iterator isn't equal to the size of the collection.
2017-04-18 12:48:07 +07:00
Ilya Matveev
321386d95e
stdlib: Improve ArrayList.removeAll implementation.
...
This patch replaces ArrayList.removeAll implementation with a
faster one. It also adds the AbstractMutableCollection class
containing default implementations for addAll, removeAll and
retainAll methods and fixes tests to check if removeAll removes
all occurrences found or not.
2017-04-18 12:48:07 +07:00
Ilya Matveev
69a49f987c
stdlib: Add first() extension for CharSequence
2017-04-18 12:48:07 +07:00
Ilya Matveev
64f1cea134
tests: Do not rely on Kotlin JVM impl in sort tests
...
Some sort tests had an order of equal objects in a sorted list
hardcoded. It caused failures because an approach to placing
equal objects differs in Kotlin JVM and Kotlin Native sort
implementations. With this patch we check if all objects in a list
are sorted istead of checking an exact order of them.
2017-04-18 12:48:07 +07:00
Ilya Matveev
7dd27dd16d
stdlib: Provide Collection.toArray() implementation
...
It also modifies the test for this method to make it to not rely on
Kotlin JVM implementation.
2017-04-18 12:48:07 +07:00
Ilya Matveev
51191a5911
stdlib: Remove commented copyOf in CharArray
2017-04-18 12:48:07 +07:00
Ilya Matveev
ad25d3ca7c
stdlib: Return a RandomAccess object from Array.toList() and emptyList()
2017-04-18 12:48:07 +07:00
Ilya Matveev
26c227ab3e
stdlib: Remove all occurrences in Collection.removeAll method
2017-04-18 12:48:07 +07:00
Ilya Matveev
6549dda5fb
stdlib: Uncomment extensions with reified parameters
2017-04-18 12:48:07 +07:00
Ilya Matveev
6fc7c3495a
stdlib: Add List and MutableList functions
2017-04-18 12:48:07 +07:00
Ilya Matveev
569fb7e013
stdlib: Don't suppress internal call error for mapCapacity
...
This patch removes @Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE")
annotation from mapCapacity() calls since it is annotated with
@PublishedApi
2017-04-18 12:48:07 +07:00
Ilya Matveev
78d6611a46
stdlib: Return NaN from average() if the collection is empty
2017-04-18 12:48:07 +07:00
Ilya Matveev
286e81992a
stdlib: Add missing extensions for collections
2017-04-18 12:48:07 +07:00
Svyatoslav Scherbina
20d95ae4c8
Implement methods for conversions between Long and CPointer
2017-04-17 18:02:05 +03:00
Svyatoslav Scherbina
11ecf0c179
Adjust C interop stub names to prevent some symbol name clashes
...
Use `pkg_kni_name` instead of `kni_pkg_name`
2017-04-17 18:02:05 +03:00
Svyatoslav Scherbina
2b98f9bce6
Use more correct paths in interop stubs generator
...
* Use absolute paths to C sources and artifacts because stub generator
changes working directory when running clang.
* Do not change working directory when running without def file.
2017-04-17 18:02:05 +03:00
enbandari
bb8f04ab87
pkgName is from interop config "pkg" and in a format of "x.y.z", so we should replace "." with "_" instead of "/". Related Issue: https://github.com/JetBrains/kotlin-native/issues/490
2017-04-17 13:42:31 +03:00
enbandari
a0e0644998
Use absoluteFile to avoid parentFile of defFile being null while the defFile is something like "-def interop.def". The parent of interop.def should be a existed dir.
2017-04-17 13:42:31 +03:00