8293410: Remove GenerateRangeChecks flag
Reviewed-by: thartmann, chagedorn, kvn
This commit is contained in:
parent
50e7df91c7
commit
83f2c9a2b2
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1714,7 +1714,7 @@ void LIRGenerator::do_StoreIndexed(StoreIndexed* x) {
|
||||
null_check_info = new CodeEmitInfo(range_check_info);
|
||||
}
|
||||
|
||||
if (GenerateRangeChecks && needs_range_check) {
|
||||
if (needs_range_check) {
|
||||
if (use_length) {
|
||||
__ cmp(lir_cond_belowEqual, length.result(), index.result());
|
||||
__ branch(lir_cond_belowEqual, new RangeCheckStub(range_check_info, index.result(), array.result()));
|
||||
@ -2003,7 +2003,7 @@ void LIRGenerator::do_LoadIndexed(LoadIndexed* x) {
|
||||
}
|
||||
}
|
||||
|
||||
if (GenerateRangeChecks && needs_range_check) {
|
||||
if (needs_range_check) {
|
||||
if (StressLoopInvariantCodeMotion && range_check_info->deoptimize_on_exception()) {
|
||||
__ branch(lir_cond_always, new RangeCheckStub(range_check_info, index.result(), array.result()));
|
||||
} else if (use_length) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -155,7 +155,7 @@ Node* Parse::array_addressing(BasicType type, int vals, const Type*& elemtype) {
|
||||
}
|
||||
|
||||
// Do the range check
|
||||
if (GenerateRangeChecks && need_range_check) {
|
||||
if (need_range_check) {
|
||||
Node* tst;
|
||||
if (sizetype->_hi <= 0) {
|
||||
// The greatest array bound is negative, so we can conclude that we're
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -941,9 +941,6 @@ const int ObjectAlignmentInBytes = 8;
|
||||
"generate locking/unlocking code for synchronized methods and " \
|
||||
"monitors") \
|
||||
\
|
||||
develop(bool, GenerateRangeChecks, true, \
|
||||
"Generate range checks for array accesses") \
|
||||
\
|
||||
product_pd(bool, ImplicitNullChecks, DIAGNOSTIC, \
|
||||
"Generate code for implicit null checks") \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user