Skip to content

Commit ccab914

Browse files
authored
Merge pull request #1 from JetBrains/master
sync with upstream
2 parents 39ba462 + 4878c79 commit ccab914

File tree

7,878 files changed

+171566
-91196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,878 files changed

+171566
-91196
lines changed

.bunch

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
191
21
192
3-
183
4-
182_183
5-
as33_182_183
6-
as34_183
7-
as35
8-
as36_192
2+
193
3+
191
4+
183_191
5+
as34_183_191
6+
as35_191
7+
as36

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ build/
5151
kotlin-ultimate/
5252
node_modules/
5353
.rpt2_cache/
54-
libraries/tools/kotlin-test-nodejs-runner/lib/
54+
libraries/tools/kotlin-test-js-runner/lib/
55+
libraries/tools/kotlin-source-map-loader/lib/
5556
local.properties

.idea/dictionaries/4u7.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/dmitriy_dolovov.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/yan.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/idea_default.xml

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ChangeLog.md

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Development for some particular platform is possible after 'switching' that can
9999
cd kotlin-project-dir
100100

101101
# switching to IntelliJ Idea 2018.2
102-
bunch switch . 182
102+
bunch switch 182
103103
```
104104

105105
## <a name="working-in-idea"></a> Working with the project in IntelliJ IDEA

benchmarks/build.gradle.kts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import kotlinx.benchmark.gradle.benchmark
2+
3+
val benchmarks_version = "0.2.0-dev-4"
4+
buildscript {
5+
val benchmarks_version = "0.2.0-dev-4"
6+
7+
repositories {
8+
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
9+
if (cacheRedirectorEnabled) {
10+
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlinx")
11+
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlin-dev")
12+
} else {
13+
maven("https://dl.bintray.com/kotlin/kotlinx")
14+
maven("https://dl.bintray.com/kotlin/kotlin-dev")
15+
}
16+
}
17+
dependencies {
18+
classpath("org.jetbrains.kotlinx:kotlinx.benchmark.gradle:$benchmarks_version")
19+
}
20+
}
21+
22+
apply(plugin = "kotlinx.benchmark")
23+
24+
plugins {
25+
java
26+
kotlin("jvm")
27+
}
28+
29+
repositories {
30+
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
31+
if (cacheRedirectorEnabled) {
32+
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlinx")
33+
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlin-dev")
34+
} else {
35+
maven("https://dl.bintray.com/kotlin/kotlinx")
36+
maven("https://dl.bintray.com/kotlin/kotlin-dev")
37+
}
38+
}
39+
40+
dependencies {
41+
compile(kotlinStdlib())
42+
compile(project(":compiler:frontend"))
43+
compile(project(":compiler:cli"))
44+
compile(intellijCoreDep()) { includeJars("intellij-core") }
45+
compile(jpsStandalone()) { includeJars("jps-model") }
46+
Platform[192].orHigher {
47+
compile(intellijPluginDep("java"))
48+
}
49+
compile(intellijDep()) { includeIntellijCoreJarDependencies(project) }
50+
compile("org.jetbrains.kotlinx:kotlinx.benchmark.runtime-jvm:$benchmarks_version")
51+
}
52+
53+
sourceSets {
54+
"main" { projectDefault() }
55+
}
56+
57+
benchmark {
58+
configurations {
59+
named("main") {
60+
warmups = 10
61+
iterations = 10
62+
iterationTime = 1
63+
iterationTimeUnit = "sec"
64+
param("size", 1000)
65+
}
66+
67+
register("fir") {
68+
warmups = 10
69+
iterations = 10
70+
iterationTime = 1
71+
iterationTimeUnit = "sec"
72+
param("isIR", true)
73+
param("size", 1000)
74+
75+
include("CommonCallsBenchmark")
76+
//include("InferenceBaselineCallsBenchmark")
77+
}
78+
}
79+
targets {
80+
register("main")
81+
}
82+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
3+
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
4+
*/
5+
6+
package org.jetbrains.kotlin.benchmarks
7+
8+
import org.openjdk.jmh.annotations.Param
9+
import org.openjdk.jmh.annotations.Scope
10+
import org.openjdk.jmh.annotations.State
11+
12+
@State(Scope.Benchmark)
13+
abstract class AbstractInferenceBenchmark : AbstractSimpleFileBenchmark() {
14+
@Param("true", "false")
15+
private var useNI: Boolean = false
16+
17+
override val useNewInference: Boolean
18+
get() = useNI
19+
}

0 commit comments

Comments
 (0)