Igor Chevdar
8690b00790
Refactoring
2017-04-07 08:01:16 +07:00
Igor Chevdar
db50381bc9
Inline: set correct containing declaration + some fixes
...
1. Containing declaration can be computed as parent from the IR.
2. Sometimes we need to substitute FunctionDescriptor which is defined
inside an inline function call but nevertheless leaks to the outside:
public inline fun <T, R> T.myLet(f: (T) -> R): R = f(this)
interface foo {
fun bar(): String
}
fun box(): String {
val baz = "OK".myLet {
object : foo {
override fun bar() = it
}
}
return baz.bar()
}
2017-04-07 08:01:16 +07:00
Konstantin Anisimov
3c2b5a9762
Fixed "interop0" failure
2017-04-06 16:25:11 +03:00
Konstantin Anisimov
53bc4b1872
Eliminated special treatment for lambda parameter -> argument map building
...
Fix for ClassDescriptors substitution
2017-04-06 16:25:11 +03:00
Konstantin Anisimov
82917eafbd
Move copying descriptors and types in InlineCopyIr
2017-04-06 16:25:11 +03:00
Konstantin Anisimov
7ec89caf27
Avoid evaluation ANONIMOUS_FUNCTION as argument
2017-04-06 16:25:11 +03:00
SvyatoslavScherbina
2f90e3f055
Update INTEROP.md
2017-04-06 11:09:57 +03:00
SvyatoslavScherbina
058bb728df
kotlin-compiler: 1.1-20170403.193854-443 ( #452 )
2017-04-05 20:48:58 +03:00
Igor Chevdar
f5e3519d3a
Inline: implemented properties copying
2017-04-05 14:30:03 +03:00
Igor Chevdar
e9b207595a
Inline: correct set of super class for ClassDescriptor
2017-04-05 14:30:03 +03:00
Vasily Levchenko
962b7905c6
.gitignore: makes teamcity-test.property commitable only if it really required
2017-04-05 14:27:16 +03:00
Vasily Levchenko
461b977cae
TEST: build slack teamcity properties for testing:
...
- NEVER commit if konan-reporter-token contains real token.
2017-04-05 14:27:16 +03:00
Vasily Levchenko
8aaf784f0e
BUILD: even more improvements of slack integration:
...
- refactoring (extract variables to avoid access duplication).
- typo konan-reporter-token, epilogue and buildProperties.
- unused variables declaration removed.
- acting only if teamcity config passed throw environment.
2017-04-05 14:27:16 +03:00
Alexander Gorshenev
3f625ce1b2
More primitive types for constants.
2017-04-05 12:09:43 +03:00
Alexander Gorshenev
b3bbd96bce
Eliminated an "external inline" function from stdlib.
2017-04-05 12:09:43 +03:00
Alexander Gorshenev
429bc31b82
No serialization for "external public inline" functions.
2017-04-05 12:09:43 +03:00
Giuseppe Barbieri
9195291976
Update README.md ( #450 )
2017-04-05 10:49:54 +03:00
Vasily Levchenko
77fb3c6985
BUILD: use slack parameters from teamcity parameters
2017-04-04 23:10:37 +03:00
Dmitry Jemerov
8505f03d8e
Fix path to SDL defs in README ( #446 )
2017-04-04 22:36:48 +03:00
Dmitry Jemerov
305dbd30a6
Fix Markdown syntax
2017-04-04 17:32:12 +02:00
Konstantin Anisimov
a70d5293b3
Typo fixed
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
5f9f0e55d0
Optimize import
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
c7de1d452f
Move type operations in DeepCopyIrTreeWithDescriptors
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
276c14a896
Minor refactoring
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
90b910fd53
Igor's fixes
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
526a496d59
Assert prevents compiling stdlib - should be suspended
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
36ddaa46e4
Assert if deserializer failed to fetch FunctionDeclaration
2017-04-04 18:02:01 +07:00
Konstantin Anisimov
2381e453d8
Type substitution relocated in DeepCopyIrWithDescriptors
2017-04-04 18:02:01 +07:00
Igor Chevdar
ee3e408dcb
Added recursive inlining
2017-04-04 11:58:52 +03:00
Igor Chevdar
b9507d9036
Do not inline arguments that are IrBlock or IrCallableReference
2017-04-04 11:58:52 +03:00
Igor Chevdar
d9e400f39e
* Enabled inlining of stdlib
...
* Fixed two bugs in inlining
2017-04-04 11:58:52 +03:00
Igor Chevdar
fffbff1365
Inline: need to clone all arguments for inline function call
2017-04-04 11:58:52 +03:00
Igor Chevdar
791712a22a
Fixed bug with inline function call: run substituter on descriptors
2017-04-04 11:58:52 +03:00
Igor Chevdar
8d5ec79192
Supported empty vararg parameter in inline function call
2017-04-04 11:58:52 +03:00
Igor Chevdar
492187cb4c
Fixed visibility
...
Function declared in inline function is not always local - it can
be declared in a local class
2017-04-04 11:58:52 +03:00
Igor Chevdar
b960d8b84a
Fixed containing declaration during copying of function descriptor
2017-04-04 11:58:52 +03:00
Igor Chevdar
6c1c86abaf
Fixed dispatch receiver during copying of function descriptor
2017-04-04 11:58:52 +03:00
Igor Chevdar
8dbdd9422d
Copying of memberScope of local class in inline function
2017-04-04 11:58:52 +03:00
Igor Chevdar
05b6d8ab81
Synchronized Any?.plus with JVM Kotlin
2017-04-04 11:58:52 +03:00
Igor Chevdar
fc55e9fba1
Added phase to IrValidator: ensure that all IR nodes are different
2017-04-04 11:58:52 +03:00
Igor Chevdar
dc7e00aa2a
Added function declarations stack for debugging
2017-04-04 11:58:52 +03:00
Nikolay Igotti
074131f1ac
Fix isw* function usage
2017-04-03 19:32:32 +03:00
ilmat192
368ad9449f
Small fixes ( #442 )
...
* Fix gradle plugin readme
* samples: Add brew paths
2017-04-03 19:05:44 +03:00
Nikolay Igotti
ac37d95ff1
Minor fixes
2017-04-03 17:22:46 +03:00
Ilya Matveev
a553768067
samples: Fix tetris readme
2017-04-03 20:59:42 +07:00
Ilya Matveev
9a07fd322d
samples: Update comments in the tetris gradle build
2017-04-03 19:11:04 +07:00
Ilya Matveev
7b0e70d550
build: Don't override bintray artifact during uploading by default
...
This patch disables overriding the gradle-plugin artifact if
such artifact is already uploaded to bintray. One may force
overriding using 'override' project property:
./gradlew bintrayUpload -Poverride
2017-04-03 19:11:04 +07:00
Svyatoslav Scherbina
a7cf182716
Simplify libcurl sample by using StableObjPtr
2017-04-03 15:03:26 +03:00
Svyatoslav Scherbina
a50b38da5a
Implement StableObjPtr for Kotlin N
2017-04-03 15:03:26 +03:00
Svyatoslav Scherbina
d07295d732
Remove some hacks from libcurl sample
2017-04-03 15:03:26 +03:00