hg: jdk9/dev/nashorn: 8048869: Reduce compile time by about 5% by removing the Class.casts from the AST nodes
marcus.lagergren at oracle.com
marcus.lagergren at oracle.com
Tue Jul 29 21:26:35 UTC 2014
Changeset: 0787fe044ee6
Author: lagergren
Date: 2014-07-29 14:21 -0700
URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/0787fe044ee6
8048869: Reduce compile time by about 5% by removing the Class.casts from the AST nodes
Summary: Removed the native casts that slow down the compiler unnecessarily. I also modified the compile-octane harness so that it can run with --verbose and --iterations flags so that you can run the compiler for an arbitrary time, gathering a mission control executing profile.
Reviewed-by: attila, jlaskey
! src/jdk/internal/dynalink/support/CompositeTypeBasedGuardingDynamicLinker.java
! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/codegen/CompilationPhase.java
! src/jdk/nashorn/internal/codegen/Compiler.java
! src/jdk/nashorn/internal/codegen/Lower.java
! src/jdk/nashorn/internal/codegen/OptimisticTypesPersistence.java
! src/jdk/nashorn/internal/ir/Block.java
! src/jdk/nashorn/internal/ir/CallNode.java
! src/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk/nashorn/internal/ir/LexicalContext.java
! src/jdk/nashorn/internal/ir/LiteralNode.java
! src/jdk/nashorn/internal/ir/Node.java
! src/jdk/nashorn/internal/ir/ObjectNode.java
! src/jdk/nashorn/internal/ir/SwitchNode.java
! src/jdk/nashorn/internal/ir/TryNode.java
! src/jdk/nashorn/internal/ir/debug/ClassHistogramElement.java
! src/jdk/nashorn/internal/ir/debug/NashornTextifier.java
! src/jdk/nashorn/internal/ir/debug/ObjectSizeCalculator.java
! src/jdk/nashorn/internal/lookup/MethodHandleFactory.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeDate.java
! src/jdk/nashorn/internal/objects/NativeObject.java
! src/jdk/nashorn/internal/runtime/ECMAErrors.java
! src/jdk/nashorn/internal/runtime/RecompilableScriptFunctionData.java
! src/jdk/nashorn/internal/runtime/ScriptObject.java
! src/jdk/nashorn/internal/runtime/ScriptRuntime.java
! src/jdk/nashorn/internal/runtime/WithObject.java
+ test/script/basic/compile-octane-normal.js
+ test/script/basic/compile-octane-normal.js.EXPECTED
! test/script/basic/compile-octane-splitter.js
! test/script/basic/compile-octane-splitter.js.EXPECTED
! test/script/basic/compile-octane.js
- test/script/basic/compile-octane.js.EXPECTED
+ test/script/basic/octane-payload.js
! test/script/basic/run-octane.js
More information about the jdk9-dev-changes
mailing list