Mikhael Bogdanov
12ba1b002c
Refactor SharedVariablesManager: get rid of descriptors in API
2018-05-04 12:33:44 +02:00
Mikhael Bogdanov
b4853d9293
Minor. Reformat
2018-05-03 12:04:47 +02:00
Mikhael Bogdanov
f0e4420259
Don't recreate ir declarations to set body
2018-05-03 12:04:45 +02:00
Mikhael Bogdanov
5a2e62dd4f
Use symbols in IrGet/SetValue
2018-05-03 11:38:50 +02:00
Roman Artemev
8bc80a9829
Fix secondary constructor lowering
2018-04-27 20:02:57 +03:00
Roman Artemev
cf31e544eb
Implement default interface members
2018-04-27 20:01:45 +03:00
Roman Artemev
752cbf2714
Implemented KFunction interface
2018-04-27 20:00:32 +03:00
Roman Artemev
c1a4aeb67f
Lift InnerClassesLowering from JVM to common since it is used by every backend in the same way
2018-04-27 19:53:47 +03:00
Roman Artemev
ed0c26ef07
Implement function literals in JS BE
2018-04-27 19:53:47 +03:00
Mikhael Bogdanov
97ad3f9ddd
Generate $default functions for inline ones in JVM-backend
2018-04-26 14:28:11 +02:00
Roman Artemev
2bea8816a6
Add Secondary constructor lowering
2018-04-10 15:45:55 +03:00
Anton Bannykh
a514c0f515
JS IR: initial lowerings reuse
2018-03-29 20:32:10 +03:00
Dmitry Petrov
3c7914b0c1
Minor: drop obsolete code
2018-03-23 11:43:44 +03:00
Svyatoslav Scherbina
7a2d761a7d
Add minor improvements to psi2ir and IR utilities:
...
* Generate missing IR parameter declarations in external stubs
* Use origin = FAKE_OVERRIDE in external IR stubs for fake overrides
* Set .parent in external IR stubs
* Set .parent in IR generated by some utility methods
2018-03-02 15:41:48 +03:00
Igor Chevdar
a648b9676c
Fixes in IR lowerings:
...
DeepCopyIrTree: typo fix.
Default arguments: made proper overridden descriptor selection.
Local declarations: made proper determination whether a function is locally defined.
2018-02-19 18:39:08 +03:00
Alexander Udalov
ac5444ef7c
Add declaresOrInheritsDefaultValue, move hasDefaultValue to 'resolution'
...
'hasDefaultValue' needs to be adapted to support locating default values
in 'expect' functions, and this is not possible in module 'descriptors',
where it was originally declared. Therefore, move it to module
'resolution' and copy its current logic to a separate function
'declaresOrInheritsDefaultValue' which is used in 5 places.
'hasDefaultValue' itself is updated in subsequent commits.
Besides changing imports, also use a simpler declaresDefaultValue in
some places, which does not include default values inherited from
supertypes: this is OK for constructors, and in LazyJavaClassMemberScope
for functions from built-ins which do not have default argument values
at all
2018-02-05 13:38:04 +01:00
Dmitry Petrov
432c743771
Formatting: ir.tree and some common code
2018-01-17 12:31:07 +03:00
Mikhael Bogdanov
ca22bc57fd
Don't capture primary constructor variables
2018-01-16 11:53:25 +01:00
Mikhael Bogdanov
28f4cc5b18
Generate parameter name in assertion for lateinit properties
2018-01-16 11:53:24 +01:00
Mikhael Bogdanov
3e1f471121
Rollback change in 'usesDefaultArguments'
2017-12-20 10:58:35 +01:00
Mikhael Bogdanov
be18cb9b16
Fix default methods visibility
2017-12-20 10:48:51 +01:00
Mikhael Bogdanov
9365d1d859
Remove redundant extra default mask for function with N*32 parameters
2017-12-20 10:48:51 +01:00
Mikhael Bogdanov
06fd996266
Switch LocalFunctionLowering to LocalDeclarationLowering
2017-12-20 10:48:41 +01:00
Mikhael Bogdanov
e16bdd4287
Switch JvmBackendContext to CommonBackendContext
...
(cherry picked from commit 5d4736c)
2017-12-20 10:48:37 +01:00
Igor Chevdar
d4d3f237ee
Fix for package level lateinit properties
2017-11-17 13:48:17 +03:00
Mikhael Bogdanov
cbfcb74b58
Get rid of cli dependencies from ir
2017-11-16 14:46:53 +01:00
Alexander Podkhalyuzin
3f8170d369
Clean idea files generated on the gradle import, add them to .gitignore
2017-09-19 23:58:27 +02:00
Stanislav Erokhin
e86d2f00ff
Rename isImpl to isActual in descriptors
2017-09-15 18:25:49 +03:00
Stanislav Erokhin
c8ee424f67
Rename isHeader to isExpect in descriptors
2017-09-15 18:25:41 +03:00
Mikhael Bogdanov
68522b9f1e
Use lazy logging in lowers
2017-08-30 10:41:55 +02:00
Mikhail Glukhikh
9dc5354f24
Eliminate some warnings (mostly redundant is checks in whens)
2017-08-18 15:16:59 +03:00
Mikhail Glukhikh
3623f581b8
Eliminate a set of warnings, mostly nullability ones
2017-08-18 15:10:27 +03:00
Mikhael Bogdanov
82c3637d91
Wide visibility in ir common stuff
2017-08-09 12:07:38 +02:00
Mikhael Bogdanov
3ae084b1b3
Get rid of reification from 'deepCopyWithVariables'
2017-08-08 13:33:20 +02:00
Mikhael Bogdanov
49612063dc
Wide visibility in ir common stuff
2017-08-08 13:25:49 +02:00
Mikhael Bogdanov
6e4b02a94b
Disable 'areEqualByValue'
2017-08-08 13:09:48 +02:00
Mikhael Bogdanov
6305abdf9f
Wide visibility in ir common stuff
2017-08-08 13:09:47 +02:00
Mikhael Bogdanov
42f8a3e65b
Generify Symbols class to be able support jvm specific implementation
2017-08-01 15:52:29 +02:00
Mikhael Bogdanov
4dbb82a789
Copy ununsed lowers
2017-08-01 15:52:28 +02:00
Mikhael Bogdanov
df56ef5e3f
Copy common lowers
2017-08-01 15:52:28 +02:00
Mikhael Bogdanov
27365dc4be
Copy common utils from Native
2017-08-01 15:52:27 +02:00
Mikhail Glukhikh
951e8cd91a
Code cleanup: unnecessary local variable applied
2017-07-21 18:58:48 +03:00
Mikhail Glukhikh
840847e47c
Code cleanup: several inspections applied
2017-06-29 16:25:57 +03:00
Mikhael Bogdanov
8ca82c8e99
Add missed common parts
2017-06-20 11:08:53 +02:00
Mikhael Bogdanov
d888addba0
Add KCallableNamePropertyLowering
2017-06-20 11:00:38 +02:00
Dmitry Petrov
40e09a39c1
Fix prototype JVM BE tests
2017-05-04 09:33:03 +03:00
Dmitry Petrov
c9777fd79f
Add symbols to references
...
TODO: fix some more tests
2017-05-04 09:33:03 +03:00
Svyatoslav Scherbina
d9023bdf70
backend: move some JVM lowering to common
2017-01-12 11:56:32 +07:00
Svyatoslav Scherbina
5a5f4fc224
backend: extract common lowering utils
2017-01-12 11:56:31 +07:00
Svyatoslav Scherbina
f85538129d
backend: introduce common backend context
2017-01-12 11:56:30 +07:00