hg: nashorn/jdk9/nashorn: 8027043: Turn global accesses into MethodHandle.constant, with one chance of reassignment, e.g. x = value occuring once in the global scope is ok, twice is not.
marcus.lagergren at oracle.com
marcus.lagergren at oracle.com
Mon Mar 31 12:22:21 UTC 2014
Changeset: 7bb20a02bad0
Author: lagergren
Date: 2014-03-31 14:13 +0200
URL: http://hg.openjdk.java.net/nashorn/jdk9/nashorn/rev/7bb20a02bad0
8027043: Turn global accesses into MethodHandle.constant, with one chance of reassignment, e.g. x = value occuring once in the global scope is ok, twice is not.
Reviewed-by: attila, sundar, jlaskey
+ bin/runoptdualcatch9.sh
! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk/nashorn/internal/codegen/CompilationEnvironment.java
! src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
! src/jdk/nashorn/internal/codegen/SpillObjectCreator.java
! src/jdk/nashorn/internal/lookup/MethodHandleFactory.java
! src/jdk/nashorn/internal/objects/ArrayBufferView.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeArray.java
! src/jdk/nashorn/internal/objects/NativeDataView.java
! src/jdk/nashorn/internal/objects/NativeError.java
! src/jdk/nashorn/internal/runtime/AccessorProperty.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/DebugLogger.java
+ src/jdk/nashorn/internal/runtime/GlobalConstants.java
! src/jdk/nashorn/internal/runtime/JSType.java
! src/jdk/nashorn/internal/runtime/RecompilableScriptFunctionData.java
! src/jdk/nashorn/internal/runtime/RewriteException.java
! src/jdk/nashorn/internal/runtime/RuntimeEvent.java
! src/jdk/nashorn/internal/runtime/ScriptFunctionData.java
! src/jdk/nashorn/internal/runtime/ScriptObject.java
! src/jdk/nashorn/internal/runtime/ScriptRuntime.java
! src/jdk/nashorn/internal/runtime/SetMethodCreator.java
! src/jdk/nashorn/internal/runtime/WithObject.java
! src/jdk/nashorn/internal/runtime/linker/NashornGuards.java
- test/script/basic/JDK-8010697.js
- test/script/basic/JDK-8010697.js.EXPECTED
! test/script/basic/JDK-8022903.js
! test/script/basic/JDK-8022903.js.EXPECTED
! test/script/basic/JDK-8027042.js
! test/script/basic/JDK-8027042.js.EXPECTED
+ test/script/currently-failing/JDK-8010697.js
+ test/script/currently-failing/JDK-8010697.js.EXPECTED
! test/src/jdk/nashorn/api/scripting/ScopeTest.java
More information about the nashorn-dev
mailing list