-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b96044d
commit db90ffd
Showing
43 changed files
with
249 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Tests/Libraries/Selected Library" type="GradleRunConfiguration" factoryName="Gradle" folderName="Latest"> | ||
<ExternalSystemSettings> | ||
<option name="env"> | ||
<map> | ||
<entry key="libraryTest" value="" /> | ||
<entry key="onlyIndices" value="226" /> | ||
</map> | ||
</option> | ||
<option name="executionName" /> | ||
<option name="externalProjectPath" value="$PROJECT_DIR$/acceptance-tests" /> | ||
<option name="externalSystemIdString" value="GRADLE" /> | ||
<option name="scriptParameters" value="" /> | ||
<option name="taskDescriptions"> | ||
<list /> | ||
</option> | ||
<option name="taskNames"> | ||
<list> | ||
<option value="libraries:kgp_latestTest" /> | ||
</list> | ||
</option> | ||
<option name="vmOptions" /> | ||
</ExternalSystemSettings> | ||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess> | ||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> | ||
<DebugAllEnabled>false</DebugAllEnabled> | ||
<RunAsTest>false</RunAsTest> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule acceptance-tests
updated
from 0547b4 to 2f5d75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m -XX:+UseParallelGC | ||
|
||
kotlin.internal.compiler.arguments.log.level=info | ||
|
||
kotlin.internal.klibs.non-packed=false |
34 changes: 34 additions & 0 deletions
34
...ugin/src/kgp_1.8.0..2.0.20/kotlin/co/touchlab/skie/shim/ObjCExportMapperShim.kgp_1.8.0.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@file:Suppress("invisible_reference", "invisible_member") | ||
|
||
package co.touchlab.skie.shim | ||
|
||
import org.jetbrains.kotlin.backend.konan.objcexport.ObjCExportMapper | ||
import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor | ||
import org.jetbrains.kotlin.descriptors.ClassDescriptor | ||
import org.jetbrains.kotlin.descriptors.PropertyDescriptor | ||
import org.jetbrains.kotlin.backend.konan.objcexport.getClassIfCategory | ||
import org.jetbrains.kotlin.backend.konan.objcexport.isObjCProperty | ||
import org.jetbrains.kotlin.backend.konan.objcexport.isTopLevel | ||
|
||
actual object ObjCExportMapperShim { | ||
actual fun isSpecialMapped( | ||
mapper: ObjCExportMapper, | ||
descriptor: ClassDescriptor | ||
): Boolean = mapper.isSpecialMapped(descriptor) | ||
|
||
actual fun isTopLevel( | ||
mapper: ObjCExportMapper, | ||
descriptor: CallableMemberDescriptor | ||
): Boolean = mapper.isTopLevel(descriptor) | ||
|
||
actual fun getClassIfCategory( | ||
mapper: ObjCExportMapper, | ||
descriptor: CallableMemberDescriptor | ||
): ClassDescriptor? = mapper.getClassIfCategory(descriptor) | ||
|
||
actual fun isObjCProperty( | ||
mapper: ObjCExportMapper, | ||
property: PropertyDescriptor | ||
): Boolean = mapper.isObjCProperty(property) | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
....0/kotlin/co/touchlab/skie/kir/irbuilder/impl/symboltable/DummyIrConstructor.kgp_2.1.0.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package co.touchlab.skie.kir.irbuilder.impl.symboltable | ||
|
||
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor | ||
import org.jetbrains.kotlin.descriptors.DescriptorVisibility | ||
import org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI | ||
import org.jetbrains.kotlin.ir.declarations.IrConstructor | ||
import org.jetbrains.kotlin.ir.declarations.IrDeclarationOrigin | ||
import org.jetbrains.kotlin.ir.declarations.IrFactory | ||
import org.jetbrains.kotlin.ir.declarations.IrTypeParameter | ||
import org.jetbrains.kotlin.ir.declarations.IrValueParameter | ||
import org.jetbrains.kotlin.ir.declarations.MetadataSource | ||
import org.jetbrains.kotlin.ir.expressions.IrBody | ||
import org.jetbrains.kotlin.ir.expressions.IrConstructorCall | ||
import org.jetbrains.kotlin.ir.symbols.IrConstructorSymbol | ||
import org.jetbrains.kotlin.ir.types.IrType | ||
import org.jetbrains.kotlin.name.Name | ||
import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource | ||
|
||
actual class DummyIrConstructor actual constructor(override val symbol: IrConstructorSymbol) : IrConstructor() { | ||
|
||
actual override var isPrimary: Boolean by unsupported() | ||
override val startOffset: Int by unsupported() | ||
override val endOffset: Int by unsupported() | ||
override val factory: IrFactory by unsupported() | ||
override var origin: IrDeclarationOrigin by unsupported() | ||
override var name: Name by unsupported() | ||
override var visibility: DescriptorVisibility by unsupported() | ||
override var body: IrBody? by unsupported() | ||
override var contextReceiverParametersCount: Int by unsupported() | ||
|
||
@ObsoleteDescriptorBasedAPI | ||
override val descriptor: ClassConstructorDescriptor by unsupported() | ||
override var dispatchReceiverParameter: IrValueParameter? by unsupported() | ||
override var extensionReceiverParameter: IrValueParameter? by unsupported() | ||
actual override var isExpect: Boolean by unsupported() | ||
actual override var isInline: Boolean by unsupported() | ||
override var returnType: IrType by unsupported() | ||
override val containerSource: DeserializedContainerSource? by unsupported() | ||
override var metadata: MetadataSource? by unsupported() | ||
override var annotations: List<IrConstructorCall> by unsupported() | ||
actual override var isExternal: Boolean by unsupported() | ||
override var typeParameters: List<IrTypeParameter> by unsupported() | ||
} |
57 changes: 57 additions & 0 deletions
57
...kotlin/co/touchlab/skie/kir/irbuilder/impl/symboltable/DummyIrSimpleFunction.kgp_2.1.0.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package co.touchlab.skie.kir.irbuilder.impl.symboltable | ||
|
||
import org.jetbrains.kotlin.descriptors.DescriptorVisibility | ||
import org.jetbrains.kotlin.descriptors.FunctionDescriptor | ||
import org.jetbrains.kotlin.descriptors.Modality | ||
import org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI | ||
import org.jetbrains.kotlin.ir.declarations.IrAttributeContainer | ||
import org.jetbrains.kotlin.ir.declarations.IrDeclarationOrigin | ||
import org.jetbrains.kotlin.ir.declarations.IrFactory | ||
import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction | ||
import org.jetbrains.kotlin.ir.declarations.IrTypeParameter | ||
import org.jetbrains.kotlin.ir.declarations.IrValueParameter | ||
import org.jetbrains.kotlin.ir.declarations.MetadataSource | ||
import org.jetbrains.kotlin.ir.expressions.IrBody | ||
import org.jetbrains.kotlin.ir.expressions.IrConstructorCall | ||
import org.jetbrains.kotlin.ir.symbols.IrPropertySymbol | ||
import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol | ||
import org.jetbrains.kotlin.ir.types.IrType | ||
import org.jetbrains.kotlin.name.Name | ||
import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource | ||
|
||
actual class DummyIrSimpleFunction actual constructor( | ||
override val symbol: IrSimpleFunctionSymbol, | ||
) : IrSimpleFunction() { | ||
|
||
override var startOffset: Int by unsupported() | ||
override var endOffset: Int by unsupported() | ||
override var attributeOwnerId: IrAttributeContainer by unsupported() | ||
override val factory: IrFactory by unsupported() | ||
override var origin: IrDeclarationOrigin by unsupported() | ||
override var originalBeforeInline: IrAttributeContainer? by unsupported() | ||
override var name: Name by unsupported() | ||
override var visibility: DescriptorVisibility by unsupported() | ||
override var body: IrBody? by unsupported() | ||
override var contextReceiverParametersCount: Int by unsupported() | ||
|
||
@ObsoleteDescriptorBasedAPI | ||
override val descriptor: FunctionDescriptor by unsupported() | ||
override var dispatchReceiverParameter: IrValueParameter? by unsupported() | ||
override var extensionReceiverParameter: IrValueParameter? by unsupported() | ||
override var isExpect: Boolean by unsupported() | ||
override var isInline: Boolean by unsupported() | ||
override var returnType: IrType by unsupported() | ||
override val containerSource: DeserializedContainerSource? by unsupported() | ||
override var metadata: MetadataSource? by unsupported() | ||
override var annotations: List<IrConstructorCall> by unsupported() | ||
override var overriddenSymbols: List<IrSimpleFunctionSymbol> by unsupported() | ||
override var modality: Modality by unsupported() | ||
override var isExternal: Boolean by unsupported() | ||
override var correspondingPropertySymbol: IrPropertySymbol? by unsupported() | ||
override var isFakeOverride: Boolean by unsupported() | ||
override var isInfix: Boolean by unsupported() | ||
override var isOperator: Boolean by unsupported() | ||
override var isSuspend: Boolean by unsupported() | ||
override var isTailrec: Boolean by unsupported() | ||
override var typeParameters: List<IrTypeParameter> by unsupported() | ||
} |
35 changes: 35 additions & 0 deletions
35
...inker-plugin/src/kgp_2.1.0/kotlin/co/touchlab/skie/shim/ObjCExportMapperShim.kgp_2.1.0.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@file:Suppress("invisible_reference", "invisible_member") | ||
|
||
package co.touchlab.skie.shim | ||
|
||
import org.jetbrains.kotlin.backend.konan.objcexport.ObjCExportMapper | ||
import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor | ||
import org.jetbrains.kotlin.descriptors.ClassDescriptor | ||
import org.jetbrains.kotlin.descriptors.PropertyDescriptor | ||
import org.jetbrains.kotlin.backend.konan.objcexport.isSpecialMapped | ||
import org.jetbrains.kotlin.backend.konan.objcexport.getClassIfCategory | ||
import org.jetbrains.kotlin.backend.konan.objcexport.isObjCProperty | ||
import org.jetbrains.kotlin.backend.konan.objcexport.isTopLevel | ||
|
||
actual object ObjCExportMapperShim { | ||
actual fun isSpecialMapped( | ||
mapper: ObjCExportMapper, | ||
descriptor: ClassDescriptor | ||
): Boolean = isSpecialMapped(descriptor) | ||
|
||
actual fun isTopLevel( | ||
mapper: ObjCExportMapper, | ||
descriptor: CallableMemberDescriptor | ||
): Boolean = isTopLevel(descriptor) | ||
|
||
actual fun getClassIfCategory( | ||
mapper: ObjCExportMapper, | ||
descriptor: CallableMemberDescriptor | ||
): ClassDescriptor? = getClassIfCategory(descriptor) | ||
|
||
actual fun isObjCProperty( | ||
mapper: ObjCExportMapper, | ||
property: PropertyDescriptor | ||
): Boolean = isObjCProperty(property) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ompiler/linker-plugin/src/kgp_common/kotlin/co/touchlab/skie/shim/ObjCExportMapperShim.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package co.touchlab.skie.shim | ||
|
||
import org.jetbrains.kotlin.backend.konan.objcexport.ObjCExportMapper | ||
import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor | ||
import org.jetbrains.kotlin.descriptors.ClassDescriptor | ||
import org.jetbrains.kotlin.descriptors.PropertyDescriptor | ||
|
||
expect object ObjCExportMapperShim { | ||
fun isSpecialMapped(mapper: ObjCExportMapper, descriptor: ClassDescriptor): Boolean | ||
|
||
fun isTopLevel(mapper: ObjCExportMapper, descriptor: CallableMemberDescriptor): Boolean | ||
|
||
fun getClassIfCategory(mapper: ObjCExportMapper, descriptor: CallableMemberDescriptor): ClassDescriptor? | ||
|
||
fun isObjCProperty(mapper: ObjCExportMapper, property: PropertyDescriptor): Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m -XX:+UseParallelGC | ||
|
||
kotlin.internal.klibs.non-packed=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.