diff options
author | Denis S. Fokin <Denis.Fokin@gmail.com> | 2015-10-29 14:35:35 +0300 |
---|---|---|
committer | Denis S. Fokin <Denis.Fokin@gmail.com> | 2015-10-29 14:35:35 +0300 |
commit | 65de49fac48ef400da91c0500eeea9b52e23f045 (patch) | |
tree | 91cc50316697e665cdcaa0e2a9be39333f68b5b4 /src/jdk/nashorn/internal/codegen/types/BytecodeOps.java | |
parent | 8ec2a4d4e720accdab0fc5d069211bc7e03129e7 (diff) | |
parent | 79867aa8b3f50e06365efa3c2111912766300538 (diff) | |
download | jdk8u_nashorn-65de49fac48ef400da91c0500eeea9b52e23f045.tar.gz |
Merge with default before merge with jdk8u60
--HG--
branch : 8u40-verified-fixes
Diffstat (limited to 'src/jdk/nashorn/internal/codegen/types/BytecodeOps.java')
-rw-r--r-- | src/jdk/nashorn/internal/codegen/types/BytecodeOps.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/jdk/nashorn/internal/codegen/types/BytecodeOps.java b/src/jdk/nashorn/internal/codegen/types/BytecodeOps.java index bbbddf94..1cfb7575 100644 --- a/src/jdk/nashorn/internal/codegen/types/BytecodeOps.java +++ b/src/jdk/nashorn/internal/codegen/types/BytecodeOps.java @@ -85,9 +85,10 @@ interface BytecodeOps { * first to the second, pushing the result on the stack * * @param method method visitor + * @param programPoint program point id * @return result type */ - Type add(MethodVisitor method); + Type add(MethodVisitor method, int programPoint); /** * Load a variable from a local slot to the stack @@ -129,6 +130,17 @@ interface BytecodeOps { Type loadUndefined(MethodVisitor method); /** + * Load the "forced initializer" value to the stack, used to ensure that a local variable has a value when it is + * read by the unwarranted optimism catch block. + * + * @param method method visitor. + * + * @return the forced initialization type at the top of the stack + */ + Type loadForcedInitializer(MethodVisitor method); + + + /** * Load the "empty" value to the stack. * * @param method method visitor. |