Commit Graph

25 Commits

Author SHA1 Message Date
Mats Larsen
27b3c5ec20 Set Java default encoding to UTF-8 (#3096)
The default encoding used for Java is now UTF-8. This did not have to be changed for the Scala or Kotlin compilers as those already default to UTF-8
2021-11-04 17:15:21 +01:00
Maurice Mohlek
813b654a3e Show full java asm output when using switch expression (#2996)
Fixes #2995 

Co-authored-by: Maurice Mohlek <maurice.mohlek@valtech.de>
Co-authored-by: Mats Larsen <me@supergrecko.com>
2021-10-05 01:21:50 +02:00
Mats Larsen
cfff740283 Fix execution for Java with multifile ui (#2882)
* Fix execution for Java with multifile ui

* Remove dev comment
2021-08-28 14:39:02 +02:00
Mats Larsen
f3be74183d Fix execution for JVM compilers (#2767) 2021-07-06 09:42:21 -05:00
Mats Larsen
e2a8e7c8ce Support execution of programs for JVM compilers (#2745)
* Bare execution for Java programs
* Support execution for Kotlin
2021-07-06 08:11:32 -05:00
Daniel Below
b4ebb47ac2 Add Kotlin/JVM support (#2637)
* Add Kotlin/JVM support

* Update CONTRIBUTORS.md

* Use kotlinc-jvm instead of kotlinc

* Fix alphabetical ordering

* Filter kotlin compiler arguments

Extract user options filtering for java into a separate function to
handle filtering options with extra arguments.
Filter kotlin compiler options: -d, -jdk-home, -kotlin-home, -script, -progressive

* Filter -Xjavac user options

Filter any option that starts with '-Xjavac', as it could be used to pass unwanted options through kotlinc to javac.

* Fix year in copyright

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

* Add kotlin.amazon.properties

* Add JAVA_HOME to kotlin default exec options

Query per-compiler property 'java_home' and set environment

* Add java_home to kotlin properties

Co-authored-by: Daniel Below <daniel.below@jetbrains.com>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-06-02 22:58:41 +02:00
Matt Godbolt
a4edf7ed6b No array for each 2021-05-28 18:08:05 -05:00
Matt Godbolt
5c5bc4dd50 Dont array push multiple times 2021-05-27 23:25:37 -05:00
partouf
6bad75e8a6 fix #2623 2021-04-30 16:03:41 +00:00
Matt Godbolt
1d7455e1d5 Re-enable java. Closes #1438 2021-04-26 21:18:15 -05:00
Patrick Quist
7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
Austin Morton
044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton
bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Rubén Rincón Blanco
ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
RabsRincon
b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
Jascha Knack
8a32652b9f fix broken JavaCompiler 2020-04-26 23:23:06 +02:00
Matt Godbolt
717ea51a3e First wave of @apmorton suggestions and fixes 2020-01-28 21:34:52 -06:00
Matt Godbolt
cb08b7b5c0 Asyncify java 2020-01-21 21:50:07 -06:00
Matt Godbolt
366add6304 Temporarily disable java (see #1438) 2019-06-10 22:56:42 -05:00
Christian Vonrüti
1a591e4a83 Separate java classes with 2 newlines in compiler output view 2019-06-08 02:39:23 +02:00
Christian Vonrüti
ba66aaa91c Fix trailing line endings and document regex in javap parser 2019-06-08 02:38:33 +02:00
Christian Vonrüti
9e717d5b71 Fix trailing line endings on and document regex in javap parser 2019-06-08 02:16:58 +02:00
Christian Vonrüti
56fe1318ba Uniform line handling to make test input work for checkouts on Windows 2019-06-08 01:33:52 +02:00
Christian Vonrüti
723070275e Fix copyright in java.js 2019-06-07 23:03:37 +02:00
Christian Vonrüti
92914a76c8 Initial Java/javap support 2019-05-26 19:16:54 +02:00