hg: valhalla/valhalla/langtools: Add experimental support for specialized generic methods

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Fri Aug 29 15:55:40 UTC 2014


Changeset: 877e5da24336
Author:    mcimadamore
Date:      2014-08-29 16:54 +0100
URL:       http://hg.openjdk.java.net/valhalla/valhalla/langtools/rev/877e5da24336

Add experimental support for specialized generic methods
* Specialized generic method calls are now translated using invokedynamic
* Add BytecodeMapping support for invokedynamic calls
* Pushed up common indy-related functionalities shared between LambdaToMethod and SpecializaTypes
* Fix inference bug where missing target-type leads to spurious Object bound
* Add initial tests

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java
+ src/jdk.compiler/share/classes/com/sun/tools/javac/comp/IndifierTranslator.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/SpecializeTypes.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Code.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Items.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
+ test/tools/javac/valhalla/typespec/Inference03.java
! test/tools/javac/valhalla/typespec/Values01.java
! test/tools/javac/valhalla/typespec/items/Opcodes.java
+ test/tools/javac/valhalla/typespec/items/tests/TestIndy.java



More information about the valhalla-dev mailing list