JS backend: removed adding '$' to label suffix

This commit is contained in:
Alexey Tsvetkov
2014-10-23 20:07:42 +04:00
parent 78e12f7cfa
commit fb8918bbe6
11 changed files with 38 additions and 22 deletions
@@ -1,7 +1,7 @@
package foo
// CHECK_LABELS_COUNT: function=test1 name=loop$ count=1
// CHECK_LABELS_COUNT: function=test2 name=loop$ count=1
// CHECK_LABELS_COUNT: function=test1 name=loop count=1
// CHECK_LABELS_COUNT: function=test2 name=loop count=1
fun test1() {
var `loop$` = 0
@@ -1,7 +1,7 @@
package foo
// CHECK_LABELS_COUNT: function=test name=loop$ count=1
// CHECK_LABELS_COUNT: function=test name=loop$_0 count=1
// CHECK_LABELS_COUNT: function=test name=loop count=1
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1
fun test() {
var i = 0
@@ -1,9 +1,9 @@
package foo
// CHECK_CONTAINS_NO_CALLS: test
// CHECK_LABELS_COUNT: function=test name=loop$ count=1
// CHECK_LABELS_COUNT: function=test name=loop$_0 count=1
// CHECK_LABELS_COUNT: function=test name=loop$_1 count=1
// CHECK_LABELS_COUNT: function=test name=loop count=1
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1
// CHECK_LABELS_COUNT: function=test name=loop_1 count=1
class State() {
public var value: Int = 0
@@ -1,8 +1,8 @@
package foo
// CHECK_LABELS_COUNT: function=test name=loop$ count=1
// CHECK_LABELS_COUNT: function=test name=loop$_0 count=1
// CHECK_LABELS_COUNT: function=test name=loop$_1 count=1
// CHECK_LABELS_COUNT: function=test name=loop count=1
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1
// CHECK_LABELS_COUNT: function=test name=loop_1 count=1
class State() {
public var value: Int = 0
@@ -1,6 +1,6 @@
package foo
// CHECK_LABELS_COUNT: function=test name=loop$ count=2
// CHECK_LABELS_COUNT: function=test name=loop count=2
fun test() {
var i = 0
@@ -1,7 +1,7 @@
package foo
// CHECK_NOT_CALLED: testInline
// CHECK_LABELS_COUNT: function=testNoinline name=loop$ count=2
// CHECK_LABELS_COUNT: function=testNoinline name=loop count=2
inline fun testInline(): Int {
var c = 0
@@ -1,8 +1,8 @@
package foo
// CHECK_NOT_CALLED: testLabelInline
// CHECK_LABELS_COUNT: function=testLabel name=loop$ count=1
// CHECK_LABELS_COUNT: function=testLabel name=loop$_0 count=2
// CHECK_LABELS_COUNT: function=testLabel name=loop count=1
// CHECK_LABELS_COUNT: function=testLabel name=loop_0 count=2
inline fun testLabelInline(): Int {
var a = 0
@@ -1,7 +1,7 @@
package foo
// CHECK_LABELS_COUNT: function=testBreak name=loop$ count=1
// CHECK_LABELS_COUNT: function=testContinue name=loop$ count=1
// CHECK_LABELS_COUNT: function=testBreak name=loop count=1
// CHECK_LABELS_COUNT: function=testContinue name=loop count=1
fun testBreak() {
var i = 0
@@ -2,8 +2,8 @@ package foo
// CHECK_NOT_CALLED: testBreak
// CHECK_NOT_CALLED: testContinue
// CHECK_LABELS_COUNT: function=testBreakNoinline name=loop$ count=1
// CHECK_LABELS_COUNT: function=testContinueNoinline name=loop$ count=1
// CHECK_LABELS_COUNT: function=testBreakNoinline name=loop count=1
// CHECK_LABELS_COUNT: function=testContinueNoinline name=loop count=1
inline fun testBreak(): Int {
var i = 0