Commit Graph

309 Commits

Author SHA1 Message Date
Andrey Breslav cee77c3b7e JetCoreEnvironment implementaion over the new environment design in intellij-core 2012-07-25 12:07:20 +04:00
Andrey Breslav 5f3643804c Import directives migrated from ASM 3.3 to 4.0 with renamed packages 2012-07-25 12:07:19 +04:00
Andrey Breslav 839c39c70d Migrate build and project configuration to IntelliJ IDEA 12 (Leda) EAP
Major changes: ASM is switched from vanilla 3.3 to a 4.0 with renamed packages,
because this is done inside IDEA and we depend on that transitively.
Thus the jarjar renaming in build.xml, old library binaries deleted.

Also we now depend on exact IDEA build (EAP), not "last successful".
2012-07-25 12:07:19 +04:00
Evgeny Gerashchenko 7bf32e238b Added workaround for backend bug to fix kdoc generator. 2012-07-24 12:52:46 +04:00
Alex Tkachman f3fa19e35d private constructors added 2012-07-24 10:59:28 +03:00
Evgeny Gerashchenko aea01d9638 Replaced non-ASCII symbol to fix compilation. 2012-07-23 18:39:28 +04:00
Evgeny Gerashchenko 0c4e23e438 Added assertion in JetCoreEnvironment.addToClasspath() prohibiting to invoke it when environment is initialized. 2012-07-23 17:38:20 +04:00
Evgeny Gerashchenko 044b6bf435 Removed unused methods. 2012-07-23 17:38:20 +04:00
Evgeny Gerashchenko 49680d9a9a Removed unused method. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 4dc4b295d2 Made addSources and addExternalAnnotationsRoot method private in JetCoreEnvironment. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 0dffe7a85c Creating environment each time when compiling modules. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 1d35cf2729 Storing CompilerConfiguration in JetCoreEnvironment. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 13e62f1222 Adding sources to configuration before JetCoreEnvironment creation for CLI. Except for module case, because it's pretty complex. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko ba2ca55848 Removed unused method. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko b8543bed22 Passing sources via compiler configuration on analyzing module script. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko f45494548f Passing sources via compiler configuration in K2JSCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko abfc54d5ab Removed unused KotlinToJVMBytecodeCompiler.compileText method and test for it. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 4609360bcc Removed unused method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko b771a61d30 Rewritten CompileTextTest so it doesn't add class path to already created configuration. Removed JetCoreEnvironment.addToClasspathFromClassLoader() method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 916f34ea7e Added parameter to JetCoreEnvironment.createCoreEnvironmentForJS. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko d8b0070f1e Added SOURCE_ROOTS_KEY for compiler configuration. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko f43b617fd8 More neat adding JDK to configuration used for module script compilation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko e54767e9a6 Removed unused methods. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 58ff66b46c Eliminated JetCoreEnvironment.configure() method. Actual setting classpath/annotations path is performed in constructor instead. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko ffca0409d4 Changed types of JVM configuration keys from arrays to lists. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 8124e477ce Renamed methods getUserData and putUserData to get and put, respectively. 2012-07-23 17:38:16 +04:00
Andrey Breslav bc6c8e980e Module scripts are compiled in an environment with JDK & Annotations 2012-07-20 19:29:46 +04:00
Andrey Breslav 15d469156a Reverting command line reporting: it breaks tests 2012-07-14 12:15:30 +04:00
Andrey Breslav 95b93322b3 Report the command line that was passed if its format is wrong 2012-07-14 11:56:29 +04:00
Evgeny Gerashchenko 3bf8321e3c Fixed evil bug in processing command-line args: classpath was added as annotations path. 2012-07-11 15:44:43 +04:00
Evgeny Gerashchenko 8050b96f27 Fixed code outside main project which was broken after refactoring. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 90a7b17fd8 Creating empty compiler configuration in module script instead of default. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a2765899b5 Removed obsolete -stdlib CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b958886e23 Removed obsolete -jdkAnnotations CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a02658b1a6 Removed obsolete -mode CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 531167bcee Added -builtins CLI option. Using it instead of "-mode stdlib" to enable special frontend and backend modes. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko f7290d178b Replaced passing compiler special mode to JetTypeMapper with special enum type. Enum type means if builtin types should be mapped to Java standard classes in generated bytecode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 5becb4efb1 Passing "stubs" flag to K2JVMCompileEnvironmentConfiguration to avoid checking compiler special mode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko aef2c372e1 Inlined the only usage of CompilerSpecialMode.isStubs(). 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko a0b636d561 Moved CompilerSpecialMode.includeXXX() methods into configuration generators to make it clear that they are used only during initialization. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 684d345dce Removed CompilerDependencies class. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e82ab70bc Got rid of using CompilerDependencies in JetCoreEnvironment. CompilerConfiguration is passed instead. 2012-07-07 23:07:17 +04:00
Evgeny Gerashchenko c833ca251f Moved CompilerDependencies.findRtJar() method to PathUtil. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 8078c27c36 Got rid of actual using CompilerDependencies in CompilerEnvironmentUtil. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 590ab38e55 Got rid of actual using CompilerDependencies in REPL interpreter classes. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 97e0ee4a29 Got rid of storing CompilerDependencies in JetCoreEnvironment (storing CompilerSpecialMode instead). 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 27c13d8c45 Got rid of actual using compiler dependencies in some classes (using only mode). Affected classes: K2JVMCompiler, KotlinToJVMBytecodeCompiler, TestlibTest.
Got rid of actual using compiler dependencies in KotlinToJVMBytecodeCompiler.

Got rid of actual using compiler dependencies in TestlibTest.
2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 88ea4c760c Added "noJdk", "noStdlib" and "noJdkAnnotations" compiler options. Marked "stdlib", "jdkAnnotations" and "mode" options as deprecated. 2012-07-07 20:33:23 +04:00