hg: jdk9/hs-emb/nashorn: 14 new changesets

alejandro.murillo at oracle.com alejandro.murillo at oracle.com
Fri Oct 17 21:06:32 UTC 2014


Changeset: 9dc87837f70a
Author:    sundar
Date:      2014-10-10 17:59 +0530
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/9dc87837f70a

8060101: AssertionError: __noSuchProperty__ placeholder called from NativeJavaImporter
Reviewed-by: attila, jlaskey

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeJavaImporter.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/WithObject.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/Messages.properties
+ test/script/basic/JDK-8060101.js

Changeset: e0b9b2ef8442
Author:    hannesw
Date:      2014-10-13 17:16 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/e0b9b2ef8442

8060011: Concatenating an array and converting it to Java gives wrong result
Reviewed-by: lagergren, attila

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/DeletedRangeArrayFilter.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/IntArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/LongArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/NumberArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/ObjectArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/SparseArrayData.java
+ test/script/basic/JDK-8060011.js

Changeset: a8d44c7c2ac0
Author:    sundar
Date:      2014-10-13 23:38 +0530
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/a8d44c7c2ac0

8050977: Java8 Javascript Nashorn exception: no current Global instance for nashorn
Reviewed-by: attila, lagergren, hannesw

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/ScriptUtils.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/MethodEmitter.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeJava.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/JavaAdapterBytecodeGenerator.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/JavaAdapterClassLoader.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/JavaAdapterServices.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/NashornBeansLinker.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/NashornLinker.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/mozilla_compat.js
! test/script/basic/convert.js
! test/script/nosecurity/JDK-8044798.js
! test/src/jdk/nashorn/api/scripting/ScriptEngineSecurityTest.java
! test/src/jdk/nashorn/api/scripting/ScriptEngineTest.java

Changeset: 488ce6b8c41b
Author:    attila
Date:      2014-10-13 20:10 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/488ce6b8c41b

8059842: Creating symbols for declared functions shouldn't be a special case
Reviewed-by: hannesw, lagergren

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/AssignSymbols.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/VarNode.java

Changeset: 7b6e3a8636a8
Author:    attila
Date:      2014-10-14 13:04 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/7b6e3a8636a8

8060238: Reports for optimistic test run overwrite those for pessimistic run
Reviewed-by: hannesw, lagergren, sundar

! make/build.xml

Changeset: ca67ae7c46cb
Author:    lagergren
Date:      2014-10-14 15:28 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/ca67ae7c46cb

8012518: Reengineer Parser.java to make it play well with the copy-on-write IR.
Summary: Remove the kludges introduced to make the parser work with the copy on write IR. Now everything is done bottom up, finshing node children completely before node parents. The repeated non-functional pattern 'node = node.setSomething(something);' is gone. Resulting code is much more readable, and extensible for future work. The parser is now also consistent with the rest of the stateless copy-on-write world in code generation.
Reviewed-by: lagergren, attila, hannesw, shade
Contributed-by: andreas.gabrielsson at oracle.com

! .hgignore
+ bin/runopt.sh
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/ScriptUtils.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Block.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ForNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LoopNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Node.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/WhileNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/WithNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/Global.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeError.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeJava.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/Parser.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContext.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextBaseNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextBlockNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextBreakableNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextFunctionNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextLabelNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextLoopNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextNode.java
+ src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ParserContextSwitchNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/Context.java

Changeset: 54c8862b39f1
Author:    lagergren
Date:      2014-10-14 16:11 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/54c8862b39f1

8060471: DynamicLinker.getLinkedCallSiteLocation() is called even when logger is disabled, and it creates a stacktrace. This contributes unnecessarily to compile time.
Reviewed-by: lagergren, attila
Contributed-by: andreas.gabrielsson at oracle.com

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/GlobalConstants.java

Changeset: f9ed1ca59030
Author:    attila
Date:      2014-10-15 15:57 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/f9ed1ca59030

8060242: Compile-time expression evaluator was not seeing into ArrayBufferViews
Reviewed-by: hannesw, lagergren, sundar

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/TypeEvaluator.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/ArrayBufferView.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeFloat32Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeFloat64Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeInt16Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeInt32Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeInt8Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeUint16Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeUint32Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeUint8Array.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeUint8ClampedArray.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/ContinuousArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/IntArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/LongArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/NumberArrayData.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/ObjectArrayData.java

Changeset: 6e9a98b55502
Author:    attila
Date:      2014-10-15 16:00 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/6e9a98b55502

8060241: Immediately invoked function expressions cause lot of deoptimization
Reviewed-by: hannesw, lagergren

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/TypeEvaluator.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/RecompilableScriptFunctionData.java

Changeset: 9e2c726a5f3c
Author:    sundar
Date:      2014-10-15 19:50 +0530
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/9e2c726a5f3c

8060688: Nashorn: Generated script class name fails --verify-code for names with special chars
Reviewed-by: jlaskey, hannesw

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Compiler.java
+ test/script/nosecurity/JDK-8060688.js
! test/src/jdk/nashorn/internal/codegen/CompilerTest.java
! test/src/jdk/nashorn/internal/runtime/TrustedScriptEngineTest.java

Changeset: 91129f61b019
Author:    attila
Date:      2014-10-16 11:34 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/91129f61b019

8061113: Boolean used as optimistic call return type
Reviewed-by: hannesw, sundar

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/TypeEvaluator.java
+ test/script/basic/JDK-8061113.js
+ test/script/basic/JDK-8061113.js.EXPECTED

Changeset: dc88593dfe62
Author:    katleman
Date:      2014-10-16 12:02 -0700
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/dc88593dfe62

Added tag jdk9-b35 for changeset 63b8da4c958c

! .hgtags

Changeset: 10fe62bc1884
Author:    lana
Date:      2014-10-16 14:16 -0700
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/10fe62bc1884

Merge


Changeset: 34ef988d5959
Author:    attila
Date:      2014-10-17 14:24 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-emb/nashorn/rev/34ef988d5959

8059843: Make AST serializable
Reviewed-by: hannesw, lagergren

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/CompileUnit.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Label.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/ArrayType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/BitwiseType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/BooleanType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/IntType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/LongType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/NumberType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/NumericType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/ObjectType.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/types/Type.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/AccessNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/BaseNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/BinaryNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Block.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/BlockStatement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/BreakNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/BreakableStatement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/CallNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/CaseNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/CatchNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ContinueNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/EmptyNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Expression.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ExpressionStatement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ForNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/IdentNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/IfNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/IndexNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/JoinPredecessorExpression.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/JumpStatement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LabelNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LexicalContextExpression.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LexicalContextStatement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LiteralNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/LoopNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Node.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ObjectNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/PropertyNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ReturnNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/RuntimeNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/SplitNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/Statement.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/SwitchNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/TernaryNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/ThrowNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/TryNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/UnaryNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/VarNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/WhileNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/WithNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/Lexer.java



More information about the jdk9-hs-emb-changes mailing list