Mikhail Zarechenskiy
abd1c3df26
[NI] Fix diagnostic reporting and unveil problem wrt captured types
2019-04-25 16:19:32 +03:00
Dmitry Gridin
3e74e875e8
Add a colon check in LanguageSettingsParser
2019-04-25 19:47:39 +07:00
Dmitry Gridin
b78ec32c02
Change CodegenFactory signature from Collection<KtFile?> to Collection<KtFile>
2019-04-25 19:47:39 +07:00
Dmitry Gridin
37c856290f
Fix minor compile warnings
2019-04-25 19:47:39 +07:00
Dmitry Gridin
c41b98f5b9
Replace SystemInfo.isJavaVersionAtLeast("1.7") with SystemInfo.isJavaVersionAtLeast(1, 7, 0)
2019-04-25 19:47:38 +07:00
Alexander Udalov
648ed92ba3
Minor, deduplicate code in CodegenTestCase.doTest
2019-04-25 14:43:56 +02:00
Alexander Udalov
cb6fb78bc3
JS: do not use "-no-stdlib" in non-relevant tests
...
Rename some Ant tests: "simple[...]" -> "simpleWithoutStdlib[...]" and
"simpleWithStdlib[...]" -> "simple[...]"
2019-04-25 14:42:43 +02:00
Alexander Udalov
d5fd160fd3
JS: minor, do not use '==' on descriptors from built-ins
...
Use KotlinBuiltIns.isString instead of equality with
KotlinBuiltIns.string, which is more portable across different module
configurations. Also use isSubtypeOf instead of
DescriptorUtils.isSubclass and thus get rid of an extra error on an
unresolved class in nativeAnnotationCheckers.kt
2019-04-25 14:42:42 +02:00
pyos
31670622c0
Remove a redundant JVM-specific lowering
2019-04-25 14:30:41 +02:00
Jake Wharton
373424f430
Add ULong.compareTo and UInt.div/rem/compareTo intrinsics for Java 8
2019-04-25 13:21:25 +02:00
Georgy Bronnikov
e6362661d1
Merge pull request #2298 from pyos/linear-toarray-lowering
...
JVM_IR: make ToArrayLowering linear in complexity
2019-04-25 13:28:49 +03:00
Mikhail Glukhikh
69ea0a3597
Fir broken FIR2IR test
2019-04-25 12:37:13 +03:00
pyos
4b0b9e1f80
JVM_IR: make ToArrayLowering linear in complexity
...
by not running DFS from every node visited during another DFS.
2019-04-25 11:07:34 +02:00
Simon Ogorodnik
9352d52e7e
FIR: load default value from meta-data
2019-04-25 09:47:38 +03:00
Simon Ogorodnik
879563233a
FIR: optimize caching in JVM deserializer
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
f453e7df27
Improve error reporting in fir benchmark function
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
a5ca8ffe69
Refactor FirSelfImportingScope
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
f22cca5087
FIR top-level member scope: lookup constructors via classes
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
9cf91738ea
Use local callables index in FirClassDeclaredMemberScope
2019-04-25 09:47:37 +03:00
Svyatoslav Kuzmich
e30bdb8dc9
Fix hanling module names that require escaping
2019-04-25 03:54:17 +03:00
Svyatoslav Kuzmich
b0bd5802bb
Remove optionalExpectation hacks
...
Add common sources to Generate IR Runtime
2019-04-24 13:06:58 +03:00
Svyatoslav Kuzmich
1a6e6588fc
Fix: Use Vars instead of plain assignments for declaration imports
2019-04-24 13:06:58 +03:00
Ilmir Usmanov
c2884f3ca8
Optimize variable liveness analysis
...
During coroutines transformation, we analyse liveness of local variables
in order to decide whether we need to spill them or not.
This analysis contains hot method `useVar`, in which we previously
iterated over all variables in LVT. This is done, since these variables
are seen by debugger and we assume they are alice.
However, this variables can be generated by inliner. In this case, the
LVT's size in huge. I.e. we have loop in hot method.
By hoisting the liveness analysis of the LVT and combining its result
with result of usual liveness analysis, we achieve speed-up from 2m30s
down to 5s.
#KT-30603 Fixed
2019-04-24 13:04:40 +03:00
Steven Schäfer
f2392a6a28
Remove Concat and StringPlus intrinsics in favor of IrStringConcatenation.
2019-04-24 12:04:12 +02:00
Svyatoslav Kuzmich
bb3b9a935f
Command line interface
2019-04-23 23:19:12 +03:00
Roman Artemev
89500d776d
[IR BE] Don't use symbol table in SuspendFunctionLowering
2019-04-23 22:30:00 +03:00
Alexey Tsvetkov
bec5879e3a
Fix ABI plugin
...
It seems that I forgot to update compiler.pro.191,
so when we switched to IJ 191, ABI plugin has broken
2019-04-23 21:56:05 +03:00
nikita.movshin
deb416484c
Update copyright. Fix 2 lines comments after rebase
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
2019-04-23 20:15:03 +03:00
nikita.movshin
abb7d3ab46
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update 2 lines comment
2019-04-23 20:09:27 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Vyacheslav Gerasimov
2bc11cbd58
Remove as32 bunch files
2019-04-23 17:28:41 +03:00
Vyacheslav Gerasimov
952d2b6287
Remove 181 bunch files
2019-04-23 17:28:41 +03:00
pyos
5b595b58b2
JVM_IR: fold constant string concatenations
2019-04-23 16:20:43 +02:00
Steven Schäfer
8c06f7daae
Fix IR declaration parents.
...
- Reparent declarations in FileClassLowering, InterfaceLowering,
StaticDefaultFunctionsLowering, EnumClassLowering, and
RenameFieldsLowering
- Set correspondingPropertySymbol in MoveCompanionObjectFieldsLowering
- Reparent field initializers in MoveCompanionObjectFieldsLowering and
EnumClassLowering
- Ensure that parents are unique in PropertiesLowering
- Set declaration parent in SharedVariableManager
- Set field declaration parents in CallableReferenceLowering
- Set declaration parents in FunctionNVarargInvokeLowering
- Set declaration parents for external declaration fields
2019-04-23 12:51:27 +02:00
Mikhail Glukhikh
4a5b900d28
FIR: get rid of library type parameter symbol
2019-04-23 11:51:36 +03:00
Simon Ogorodnik
649c2f6bcc
FIR deserializer: load type-parameters correctly
2019-04-23 11:51:05 +03:00
Simon Ogorodnik
853167a24d
FIR deserializer: handle class type parameters properly
2019-04-23 11:41:07 +03:00
Mikhail Glukhikh
2476c0299f
FIR Java: fix constructor enhancements
...
Before this commit,
we generated regular member functions as constructor enhancement.
Now, we generate constructors as constructor enhancement.
2019-04-23 11:41:05 +03:00
Simon Ogorodnik
2e966a7ded
FIR deserializer: load type-parameters for kotlin function properly
2019-04-23 11:41:03 +03:00
Simon Ogorodnik
9bbf5bebd2
Raw FIR: support typing for delegated constructor call
2019-04-23 11:41:01 +03:00
Simon Ogorodnik
73b1676a03
Raw FIR: fix unary operators (now convention calls use receivers)
2019-04-23 11:40:32 +03:00
Mikhail Glukhikh
77e83dd8cf
Raw FIR: introduce string concatenation call
...
This removes some 'plus' calls to be resolved
2019-04-23 11:35:41 +03:00
Simon Ogorodnik
8d2acd790d
FIR Java: use safer cases in use-site scope to allow constructors
2019-04-23 11:21:46 +03:00
Mikhail Glukhikh
618295f505
FIR: implement trivial typing for break & continue
2019-04-23 11:18:24 +03:00
Mikhail Glukhikh
b9f09afc6f
Raw FIR: introduce lambda argument expressions
...
Without it we cannot distinguish lambda argument from just last argument
2019-04-23 11:15:26 +03:00
Mikhail Glukhikh
cf72b13d84
Add accessor symbols & test for property overriding in Java
2019-04-23 11:15:24 +03:00
Simon Ogorodnik
9abf4062b1
FIR tree: implement trivial expressions typing
2019-04-23 11:14:55 +03:00
Simon Ogorodnik
c3632487d0
FIR Java: improve symbol provider laziness
2019-04-23 09:49:29 +03:00
Simon Ogorodnik
98f4fa1f6c
FIR Java: fix too strict cast in use-site scope
2019-04-23 09:49:29 +03:00
Simon Ogorodnik
539fcf82ef
Fix deprecation in FIR super type resolver
2019-04-23 09:49:29 +03:00