hg: jdk8/tl/nashorn: 20 new changesets
sundararajan.athijegannathan at oracle.com
sundararajan.athijegannathan at oracle.com
Mon Jul 8 06:31:03 PDT 2013
Changeset: 313bdcd2fd22
Author: sundar
Date: 2013-07-03 00:08 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/313bdcd2fd22
8019629: void operator should always evaluate to undefined
Reviewed-by: jlaskey
! src/jdk/nashorn/internal/codegen/Attr.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/ir/RuntimeNode.java
! src/jdk/nashorn/internal/runtime/ScriptRuntime.java
+ test/script/basic/JDK-8019629.js
Changeset: 9d3a9fdab668
Author: sundar
Date: 2013-07-03 13:13 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/9d3a9fdab668
8019783: typeof does not work properly for java methods and foreign objects
Reviewed-by: hannesw
! src/jdk/nashorn/internal/runtime/JSType.java
! src/jdk/nashorn/internal/runtime/ScriptRuntime.java
+ test/script/basic/JDK-8019783.js
+ test/script/basic/JDK-8019783.js.EXPECTED
! test/script/basic/NASHORN-759.js.EXPECTED
Changeset: 4afdc5bec43b
Author: sundar
Date: 2013-07-03 14:08 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/4afdc5bec43b
8019791: ~ is a unary operator
Reviewed-by: hannesw
! src/jdk/nashorn/internal/parser/TokenType.java
+ test/script/basic/JDK-8019791.js
+ test/script/basic/JDK-8019791.js.EXPECTED
Changeset: 18d467e94150
Author: attila
Date: 2013-07-03 12:39 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/18d467e94150
8010946: AccessControl.doPrivileged is broken when called from js script
Reviewed-by: jlaskey, sundar
! make/build.xml
! src/jdk/internal/dynalink/beans/AbstractJavaLinker.java
! src/jdk/internal/dynalink/beans/ApplicableOverloadedMethods.java
+ src/jdk/internal/dynalink/beans/CallerSensitiveDetector.java
+ src/jdk/internal/dynalink/beans/CallerSensitiveDynamicMethod.java
! src/jdk/internal/dynalink/beans/ClassString.java
! src/jdk/internal/dynalink/beans/DynamicMethod.java
! src/jdk/internal/dynalink/beans/DynamicMethodLinker.java
! src/jdk/internal/dynalink/beans/FacetIntrospector.java
! src/jdk/internal/dynalink/beans/MaximallySpecific.java
! src/jdk/internal/dynalink/beans/OverloadedDynamicMethod.java
! src/jdk/internal/dynalink/beans/OverloadedMethod.java
! src/jdk/internal/dynalink/beans/SimpleDynamicMethod.java
+ src/jdk/internal/dynalink/beans/SingleDynamicMethod.java
! src/jdk/internal/dynalink/beans/StaticClassIntrospector.java
! src/jdk/internal/dynalink/beans/StaticClassLinker.java
! src/jdk/internal/dynalink/support/AbstractCallSiteDescriptor.java
! src/jdk/internal/dynalink/support/Lookup.java
! src/jdk/nashorn/internal/runtime/linker/Bootstrap.java
! src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java
! src/jdk/nashorn/internal/runtime/linker/LinkerCallSite.java
! src/jdk/nashorn/internal/runtime/linker/NashornCallSiteDescriptor.java
+ test/script/basic/JDK-8010946-2.js
+ test/script/basic/JDK-8010946-2.js.EXPECTED
+ test/script/basic/JDK-8010946-privileged.js
+ test/script/basic/JDK-8010946.js
+ test/script/basic/JDK-8010946.js.EXPECTED
Changeset: b1980b5f00a1
Author: lagergren
Date: 2013-07-03 13:03 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/b1980b5f00a1
8019585: Sometimes a var declaration using itself in its init wasn't declared as canBeUndefined, causing erroneous bytecode
Reviewed-by: sundar, attila
! src/jdk/nashorn/api/scripting/NashornException.java
! src/jdk/nashorn/internal/codegen/Attr.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/objects/ArrayBufferView.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeError.java
! src/jdk/nashorn/internal/objects/NativeFloat32Array.java
! src/jdk/nashorn/internal/objects/NativeFloat64Array.java
! src/jdk/nashorn/internal/objects/NativeFunction.java
! src/jdk/nashorn/internal/objects/NativeInt16Array.java
! src/jdk/nashorn/internal/objects/NativeInt32Array.java
! src/jdk/nashorn/internal/objects/NativeInt8Array.java
! src/jdk/nashorn/internal/objects/NativeJava.java
! src/jdk/nashorn/internal/objects/NativeObject.java
! src/jdk/nashorn/internal/objects/NativeRegExp.java
! src/jdk/nashorn/internal/objects/NativeUint16Array.java
! src/jdk/nashorn/internal/objects/NativeUint32Array.java
! src/jdk/nashorn/internal/objects/NativeUint8Array.java
! src/jdk/nashorn/internal/objects/NativeUint8ClampedArray.java
! src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
! src/jdk/nashorn/internal/runtime/arrays/ObjectArrayData.java
+ test/script/basic/JDK-8019585.js
Changeset: eb1437d16ab4
Author: sundar
Date: 2013-07-03 17:26 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/eb1437d16ab4
8019805: for each (init; test; modify) is invalid
Reviewed-by: lagergren, jlaskey
! src/jdk/nashorn/internal/parser/Parser.java
! src/jdk/nashorn/internal/runtime/resources/Messages.properties
+ test/script/basic/JDK-8019805.js
+ test/script/basic/JDK-8019805.js.EXPECTED
! test/script/basic/forin.js
! test/script/basic/forin.js.EXPECTED
Changeset: 961cffae0828
Author: lagergren
Date: 2013-07-03 15:46 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/961cffae0828
8019811: Static calls - self referential functions needed a return type conversion if they were specialized, as they can't use the same mechanism as indy calls
Reviewed-by: sundar, jlaskey
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! test/script/basic/JDK-8016667.js
+ test/script/basic/JDK-8019808.js
+ test/script/basic/JDK-8019810.js
+ test/script/basic/JDK-8019810.js.EXPECTED
+ test/script/basic/JDK-8019811.js
+ test/script/basic/JDK-8019817.js
+ test/script/currently-failing/JDK-8019809.js
Changeset: fcb484c43348
Author: sundar
Date: 2013-07-03 19:20 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/fcb484c43348
8019814: Add regression test for passing cases
Reviewed-by: jlaskey, lagergren
! src/jdk/nashorn/internal/runtime/ListAdapter.java
+ test/script/basic/JDK-8019814.js
+ test/script/basic/JDK-8019814.js.EXPECTED
Changeset: 29b2b2ed954c
Author: attila
Date: 2013-07-03 18:10 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/29b2b2ed954c
8017768: allow dot as inner class name separator for Java.type
Reviewed-by: jlaskey, sundar
! docs/JavaScriptingProgrammersGuide.html
! src/jdk/nashorn/internal/objects/NativeJava.java
+ test/script/basic/JDK-8017768.js
+ test/script/basic/JDK-8017768.js.EXPECTED
! test/src/jdk/nashorn/test/models/OuterClass.java
Changeset: 7b072ebdf5aa
Author: jlaskey
Date: 2013-07-03 13:41 -0300
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/7b072ebdf5aa
8011629: Object.defineProperty performance issue
Reviewed-by: sundar, attila
Contributed-by: james.laskey at oracle.com
! src/jdk/nashorn/internal/runtime/AccessorProperty.java
Changeset: ad6b18ee4666
Author: attila
Date: 2013-07-04 14:10 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ad6b18ee4666
8019809: return after break incorrectly sets the block as terminal
Reviewed-by: jlaskey, lagergren
! src/jdk/nashorn/internal/codegen/Lower.java
! src/jdk/nashorn/internal/ir/BlockLexicalContext.java
+ test/script/basic/JDK-8019809.js
- test/script/currently-failing/JDK-8019809.js
Changeset: be2087629eb9
Author: lagergren
Date: 2013-07-04 17:27 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/be2087629eb9
8019821: allInteger switches were confused by boolean cases, as they are a narrower type than int
Reviewed-by: sundar, hannesw
! src/jdk/nashorn/internal/codegen/Attr.java
+ test/script/basic/JDK-8019821.js
Changeset: 8c4a6d9b8a23
Author: lagergren
Date: 2013-07-04 17:28 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/8c4a6d9b8a23
Merge
- test/script/currently-failing/JDK-8019809.js
Changeset: ec84ba68ad39
Author: sundar
Date: 2013-07-05 14:38 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ec84ba68ad39
8019947: inherited property invalidation does not work with two globals in same context
Reviewed-by: jlaskey, lagergren, hannesw, attila
! make/build-nasgen.xml
! make/build.xml
! src/jdk/nashorn/api/scripting/ScriptObjectMirror.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/objects/AccessorPropertyDescriptor.java
! src/jdk/nashorn/internal/objects/ArrayBufferView.java
! src/jdk/nashorn/internal/objects/BoundScriptFunctionImpl.java
! src/jdk/nashorn/internal/objects/DataPropertyDescriptor.java
! src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeArguments.java
! src/jdk/nashorn/internal/objects/NativeArray.java
! src/jdk/nashorn/internal/objects/NativeArrayBuffer.java
! src/jdk/nashorn/internal/objects/NativeBoolean.java
! src/jdk/nashorn/internal/objects/NativeDate.java
! src/jdk/nashorn/internal/objects/NativeDebug.java
! src/jdk/nashorn/internal/objects/NativeError.java
! src/jdk/nashorn/internal/objects/NativeEvalError.java
! src/jdk/nashorn/internal/objects/NativeFloat32Array.java
! src/jdk/nashorn/internal/objects/NativeFloat64Array.java
! src/jdk/nashorn/internal/objects/NativeFunction.java
! src/jdk/nashorn/internal/objects/NativeInt16Array.java
! src/jdk/nashorn/internal/objects/NativeInt32Array.java
! src/jdk/nashorn/internal/objects/NativeInt8Array.java
! src/jdk/nashorn/internal/objects/NativeJSAdapter.java
! src/jdk/nashorn/internal/objects/NativeJSON.java
! src/jdk/nashorn/internal/objects/NativeJava.java
! src/jdk/nashorn/internal/objects/NativeJavaImporter.java
! src/jdk/nashorn/internal/objects/NativeMath.java
! src/jdk/nashorn/internal/objects/NativeNumber.java
! src/jdk/nashorn/internal/objects/NativeObject.java
! src/jdk/nashorn/internal/objects/NativeRangeError.java
! src/jdk/nashorn/internal/objects/NativeReferenceError.java
! src/jdk/nashorn/internal/objects/NativeRegExp.java
! src/jdk/nashorn/internal/objects/NativeRegExpExecResult.java
! src/jdk/nashorn/internal/objects/NativeStrictArguments.java
! src/jdk/nashorn/internal/objects/NativeString.java
! src/jdk/nashorn/internal/objects/NativeSyntaxError.java
! src/jdk/nashorn/internal/objects/NativeTypeError.java
! src/jdk/nashorn/internal/objects/NativeURIError.java
! src/jdk/nashorn/internal/objects/NativeUint16Array.java
! src/jdk/nashorn/internal/objects/NativeUint32Array.java
! src/jdk/nashorn/internal/objects/NativeUint8Array.java
! src/jdk/nashorn/internal/objects/NativeUint8ClampedArray.java
! src/jdk/nashorn/internal/objects/PrototypeObject.java
! src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/GlobalFunctions.java
! src/jdk/nashorn/internal/runtime/GlobalObject.java
! src/jdk/nashorn/internal/runtime/ScriptObject.java
! src/jdk/nashorn/internal/runtime/StructureLoader.java
! src/jdk/nashorn/internal/scripts/JO.java
! src/jdk/nashorn/tools/Shell.java
+ test/script/basic/JDK-8019947.js
+ test/script/basic/JDK-8019947.js.EXPECTED
Changeset: edca88d3a03e
Author: hannesw
Date: 2013-07-05 14:36 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/edca88d3a03e
8017084: Use spill properties for large object literals
Reviewed-by: lagergren, sundar
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ClassGenerator.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/StringConstants.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/codegen/FieldObjectCreator.java
! src/jdk/nashorn/internal/codegen/FinalizeTypes.java
! src/jdk/nashorn/internal/codegen/MapCreator.java
! src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
! src/jdk/nashorn/internal/codegen/ObjectCreator.java
+ src/jdk/nashorn/internal/codegen/SpillObjectCreator.java
! src/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk/nashorn/internal/ir/LiteralNode.java
! src/jdk/nashorn/internal/ir/debug/JSONWriter.java
! src/jdk/nashorn/internal/objects/NativeArguments.java
! src/jdk/nashorn/internal/objects/NativeStrictArguments.java
! src/jdk/nashorn/internal/objects/PrototypeObject.java
! src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
! src/jdk/nashorn/internal/parser/Parser.java
! src/jdk/nashorn/internal/runtime/AccessorProperty.java
! src/jdk/nashorn/internal/runtime/PropertyMap.java
! src/jdk/nashorn/internal/runtime/ScriptObject.java
! src/jdk/nashorn/internal/scripts/JO.java
+ test/script/basic/JDK-8017084.js
+ test/script/basic/JDK-8017084.js.EXPECTED
Changeset: ce9cbe70f915
Author: attila
Date: 2013-07-05 15:10 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ce9cbe70f915
8019819: scope symbol didn't get a slot in certain cases
Reviewed-by: hannesw, jlaskey, lagergren, sundar
! src/jdk/nashorn/internal/codegen/Attr.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/codegen/CompilationPhase.java
! src/jdk/nashorn/internal/codegen/FinalizeTypes.java
! src/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk/nashorn/internal/ir/LexicalContext.java
! src/jdk/nashorn/internal/ir/Symbol.java
! src/jdk/nashorn/internal/parser/Parser.java
+ test/script/basic/JDK-8019819.js
Changeset: 20b2c2dc20e8
Author: lagergren
Date: 2013-07-05 19:35 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/20b2c2dc20e8
8019983: Void returns combined with return with expression picked the wrong return type
Reviewed-by: sundar, jlaskey
! src/jdk/nashorn/internal/codegen/Attr.java
+ test/script/basic/JDK-8019983.js
+ test/script/basic/JDK-8019983.js.EXPECTED
Changeset: 36d6b6a3fbe0
Author: sundar
Date: 2013-07-08 16:33 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/36d6b6a3fbe0
8020015: shared PropertyMaps should not be used without duplication
Reviewed-by: hannesw, attila
! buildtools/nasgen/build.xml
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ClassGenerator.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MethodGenerator.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ScriptClassInstrumentor.java
! buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/StringConstants.java
! make/code_coverage.xml
! make/project.properties
! src/jdk/nashorn/internal/lookup/Lookup.java
! src/jdk/nashorn/internal/objects/ArrayBufferView.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeArguments.java
! src/jdk/nashorn/internal/objects/NativeBoolean.java
! src/jdk/nashorn/internal/objects/NativeDebug.java
! src/jdk/nashorn/internal/objects/NativeError.java
! src/jdk/nashorn/internal/objects/NativeJSAdapter.java
! src/jdk/nashorn/internal/objects/NativeJSON.java
! src/jdk/nashorn/internal/objects/NativeMath.java
! src/jdk/nashorn/internal/objects/NativeStrictArguments.java
! src/jdk/nashorn/internal/objects/PrototypeObject.java
! src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
! src/jdk/nashorn/internal/runtime/AccessorProperty.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/PropertyListenerManager.java
! src/jdk/nashorn/internal/runtime/PropertyMap.java
! src/jdk/nashorn/internal/runtime/ScriptEnvironment.java
! src/jdk/nashorn/internal/runtime/ScriptObject.java
! src/jdk/nashorn/internal/runtime/resources/Options.properties
! src/jdk/nashorn/internal/scripts/JO.java
! src/jdk/nashorn/tools/Shell.java
Changeset: a75e75cc6a61
Author: sundar
Date: 2013-07-08 18:36 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/a75e75cc6a61
8020035: nashorn jdk buildfile BuildNashorn.gmk still renamed jdk.nashorn.internal.objects package
Reviewed-by: attila, jlaskey
! makefiles/BuildNashorn.gmk
Changeset: c96745616167
Author: sundar
Date: 2013-07-08 18:43 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/c96745616167
Merge
More information about the compiler-dev
mailing list