Skip to content

Commit

Permalink
Revert "[Wasm] Implement IrLinkageError end enable partial linker"
Browse files Browse the repository at this point in the history
This reverts commit 666a2f2.
  • Loading branch information
woainikk committed Mar 6, 2024
1 parent 3b90682 commit 1ca6f32
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
Expand Up @@ -773,7 +773,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
mode = arguments.partialLinkageMode,
logLevel = arguments.partialLinkageLogLevel,
compilerModeAllowsUsingPartialLinkage =
/* no PL when producing KLIB */ arguments.includes != null,
/* disabled for WASM for now */ !arguments.wasm && /* no PL when producing KLIB */ arguments.includes != null,
onWarning = { messageCollector.report(WARNING, it) },
onError = { messageCollector.report(ERROR, it) }
)
Expand Down
Expand Up @@ -111,8 +111,6 @@ class WasmSymbols(
override val returnIfSuspended =
getInternalFunction("returnIfSuspended")

val throwLinkageError = getInternalFunction("throwLinkageError")

val enumEntries = getIrClass(FqName.fromSegments(listOf("kotlin", "enums", "EnumEntries")))
val createEnumEntries = findFunctions(enumsInternalPackage.memberScope, Name.identifier("enumEntries"))
.find { it.valueParameters.firstOrNull()?.type?.isFunctionType == false }
Expand Down
Expand Up @@ -43,9 +43,6 @@ class BuiltInsLowering(val context: WasmBackendContext) : FileLoweringPass {
builder: DeclarationIrBuilder
): IrExpression {
when (val symbol = call.symbol) {
irBuiltins.linkageErrorSymbol -> {
return irCall(call, context.wasmSymbols.throwLinkageError)
}
irBuiltins.ieee754equalsFunByOperandType[irBuiltins.floatClass] -> {
if (call.getValueArgument(0)!!.type.isNullable() || call.getValueArgument(1)!!.type.isNullable()) {
return irCall(call, symbols.nullableFloatIeee754Equals)
Expand Down

This file was deleted.

0 comments on commit 1ca6f32

Please sign in to comment.