hg: tiered-attrib/dev/langtools: 18 new changesets

vicente.romero at oracle.com vicente.romero at oracle.com
Fri Jun 5 00:19:20 UTC 2015


Changeset: 7936e5ace4ab
Author:    vromero
Date:      2015-06-04 16:51 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/7936e5ace4ab

whenever possible attribute lambdas when the structural type is created

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java

Changeset: 764c3153feb6
Author:    vromero
Date:      2015-06-04 16:52 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/764c3153feb6

dont do full attribution of the body of stuck lambdas

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 0e03bb46d2ae
Author:    vromero
Date:      2015-06-04 16:53 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/0e03bb46d2ae

use real resultInfo to attribute lambda body during target phase

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 3737befb09e6
Author:    vromero
Date:      2015-06-04 16:54 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/3737befb09e6

create always an unshared env for lambdas

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 41df5f251ebb
Author:    vromero
Date:      2015-06-04 16:54 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/41df5f251ebb

set lambda to attributed when visitLambdaHelper is executed

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 74024a5db27a
Author:    vromero
Date:      2015-06-04 16:56 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/74024a5db27a

collect the return expressions inside a lambda for all paths

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 0e744ed51eb2
Author:    vromero
Date:      2015-06-04 16:56 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/0e744ed51eb2

generate return constraints for stuck lambdas

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: fafe078b052d
Author:    vromero
Date:      2015-06-04 16:57 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/fafe078b052d

keep the original environment at structural types

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 44c95f7250cd
Author:    vromero
Date:      2015-06-04 16:57 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/44c95f7250cd

set the correct return type also during overload

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: a02ffe573997
Author:    vromero
Date:      2015-06-04 16:59 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/a02ffe573997

check if the lambda body completeness has already been determined at StructuralStuckChecker

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/InferenceContext.java

Changeset: 120b14e8b7e2
Author:    vromero
Date:      2015-06-04 16:59 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/120b14e8b7e2

set the serializable field during structural lambda creation

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java

Changeset: 70a2aa10973c
Author:    vromero
Date:      2015-06-04 17:00 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/70a2aa10973c

create a visitor to collect all structural invocations from return expressions in lambda body

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 1bfa78d100b0
Author:    vromero
Date:      2015-06-04 17:00 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/1bfa78d100b0

set the parent to the current inference context at visitLambdaHelper

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: c8328eaebcb7
Author:    vromero
Date:      2015-06-04 17:01 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/c8328eaebcb7

there is no need for the unenterScanner now that lambdas are attributed only once

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: e0ffba170e87
Author:    vromero
Date:      2015-06-04 17:02 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/e0ffba170e87

dont touch the inference context at visitLambdaHelper if the invocation has been visited during target type phase

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: c8c600718364
Author:    vromero
Date:      2015-06-04 17:03 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/c8c600718364

golden file change for BadNestedLambda test

! test/tools/javac/lambda/BadNestedLambda.out

Changeset: 0c67ef4a8595
Author:    vromero
Date:      2015-06-04 17:03 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/0c67ef4a8595

now fastCheckLambdaCompatible should be called during target phase too

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: b4df1b4c5c9c
Author:    vromero
Date:      2015-06-04 17:09 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/b4df1b4c5c9c

removing unnecessary white spaces

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/StructuralType.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java



More information about the tiered-attrib-dev mailing list