Konstantin Anisimov
6e7eff4c03
No visitor with context needed to lookup for descriptors. Containing declaration must already be in descriptorSubstituteMap or to be left unchanged
2017-04-13 19:38:34 +07:00
Konstantin Anisimov
00a3dfc4b7
Get rid of warnings in inliner code
...
Fix problem with "Duplicate IR node" warning
2017-04-13 19:38:34 +07:00
Konstantin Anisimov
9830454b58
Associate copyIrElement with inlining target context
2017-04-13 19:38:34 +07:00
Konstantin Anisimov
90a43a4c62
Code refactoring
2017-04-13 19:38:34 +07:00
Konstantin Anisimov
1f1de99878
Move call site descriptor substitutor to main algotithm
2017-04-13 19:38:34 +07:00
Nikolay Igotti
bc2d635ce7
Optimize memory management ( #480 )
2017-04-13 15:26:51 +03:00
Ilya Matveev
ec64fd0477
stdlib: Make toIndex exclusive in sortArrayWith method
...
This patch makes toIndex parameter exclusive in sortArrayWith method
in order to make this method corresponding to the other ones (e.g.
copyOfRange, Array.sortWith extension etc).
It also improves the external sortBy test in order to use it with
different sort algorithms.
2017-04-13 18:27:08 +07:00
Ilya Matveev
0a01f513be
tests: Show finished tests cout
2017-04-13 18:27:08 +07:00
Ilya Matveev
113b97dda3
stdlib: Add remaining extensions for arrays
2017-04-13 18:27:08 +07:00
Ilya Matveev
1e7a5d45e0
stdlib: Add sort functions for primitive arrays
2017-04-13 18:27:08 +07:00
Ilya Matveev
bd27d68906
stdlib: Fix contentDeepToString
2017-04-13 18:27:08 +07:00
Ilya Matveev
230e3235af
stdlib: Remove some inlines
2017-04-13 18:27:08 +07:00
Ilya Matveev
7d216dcb47
stdlib: Add deep array operations
2017-04-13 18:27:08 +07:00
Ilya Matveev
697cc88001
stdlib: Fix constructors for arrays
2017-04-13 18:27:08 +07:00
Ilya Matveev
0e302d26a8
stdlib: Add contentEquals extension for arrays
2017-04-13 18:27:08 +07:00
Ilya Matveev
01401cf799
stdlib: Add array constructors with initializers
2017-04-13 18:27:08 +07:00
Ilya Matveev
f4c0efdbd8
stdlib: Add Array.average
2017-04-13 18:27:08 +07:00
Ilya Matveev
69d2cf5c47
stdlib: Add toList method for arrays of value types
2017-04-13 18:27:08 +07:00
Ilya Matveev
ca5418ad15
Fix license position in dependencies/build.gradle
2017-04-13 18:27:08 +07:00
Svyatoslav Scherbina
c8f070f90d
Automatically exclude interop functions having non-compilable C stubs
2017-04-13 14:08:47 +03:00
Svyatoslav Scherbina
05dae83185
Refactor interop stub generation
...
Explicitly group stub lines related to the single declaration
2017-04-13 14:08:47 +03:00
Vasily Levchenko
eadcd98740
kotlin-compiler: 1.1-20170412.175827-457
2017-04-13 12:21:04 +03:00
Ilya Matveev
bd747b54bd
build: Use a property to provide an URL for dependency downloading
...
This patch adds baseUrl property to store a dependency downloading
path. The property may be set for each downloading task separately.
2017-04-12 18:50:23 +07:00
Konstantin Anisimov
78c043f15f
All FunctionDescriptors on call sites must be copied
2017-04-11 19:12:00 +07:00
Svyatoslav Scherbina
2a3450047c
Add interop test for returning struct by value
2017-04-10 17:28:25 +03:00
Svyatoslav Scherbina
208d568e3e
Update INTEROP.md
...
Describe working with `CValue`.
2017-04-10 17:28:25 +03:00
Svyatoslav Scherbina
716efe7310
Workaround incomplete inline for interop's readValue
2017-04-10 17:28:25 +03:00
Svyatoslav Scherbina
c4cc91d880
Improve quoting in interop stubs for variadic functions
...
#KT-17321 Fixed
2017-04-10 17:28:25 +03:00
Svyatoslav Scherbina
6cf55ce20d
Fix building dist without system toolchain
2017-04-10 17:28:25 +03:00
Svyatoslav Scherbina
a9ebb44c6d
Fix interop with SDL on iOS
2017-04-10 17:28:25 +03:00
Nikolay Igotti
2227415448
Remove remnants of concurrent memory model ( #467 )
2017-04-10 16:49:46 +03:00
Nikolay Igotti
4f13da844f
Fix iphone build ( #465 )
2017-04-10 16:14:53 +03:00
Vasily Levchenko
b54ff99fc7
--print_locations: don't print null, please name instead.
...
(cherry picked from commit 55a96696179dc8854d25f9c4ab429abab604e200)
2017-04-10 16:14:29 +03:00
Nikolay Igotti
322d634e4c
Remove system locale dependencies ( #464 )
2017-04-10 15:22:54 +03:00
Igor Chevdar
f389afee16
Added compiler arg --print_ir_with_descriptors
...
Sometimes it would be useful to see IR with all corresponding
descriptors - now it is possible.
2017-04-10 14:45:55 +03:00
Konstantin Anisimov
8fc1577fe5
Reduce obsolete code
...
Wrote comments
2017-04-10 18:45:28 +07:00
Konstantin Anisimov
6568efbac8
Move TypeSybstitutor creation in InlineFunction
...
Property "currentFile" expected to return IrFile
Print warning if deserializer failed to bring function declaration
2017-04-10 18:45:28 +07:00
Konstantin Anisimov
8235c8b2be
New scheme for copy descriptors names
2017-04-10 18:45:28 +07:00
Konstantin Anisimov
34e49ffb82
Unify inlining procedure for "function" and "lambda"
2017-04-10 18:45:28 +07:00
Konstantin Anisimov
9f4e1a92d8
Unify inlining procedure for "function" and "lambda"
2017-04-10 18:45:28 +07:00
Vasily Levchenko
e83c41a6c6
compiler: 1.1-20170409.165958-449.
2017-04-10 11:47:22 +03:00
Vasily Levchenko
a3bf6641f5
compiler: 1.1-20170405.204642-445
2017-04-10 11:35:54 +03:00
Nikolay Igotti
100e4df05d
Concurrency prototype ( #453 )
...
* Concurrent executors
* Review feedback
2017-04-07 15:16:04 +03:00
Alexander Gorshenev
3efbf3ae27
Removed a fixme leftover.
...
We have a proper version in stdlib now.
2017-04-07 13:47:52 +03:00
Alexander Gorshenev
49674d2b1b
Some mangling disambiguation tests.
2017-04-07 13:47:52 +03:00
Alexander Gorshenev
f91bc457db
Disambiguate upper bounds in the mangling.
2017-04-07 13:47:52 +03:00
Ilya Matveev
a69def4254
tests: Generate test tasks for stdlib tests
...
This patch updates the test execution harness to work with the
new stdlib tests. It allows one to execute stdlib tests as
a part of external testing (./gradlew run_external) or separately
(./gradlew run_external -Pprefix=external_stdlib).
2017-04-07 17:21:11 +07:00
Ilya Matveev
85827b4880
tests: Copy stdlib tests from Kotlin/JVM
...
This patch copies Kotlin/JVM stdlib tests (libraries/stdlib/test)
excepting ones with explicit java dependencies. It also transforms
the tests to use them as box-tests.
2017-04-07 17:21:11 +07:00
Ilya Matveev
5d50943ebd
build: Use *-all gradle package in wrapper
...
This patch gives us an access to gradle javadoc in IDEA by using
*-all gradle package instead of *-bin one.
2017-04-07 17:21:11 +07:00
Igor Chevdar
8690b00790
Refactoring
2017-04-07 08:01:16 +07:00