Alexander Udalov
ec6b158c0e
Fix JS translator JPS runner
2014-07-24 21:44:21 +04:00
Alexander Udalov
485cc906a4
Fix Maven build due to recent changes to CLI arguments
2014-07-24 20:04:47 +04:00
Andrey Breslav
3a59465f29
Fixed outdated ReadMe.md
2014-07-24 13:47:47 +04:00
Alexander Udalov
19b80f57cf
Support "-d" option in kotlinc-jvm
...
The intent is to unify "-output" and "-jar" options into the one "-d"
(destination)
2014-07-23 21:24:40 +04:00
Alexander Udalov
de0fd3818c
Drop "-src" in kotlinc-jvm
...
Free arguments should be used instead
2014-07-23 21:24:39 +04:00
Alexander Udalov
917938e57b
Update copyrights
2014-07-23 21:24:39 +04:00
Alexander Udalov
87439b8e0b
Drop "-sourceFiles" in kotlinc-js
...
Use free arguments instead, as is done in kotlinc-jvm and all sensible
compilers everywhere
Also fix some cases of AntTaskTest to be able to run them locally
2014-07-23 21:24:38 +04:00
Alexander Udalov
125c5e2942
Drop "-printArgs"
2014-07-23 16:01:12 +04:00
Alexander Udalov
cb80f95cab
Don't output "exec() finished with..." error message
...
It's useless because the result of the compiler is always evident (it outputs
either diagnostics or an exception stack trace)
2014-07-23 16:01:11 +04:00
Alexander Udalov
5003a2f570
Send compiler output to stderr instead of stdout
...
Test only stderr in kotlinc test now and move the '-script' test to integration
tests where both stdout and stderr is tested
2014-07-23 16:01:11 +04:00
Evgeny Gerashchenko
7e6b05554e
Always closing IncrementalCache after using. Fixed KannotatorJpsTest.
2014-07-22 21:18:16 +04:00
Evgeny Gerashchenko
714ad858ef
Minor. Formatting and imports.
2014-07-22 21:18:16 +04:00
Evgeny Gerashchenko
5ef62dd5a5
Ignoring kannotator in testData.
2014-07-22 21:18:15 +04:00
Nikolay Krasko
b20b406d8e
Fix problem in configuration with copy runtime jar
...
Jar with runtime wasn't copied to library with configured classpath if runtime jar was present in default directory.
Mute configure dialog for tests
2014-07-22 15:27:17 +04:00
Zalim Bashorov
ae4bac06b2
Merge pull request #500 from MichaelNedzelsky/kt5320
...
JS Backend: fixed associativity of JsCondition(ternary operator).
Fixed wrong code generation when use JsCondition(ternary operator) as condition of simple `if`(JsCondition).
#KT-5320 fixed
2014-07-22 15:17:43 +04:00
Zalim Bashorov
3f1038b110
Merge pull request #499 from MichaelNedzelsky/kt5345
...
JS backend: fixed KT-5345 -- type mismatch on Int / Float division.
#KT-5345 fixed
2014-07-22 14:47:31 +04:00
Michael Nedzelsky
9456833a35
JS Backend: #KT-5320 Fixed (generated code for ternary operator)
2014-07-22 13:08:31 +04:00
Michael Nedzelsky
ee67546f8f
JS backend: fix kt-5345 (Type mismatch on Int / Float division)
2014-07-22 12:43:03 +04:00
Pavel V. Talanov
740fe70b22
Fix ConvertAssertToIfWithThrowIntention to avoid shortening more references than intended
2014-07-21 18:52:31 +04:00
Pavel V. Talanov
f44ba60d51
Fix SimplifyBooleanWithConstantsIntention intention to avoid analyzing files created by JetPsiFactory
2014-07-21 18:52:30 +04:00
Pavel V. Talanov
1bc0a9dfd9
Fix InsertExplicitTypeArguments intention to insert imports for shortened types
...
#KT-5489 Fixed
2014-07-21 18:52:29 +04:00
Pavel V. Talanov
0462a018c5
Add test documenting a minor issue introduced in previous commit
2014-07-21 18:52:28 +04:00
Pavel V. Talanov
966da0b03f
Fix ConvertAssertToIfWithThrowIntention
...
to not invoke ShortenReferences on file created by JetPsiFactory
#KT-5476 Fixed
2014-07-21 18:52:27 +04:00
Pavel V. Talanov
1a5ba566cc
Add test for the same pitfall for parameter types in MakeTypesExplicitInLambda
2014-07-21 18:52:26 +04:00
Pavel V. Talanov
e390385bf9
Fix shortening references for return type in MakeTypeExplicitInLambdaIntention
...
#KT-5475 Fixed
2014-07-21 18:52:25 +04:00
Pavel V. Talanov
5246735648
Fix shortening references for receiver in MakeTypeExplicitInLambdaIntention
...
#KT-5474 Fixed
2014-07-21 18:52:24 +04:00
Denis Zharkov
18cb479ef3
When2Switch: tests for non-literal expression in when by integral
2014-07-21 17:13:57 +04:00
Denis Zharkov
8d8c3d2b9e
When2Switch: generate ifnonnull check for nullable values before *switch-opcode
2014-07-21 17:13:56 +04:00
Denis Zharkov
706bbd7b72
When2Switch: check if entry set is not empty
2014-07-21 17:13:56 +04:00
Denis Zharkov
d4cb822ee8
When by String constants:
...
Generate TABLESWITCH/LOOKUPSWITCH bytecode operation for when operator by String constants
2014-07-21 17:13:56 +04:00
Denis Zharkov
5a1c995b5c
When by enum:
...
Generate TABLESWITCH/LOOKUPSWITCH bytecode command in case of "when" by enum entries
2014-07-21 17:13:55 +04:00
Denis Zharkov
b2aa249817
Refactoring of switches codegen parts
2014-07-21 17:13:41 +04:00
Denis Zharkov
dbd1ab8c67
Minor formatting and unused code deleted
2014-07-21 17:13:41 +04:00
Alexander Udalov
230ceb6221
Resurrect assert for property default values in FULL mode
...
Respond to
https://github.com/JetBrains/kotlin/commit/4980a3357231c833ebdb7111d16e7be5bd342521#commitcomment-7078429
#KT-5505 Fixed
2014-07-21 15:29:28 +04:00
Nikolay Krasko
3d51936b64
Merge pull request #498 from zarechenskiy/injector-generator
...
Add injector-generator to artifacts
2014-07-21 14:46:56 +04:00
zarechenskiy
31e2171f23
Add injector-generator to artifacts
2014-07-21 14:34:55 +04:00
Alexander Udalov
4980a33572
Fix unjustified assert in PropertyCodegen
...
#KT-5505 Fixed
2014-07-19 02:13:27 +04:00
Alexander Udalov
70adb0f4e2
Temporarily prohibit non-local returns for some stdlib functions
...
Make InlineUtil work with FQ names, not descriptors
#KT-5496 Fixed
#KT-5497 Fixed
2014-07-19 02:13:27 +04:00
Alexander Udalov
540b87a1dc
Support object array annotation arguments in deserialization
2014-07-19 02:13:26 +04:00
Alexander Udalov
d5681540ec
Fix NoSuchMethodError for data classes with private parameters
...
Introduced in a07909bb52
2014-07-19 02:13:26 +04:00
Alexander Udalov
cf8e83f4f8
Minor, delete obsolete check
...
'superCall' is now never a JetDelegatorByExpressionSpecifier, so the check is
useless
2014-07-19 02:13:25 +04:00
Alexander Udalov
abf46d593c
Fix incorrect test data
2014-07-19 02:08:24 +04:00
Alexander Udalov
93fdf3a254
Minor, extract FrameMap creation in FunctionCodegen
2014-07-18 16:26:48 +04:00
Alexander Udalov
33f7d6e3ef
Get rid of a questionable TImpl hack in ImplementationBodyCodegen
...
Move getTraitImplThisParameterType closer to the only left usage in
JetTypeMapper
2014-07-18 16:26:47 +04:00
Alexander Udalov
c25d72d240
Drop CodegenBinding#enclosingClassDescriptor()
2014-07-18 16:26:47 +04:00
Alexander Udalov
78bdcae65e
Delete unreachable code in ImplementationBodyCodegen
...
Change superCall type to JetDelegatorToSuperCall
2014-07-18 16:26:47 +04:00
Alexander Udalov
1949e24ffa
Get rid of ConstructorFrameMap, drop CodegenContext#prepareFrame()
...
Also refactor FunctionGenerationStrategy to take FrameMap as an instance
instead of creating it in a subclass
2014-07-18 16:26:46 +04:00
Alexander Udalov
65c21561a4
Fix super constructor calls of anonymous objects and local classes
...
If a class inherits from another class which captures something (outer class
instance, receiver parameter, local variables, etc.), the constructor of the
former class should contain all the parameters of the super constructor as its
own parameters, so that it could make a proper super call. All such parameters
are now replicated in the derived constructor with kind = SUPER_CALL_PARAM,
except an instance of the outer class (kind = OUTER), which can be taken from
the derived's own OUTER when it has one, to prevent multiple passing of the
same argument.
Previously it worked only when inheriting from inner classes via a special hack
(ConstructorFrameMap).
Also reuse recently introduced ArgumentGenerator to automatically take care of
default and vararg arguments of super constructor
#KT-3581 Fixed
#KT-5342 Fixed
#KT-5343 Fixed
2014-07-18 16:26:46 +04:00
Alexander Udalov
b85a672052
Minor, combine ENUM_NAME and ENUM_ORDINAL parameter kinds
2014-07-18 16:26:42 +04:00
Alexander Udalov
0caf0cffab
Minor, extract method JetTypeMapper#writeParameter
2014-07-18 16:26:41 +04:00