Commit Graph

80733 Commits

Author SHA1 Message Date
Sergey Bogolepov 4222fb9629 Remove unused filterGradleNativeSoftwareFlags method 2021-03-22 14:02:40 +03:00
Sergey Bogolepov ec23ebd1c5 Fix workerAutoreleasePool test on macos_arm64 using __autoreleasing
Also merge `createAutorelease` and `create. There is no need in
such separation since it was originally added to prevent
optimization `result`'s lifetime.
Turned out, it was still happening on Apple Silicon,
and only addition of __autoreleasing attribute solves the problem.
2021-03-22 14:02:39 +03:00
Ilya Kirillov 4826e3278f FIR IDE: get rid of constructor value parameter symbols 2021-03-22 11:27:31 +01:00
Ilya Kirillov 7b482bf70a FIR IDE: merge symbol building tests and symbol restoring tests 2021-03-22 11:27:30 +01:00
Ilya Kirillov 1d63dccfae FIR IDE: fix symbol pointer creation for non direct member symbols 2021-03-22 11:27:29 +01:00
Ilya Kirillov a7b0c6c821 FIR IDE: fix symbol pointer creation for KtAnonymousObjectSymbol 2021-03-22 11:27:28 +01:00
Ilya Kirillov 0bb37db4bf FIR IDE: introduce AbstractSymbolByReferencePointerRestoreTest 2021-03-22 11:27:27 +01:00
Ilya Kirillov 846dc1b9b9 FIR IDE: add more info to require calls KtSymbolByFirBuilder 2021-03-22 11:27:26 +01:00
Ilya Kirillov ae6eeb2501 FIR IDE: introduce KtBackingFieldSymbol 2021-03-22 11:27:25 +01:00
Ilya Kirillov 443a14756f FIR IDE: change KtPropertySymbol inheritors cratePointer to return specific symbols 2021-03-22 11:27:25 +01:00
Ilya Kirillov ceed3e7355 FIR IDE: separate KtSymbolByFirBuilder.buildVariableSymbol into functions 2021-03-22 11:27:24 +01:00
Ilya Kirillov 010f1cb634 FIR IDE: build KtJavaFieldSymbol only for Java fields 2021-03-22 11:27:22 +01:00
Ilya Kirillov 8bf339a7cf FIR IDE: refactor, extract throwing unexpected element error into function 2021-03-22 11:27:20 +01:00
Ilya Kirillov 502087a3c7 FIR IDE: extract KtType building from KtSymbolByFirBuilder 2021-03-22 11:27:19 +01:00
Ilya Kirillov b6d334b303 FIR IDE: extract callable symbol building from KtSymbolByFirBuilder 2021-03-22 11:27:19 +01:00
Ilya Kirillov c06bcbad39 FIR IDE: extract variable-like symbol building from KtSymbolByFirBuilder 2021-03-22 11:27:18 +01:00
Ilya Kirillov bafc61b56f FIR IDE: extract function-like symbol building from KtSymbolByFirBuilder 2021-03-22 11:27:17 +01:00
Ilya Kirillov db64884bd0 FIR IDE: refactor callable symbol building in KtSymbolByFirBuilder 2021-03-22 11:27:16 +01:00
Ilya Kirillov 439e54aee6 FIR IDE: extract class-like symbol building to separate class 2021-03-22 11:27:15 +01:00
Ilya Kirillov cf30be5957 FIR IDE: make KtAnonymousObject symbol to extend KtClassObjectSymbol 2021-03-22 11:27:14 +01:00
Ilya Kirillov 08433b9ac9 FIR IDE: fix constructor symbol building for type alias constructors 2021-03-22 11:27:13 +01:00
Ilya Kirillov 4d5da26696 FIR IDE: get rid of KtFirSetterParameterSymbol 2021-03-22 11:27:12 +01:00
Ilya Kirillov 5e14aa34ec FIR IDE: add more info to CCE in symbol builder 2021-03-22 11:27:12 +01:00
scaventz 0dc5ed53f8 Provide sensible toString for getter/setter in reflection. 2021-03-22 11:21:54 +01:00
Svyatoslav Scherbina 8b3ff11a2b Provide CName annotation in common stdlib as optional 2021-03-22 09:20:05 +00:00
Svyatoslav Scherbina 552bd108a9 stdlib: rename NativeAnnotationsH.kt -> NativeConcurrentAnnotations.kt
Also move it from libraries/stdlib/common/src/kotlin
to libraries/stdlib/src/kotlin/annotations
2021-03-22 09:20:05 +00:00
Igor Yakovlev 25929b50d9 [FIR IDE] RawFirBuilder for lazy bodies 2021-03-21 10:42:29 +01:00
Nikolay Krasko 1558bd7373 Trust all module metadata till Gradle 6.8 update (KTI-493)
There's and issue with absent module files in the cache that leads to
"Artifact has been deleted from dependency cache" that can be resolved
by cleaning caches. It should be fixed in Gradle 6.8

https://github.com/gradle/gradle/issues/12713
2021-03-21 00:05:54 +03:00
Nikolay Krasko 73bc16896d Trust all poms till Gradle 6.8 update (KTI-493)
There's and issue with absent poms in the cache that leads to
"Artifact has been deleted from dependency cache" that can be resolved
by cleaning caches. It should be fixed in Gradle 6.8

https://github.com/gradle/gradle/issues/12713
2021-03-21 00:05:54 +03:00
Nikolay Krasko efcb071f24 Trust javadoc and sources artifacts as the shouldn't be used in builds (KTI-493) 2021-03-21 00:05:53 +03:00
Nikolay Krasko fd921f1dc0 Trust kotlin-native-prebuild-* (KTI-493)
Need more investigation for this artifact
2021-03-21 00:05:53 +03:00
Nikolay Krasko fae1215881 Trust kotlin artifacts for bootstrapping (KTI-493)
Can't predict exact version after build
2021-03-21 00:05:53 +03:00
Nikolay Krasko 4bbba74360 Trust ivy xml files as they are constantly regenerated (KTI-493) 2021-03-21 00:05:52 +03:00
Nikolay Krasko 8240f5e459 Add dependencies lock with md5 and sha256 (KTI-493)
Initial commit without explicit check or cleanup.

Includes Kotlin Native dependencies.
2021-03-21 00:05:52 +03:00
Keegan Witt a1ceaa9e44 Change pronoun in execption from "his" to "its" 2021-03-19 23:36:53 +01:00
Ilya Goncharov f85ad41674 [IR] Check pureness in inlining lowering after transformation 2021-03-19 21:52:51 +03:00
Ilya Goncharov 8ac8dbdab8 [JS IR] Type operator call pureness 2021-03-19 21:52:51 +03:00
Ilya Goncharov 47d050c420 [JS IR] Correct pureness of expressions for arrayLiteral 2021-03-19 21:52:50 +03:00
Ilya Goncharov f890156dde [JS IR] arrayConcat not use additional slice 2021-03-19 21:52:50 +03:00
Ilya Goncharov 76005813ff [JS IR] Fix for pureness of vararg 2021-03-19 21:52:50 +03:00
Ilya Goncharov 278a8c27fc [JS IR] Not create temporary variable for pure expressions on inline 2021-03-19 21:52:50 +03:00
Ilya Goncharov ece0e200d5 [JS IR] Not nullize external varargs if it is not on the end of call 2021-03-19 21:52:50 +03:00
Ilya Goncharov b8d5712bc0 [JS IR] Not use double slice for external varargs 2021-03-19 21:52:50 +03:00
Ilya Goncharov 120b5b9e05 [JS IR] Move isPure check to backend.common and add platform-specific check on calls with side effects 2021-03-19 21:52:50 +03:00
Ilya Goncharov 7bbb5b77db [JS IR] Concat varargs with non varargs on compile time for function w/o receiver 2021-03-19 21:52:50 +03:00
Ilya Goncharov fc559ab0cd [JS IR] Unite varargs and non varargs before vararg 2021-03-19 21:52:49 +03:00
Dmitry Petrov 9e30ddd12e JVM_IR KT-45581 generate H_INVOKEINTERFACE for interface method handles 2021-03-19 18:57:21 +03:00
Dmitry Petrov 73d4fa65ea JVM_IR KT-45431 don't optimize out $$delegatedProperties in companion
Corresponding delegates are initialized in the host class, using
'$$delegatedProperties'.
TODO figure out proper code generation scheme for delegated properties
in companions (KT-45580)
2021-03-19 18:54:01 +03:00
Dmitry Petrov f6baabd98e JVM_IR KT-45408 rewrite static calls recursively 2021-03-19 18:53:59 +03:00
Alexander Udalov e5f218859b JVM IR: minor, improve error messages for inline classes
It will help in diagnosing problems like KT-44723.
2021-03-19 16:33:42 +01:00