Rename runtime-string-concat option into 'string-concat'
This commit is contained in:
+5
-5
@@ -81,11 +81,6 @@ where advanced options include:
|
||||
profilerPath is a path to libasyncProfiler.so
|
||||
Example: -Xprofile=<PATH_TO_ASYNC_PROFILER>/async-profiler/build/libasyncProfiler.so:event=cpu,interval=1ms,threads,start,framebuf=50000000:<SNAPSHOT_DIR_PATH>
|
||||
-Xrepeat=<number> Debug option: Repeats modules compilation <number> times
|
||||
-Xruntime-string-concat={disable|enable|indy}
|
||||
Switch a way in which string concatenation is performed.
|
||||
-Xruntime-string-concat=enable Performs string concatenation via `invokedynamic` 'makeConcatWithConstants'. Works only with `-jvm-target 9` or greater
|
||||
-Xruntime-string-concat=indy Performs string concatenation via `invokedynamic` 'makeConcat'. Works only with `-jvm-target 9` or greater
|
||||
-Xruntime-string-concat=disable Performs string concatenation via `StringBuilder`
|
||||
-Xsanitize-parentheses Transform '(' and ')' in method names to some other character sequence.
|
||||
This mode can BREAK BINARY COMPATIBILITY and is only supposed to be used to workaround
|
||||
problems with parentheses in identifiers on certain platforms
|
||||
@@ -97,6 +92,11 @@ where advanced options include:
|
||||
Generate nullability assertions for non-null Java expressions
|
||||
-Xgenerate-strict-metadata-version
|
||||
Generate metadata with strict version semantics (see kdoc on Metadata.extraInt)
|
||||
-Xstring-concat={indy-with-constants|indy|inline}
|
||||
Switch a way in which string concatenation is performed.
|
||||
-Xstring-concat=indy-with-constants Performs string concatenation via `invokedynamic` 'makeConcatWithConstants'. Works only with `-jvm-target 9` or greater
|
||||
-Xstring-concat=indy Performs string concatenation via `invokedynamic` 'makeConcat'. Works only with `-jvm-target 9` or greater
|
||||
-Xstring-concat=inline Performs string concatenation via `StringBuilder`
|
||||
-Xsupport-compatqual-checker-framework-annotations=enable|disable
|
||||
Specify behavior for Checker Framework compatqual annotations (NullableDecl/NonNullDecl).
|
||||
Default value is 'enable'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
class A
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
|
||||
fun box() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
fun box() {
|
||||
val z = "0"
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
class A
|
||||
|
||||
@@ -10,6 +10,6 @@ fun box(a: String, b: String?) {
|
||||
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + A()
|
||||
}
|
||||
|
||||
// 1INVOKEDYNAMIC makeConcatWithConstants
|
||||
// 1 INVOKEDYNAMIC makeConcatWithConstants
|
||||
// 0 append
|
||||
// 0 stringPlus
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=indy
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
|
||||
// JVM_TARGET: 9
|
||||
class A
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=indy
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
|
||||
// JVM_TARGET: 9
|
||||
fun box() {
|
||||
val z = "0"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
fun box(a: String, b: String?) {
|
||||
val sb = StringBuilder();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
fun box(): String {
|
||||
val p = 3147483648u
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
fun box(): String {
|
||||
val z = "0"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
fun box(): String {
|
||||
val z = "0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=indy
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
|
||||
// JVM_TARGET: 9
|
||||
fun box(): String {
|
||||
val z = "0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=indy
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
|
||||
// JVM_TARGET: 9
|
||||
fun box(): String {
|
||||
val z = "0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
inline class Str(val s: String)
|
||||
inline class NStr(val s: String?)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
inline fun test(crossinline s: (String) -> String): String {
|
||||
var result = "1" + s("2") + "3" + 4 + {
|
||||
|
||||
Reference in New Issue
Block a user