Please review JDK-8062937
marcus.lagergren at oracle.com
Thu Nov 13 15:20:03 UTC 2014
Conservatively invalidating global properties from constant replacement if they are set with defineProperty, deleted or set with an accessor that varies at runtime, e.g. indexed setters.
There is no performance regression on the octane benchmarks. For 8u40 I chose to use this conservative strategy, as it was simplest and it didn’t reduce performance for now.
We’ll work on optimising indexed setters as part of the avatar performance project shortly anyway.
(please ignore runopt.sh, where I happened to flip the x bit - I’ve reverted that)
More information about the nashorn-dev