[Native] Support evaluation of const intrinsics for K2

#KT-56023
#KT-55469 Fixed
This commit is contained in:
Ivan Kylchik
2023-02-03 14:53:15 +01:00
committed by Space Team
parent 5d5582d201
commit e981b1f958
34 changed files with 264 additions and 60 deletions
@@ -1,8 +1,3 @@
// KT-56023
// JS_IR: InterpreterError: Unsupported number of arguments for invocation as builtin function: four
// NATIVE: in mode -Pkotlin.internal.native.test.mode=TWO_STAGE_MULTI_MODULE (default test mode), test fails as below
// InterpreterError: Unsupported number of arguments for invocation as builtin function: four
// in mode -Pkotlin.internal.native.test.mode=ONE_STAGE_MULTI_MODULE, test passes
// IGNORE_BACKEND_K2: NATIVE, JS_IR
// MODULE: lib
@@ -1,7 +1,3 @@
// KT-56023
// JS_IR: IllegalStateException: CONST_VAL_WITH_NON_CONST_INITIALIZER: Const 'val' initializer should be a constant value at (7,18) in /lib.kt
// NATIVE: test fails as below in both modes -Pkotlin.internal.native.test.mode=TWO_STAGE_MULTI_MODULE, -Pkotlin.internal.native.test.mode=ONE_STAGE_MULTI_MODULE
// error: const 'val' initializer should be a constant value
// IGNORE_BACKEND_K2: NATIVE, JS_IR
// MODULE: lib