< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
Print this page
*** 123,133 ****
options.isUnset(G_CUSTOM)
? options.isSet(G)
: options.isSet(G_CUSTOM, "vars");
genCrt = options.isSet(XJCOV);
debugCode = options.isSet("debug.code");
- allowBetterNullChecks = target.hasObjects();
disableVirtualizedPrivateInvoke = options.isSet("disableVirtualizedPrivateInvoke");
pool = new Pool(types);
// ignore cldc because we cannot have both stackmap formats
this.stackMap = StackMapFormat.JSR202;
--- 123,132 ----
*** 138,148 ****
*/
private final boolean lineDebugInfo;
private final boolean varDebugInfo;
private final boolean genCrt;
private final boolean debugCode;
- private final boolean allowBetterNullChecks;
private boolean disableVirtualizedPrivateInvoke;
/** Code buffer, set by genMethod.
*/
private Code code;
--- 137,146 ----
*** 1917,1933 ****
}
/** Generate a null check from the object value at stack top. */
private void genNullCheck(JCTree tree) {
code.statBegin(tree.pos);
- if (allowBetterNullChecks) {
callMethod(tree.pos(), syms.objectsType, names.requireNonNull,
List.of(syms.objectType), true);
- } else {
- callMethod(tree.pos(), syms.objectType, names.getClass,
- List.nil(), false);
- }
code.emitop0(pop);
}
public void visitBinary(JCBinary tree) {
OperatorSymbol operator = tree.operator;
--- 1915,1926 ----
< prev index next >