Alexander Udalov
fa4f568437
Delete AsmUtil.fqNameByAsmTypeUnsafe, refactor KotlinToJavaTypesMap
2013-10-04 18:32:41 +04:00
Alexander Udalov
f4abaaee10
Delete JvmClassName.byType
...
Replace JvmClassName by ASM Type in many places of JVM codegen: it wasn't used
to abstract anything, but there was a lot of useless conversions between the
two
2013-10-04 18:32:39 +04:00
Alexander Udalov
f68a702e8f
Report ABI errors on KotlinClass, not VirtualFile
2013-10-02 17:55:02 +04:00
Alexander Udalov
a5a80a9ccc
Change KotlinClassFileHeader loading interface
...
It should be able to load the header based on an abstract KotlinJvmBinaryClass,
not only the VirtualFile-based one
2013-10-02 17:05:50 +04:00
Evgeny Gerashchenko
eb5455e89f
Got rid of "jet" file extension.
2013-10-01 19:32:38 +04:00
Alexander Udalov
ee92ebe941
Move Kotlin descriptor loading to kotlin/ package
2013-09-30 22:43:17 +04:00
Alexander Udalov
fa9307d08c
Delete unused method from VirtualFileFinder
2013-09-30 22:43:17 +04:00
Alexander Udalov
e4d538c668
Move KotlinClassFileHeader to header/ package
2013-09-30 22:43:16 +04:00
Alexander Udalov
92cc0ddd1f
KotlinClassFileHeader is now nullable everywhere
...
'null' means there's no header. This makes all of KotlinClassFileHeader's
fields non-null
2013-09-30 22:43:16 +04:00
Alexander Udalov
e981681d3e
Remove KotlinClassFileHeader.HeaderType.NONE
...
Use null instead
2013-09-30 22:43:16 +04:00
Andrey Breslav
887e4276ee
getDiagnostics() in BindingContext returns Diagnostics rather than List<Diagnostic>
2013-09-24 06:58:39 -07:00
Andrey Breslav
9fef0c8650
Support '-suppress warnings'
...
#KT-3319 In Progress
2013-09-24 06:58:39 -07:00
Andrey Breslav
c0e8038ed2
FilteringMessageCollector moved out
2013-09-24 06:58:39 -07:00
Andrey Breslav
f245d93eea
Common CLI parameters extracted into a base class
2013-09-24 06:58:38 -07:00
develar
da68540ade
JS backend: LibrarySourcesConfig accepts source dir as source.
...
Idea send files in any case, but for easy debug run configurations we want to specify only source dir.
(cherry picked from commit e194435)
2013-09-20 17:21:14 +04:00
Alexander Udalov
8e59e789dc
Extract util.runtime module out of util
...
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.
Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Erokhin Stanislav
4c57d70be9
JS backend: remove ECMA 3, but several tests is broken.
...
Main reason: overload extention property:
Int.bar = 1
String.bar = 2
2013-09-17 21:43:25 +04:00
Evgeny Gerashchenko
dcfeea4029
Removed IDE templates support from compiler.
2013-09-17 18:09:59 +04:00
Alexander Udalov
2b9225fdd4
Extract descriptor.loader.java module from frontend.java
...
Will be used in runtime to load reflected classes
2013-09-04 21:55:11 +04:00
Alexander Udalov
a17328f9d3
Minor, move ABI version error reporting
...
AbiVersionUtil will be used in descriptors.loader.java, so it cannot depend on
BindingTrace
2013-09-04 21:55:10 +04:00
develar
3ab095a4f5
JS backend: started to implement source maps
...
#KT-927 in progress
(cherry picked from commits 5543cda, 6ed296b, 11186f9, 5b84d0b)
2013-08-30 13:17:20 +04:00
Pavel V. Talanov
52de4215b5
Introduce VirtualFileFinder interface
...
Provide different implementations in Cli and Ide
2013-08-26 17:58:47 +04:00
Pavel V. Talanov
4e29aad1c1
Rework invalid abi version reporting
...
KotlinClassFileHeader is aware of older annotations
Psi is not used to report invalid Abi version in CLI
2013-08-26 17:58:44 +04:00
Andrey Breslav
25a5025c58
Built-ins can now be initialized on demand
2013-08-23 17:39:06 +04:00
Andrey Breslav
b7966179f5
Deserialize built-ins
2013-08-23 17:39:04 +04:00
Nikolay Krasko
73308378e5
Add ability to test jet file is in scope
2013-08-14 15:31:16 +04:00
Zalim Bashorov
b46e0361c5
Use the system path separator character in compiler messages.
...
Fix for CliTest.
2013-08-12 13:37:44 +04:00
Andrey Breslav
387bf2601b
Log version in JPS plugin
...
CompilerVersion.java is moved to cli-common (shared between compiler and JPS plugin) and renamed to KotlinVersion
This is needed because on TeamCity a JPS plugin is configured separately from the compiler, so it may happen that
JPS plugin version X tries to run compiler version X+100, and causes trouble.
2013-07-25 20:18:03 +04:00
Evgeny Gerashchenko
104f15adc4
Moved Java-related keys to JavaBindingContext.
2013-06-25 20:17:47 +04:00
Mikhael Bogdanov
e803bcb3d9
Fix for KT-3687
...
#KT-3687 Fixed
2013-06-17 18:01:50 +04:00
Evgeny Gerashchenko
43b9a9d434
Renamed Name.getName() and FqName.getFqName() to asString()
2013-05-21 17:56:05 +04:00
Andrey Breslav
a2b82095da
Using the version of ASM that has debug information in it
...
No more need for extra ASM jars (analysis and util)
2013-05-21 13:56:34 +04:00
chocolateboy
1bf06f7c02
make the preloader's required profiler argument (time|notime) an optional switch: -pp
...
fixes for broken Windows batch files
2013-05-21 12:22:06 +04:00
Andrey Breslav
e4939f92e4
Support relative script paths
2013-04-29 17:59:53 +04:00
Andrey Breslav
f1f9d5327c
Using XML instead of module scripts when running from IDE
2013-04-29 17:59:52 +04:00
Andrey Breslav
42505246b8
Module descriptions in XML
2013-04-29 17:59:51 +04:00
Andrey Breslav
3673f8003b
reportException() moved to a utility class and used where appropriate
2013-04-29 15:46:37 +04:00
Andrey Breslav
3f23704e13
Method renamed
2013-04-29 15:46:37 +04:00
Andrey Breslav
bbb661506a
Preloader for command-line compiler
2013-04-26 14:33:18 +04:00
Andrey Breslav
b3248baae9
"-noverify" by default to speed up class loading
2013-04-26 14:32:55 +04:00
Andrey Breslav
f3656bcadd
ModuleDescriptor stores default imports
2013-04-17 17:11:18 +04:00
Andrey Breslav
a72e49d8f7
Use ModuleDescriptor instead of ModuleConfiguration
2013-04-17 17:11:17 +04:00
Andrey Breslav
e29418cde5
ModuleDescriptor stores a ModuleConfiguration
2013-04-17 17:11:17 +04:00
Andrey Breslav
2e44996cd0
ModuleDescriptor interface extracted
2013-04-17 17:11:16 +04:00
Andrey Breslav
af5ee3acba
forceResolveAll() is not called when compiler initializes built-ins
2013-04-17 13:49:47 +04:00
Natalia.Ukhorskaya
eb768ea59a
Do not create LightClasses for kt files as sources for libraries
2013-04-09 12:52:29 +04:00
Evgeny Gerashchenko
ec5331057a
Removed unnecessary final on local variables.
2013-03-13 14:12:50 +04:00
Evgeny Gerashchenko
2ac218e084
Made addToClasspath not public and removed redundant field.
2013-03-04 17:33:59 +04:00
Evgeny Gerashchenko
4213eec2a5
Warning in compiler if annotations path does not exist.
2013-03-04 17:33:59 +04:00
Evgeny Gerashchenko
6c1e1b6f7f
Renamed SimpleDiagnosticFactory -> DiagnosticFactory0.
2013-02-20 16:34:00 +04:00