@@ -1237,7 +1237,7 @@ source %{
1237
1237
1238
1238
// r27 is not allocatable when compressed oops is on and heapbase is not
1239
1239
// zero, compressed klass pointers doesn't use r27 after JDK-8234794
1240
- if (UseCompressedOops && (CompressedOops::ptrs_base() != NULL )) {
1240
+ if (UseCompressedOops && (CompressedOops::ptrs_base() != nullptr )) {
1241
1241
_NO_SPECIAL_REG32_mask.Remove(OptoReg::as_OptoReg(r27->as_VMReg()));
1242
1242
_NO_SPECIAL_REG_mask.Remove(OptoReg::as_OptoReg(r27->as_VMReg()));
1243
1243
_NO_SPECIAL_PTR_REG_mask.Remove(OptoReg::as_OptoReg(r27->as_VMReg()));
@@ -1581,7 +1581,7 @@ bool needs_releasing_store(const Node *n)
1581
1581
{
1582
1582
// assert n->is_Store();
1583
1583
StoreNode *st = n->as_Store();
1584
- return st->trailing_membar() != NULL ;
1584
+ return st->trailing_membar() != nullptr ;
1585
1585
}
1586
1586
1587
1587
// predicate controlling translation of CAS
@@ -1593,9 +1593,9 @@ bool needs_acquiring_load_exclusive(const Node *n)
1593
1593
assert(is_CAS(n->Opcode(), true), "expecting a compare and swap");
1594
1594
LoadStoreNode* ldst = n->as_LoadStore();
1595
1595
if (is_CAS(n->Opcode(), false)) {
1596
- assert(ldst->trailing_membar() != NULL , "expected trailing membar");
1596
+ assert(ldst->trailing_membar() != nullptr , "expected trailing membar");
1597
1597
} else {
1598
- return ldst->trailing_membar() != NULL ;
1598
+ return ldst->trailing_membar() != nullptr ;
1599
1599
}
1600
1600
1601
1601
// so we can just return true here
@@ -1734,7 +1734,7 @@ void MachPrologNode::format(PhaseRegAlloc *ra_, outputStream *st) const {
1734
1734
st->print("mov rscratch1, #%d\n\t", framesize - 2 * wordSize);
1735
1735
st->print("sub sp, sp, rscratch1");
1736
1736
}
1737
- if (C->stub_function() == NULL && BarrierSet::barrier_set()->barrier_set_nmethod() != NULL ) {
1737
+ if (C->stub_function() == nullptr && BarrierSet::barrier_set()->barrier_set_nmethod() != nullptr ) {
1738
1738
st->print("\n\t");
1739
1739
st->print("ldr rscratch1, [guard]\n\t");
1740
1740
st->print("dmb ishld\n\t");
@@ -1783,9 +1783,9 @@ void MachPrologNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
1783
1783
1784
1784
__ build_frame(framesize);
1785
1785
1786
- if (C->stub_function() == NULL ) {
1786
+ if (C->stub_function() == nullptr ) {
1787
1787
BarrierSetAssembler* bs = BarrierSet::barrier_set()->barrier_set_assembler();
1788
- if (BarrierSet::barrier_set()->barrier_set_nmethod() != NULL ) {
1788
+ if (BarrierSet::barrier_set()->barrier_set_nmethod() != nullptr ) {
1789
1789
// Dummy labels for just measuring the code size
1790
1790
Label dummy_slow_path;
1791
1791
Label dummy_continuation;
@@ -2153,12 +2153,12 @@ void MachSpillCopyNode::format(PhaseRegAlloc *ra_, outputStream *st) const {
2153
2153
if (!ra_)
2154
2154
st->print("N%d = SpillCopy(N%d)", _idx, in(1)->_idx);
2155
2155
else
2156
- implementation(NULL , ra_, false, st);
2156
+ implementation(nullptr , ra_, false, st);
2157
2157
}
2158
2158
#endif
2159
2159
2160
2160
void MachSpillCopyNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
2161
- implementation(&cbuf, ra_, false, NULL );
2161
+ implementation(&cbuf, ra_, false, nullptr );
2162
2162
}
2163
2163
2164
2164
uint MachSpillCopyNode::size(PhaseRegAlloc *ra_) const {
@@ -2249,7 +2249,7 @@ int HandlerImpl::emit_exception_handler(CodeBuffer& cbuf)
2249
2249
// That's why we must use the macroassembler to generate a handler.
2250
2250
C2_MacroAssembler _masm(&cbuf);
2251
2251
address base = __ start_a_stub(size_exception_handler());
2252
- if (base == NULL ) {
2252
+ if (base == nullptr ) {
2253
2253
ciEnv::current()->record_failure("CodeCache is full");
2254
2254
return 0; // CodeBuffer::expand failed
2255
2255
}
@@ -2267,7 +2267,7 @@ int HandlerImpl::emit_deopt_handler(CodeBuffer& cbuf)
2267
2267
// That's why we must use the macroassembler to generate a handler.
2268
2268
C2_MacroAssembler _masm(&cbuf);
2269
2269
address base = __ start_a_stub(size_deopt_handler());
2270
- if (base == NULL ) {
2270
+ if (base == nullptr ) {
2271
2271
ciEnv::current()->record_failure("CodeCache is full");
2272
2272
return 0; // CodeBuffer::expand failed
2273
2273
}
@@ -2410,7 +2410,7 @@ MachOper* Matcher::pd_specialize_generic_vector_operand(MachOper* generic_opnd,
2410
2410
case Op_VecX: return new vecXOper();
2411
2411
}
2412
2412
ShouldNotReachHere();
2413
- return NULL ;
2413
+ return nullptr ;
2414
2414
}
2415
2415
2416
2416
bool Matcher::is_reg2reg_move(MachNode* m) {
@@ -2583,7 +2583,7 @@ Assembler::Condition to_assembler_cond(BoolTest::mask cond) {
2583
2583
2584
2584
// Binary src (Replicate con)
2585
2585
bool is_valid_sve_arith_imm_pattern(Node* n, Node* m) {
2586
- if (n == NULL || m == NULL ) {
2586
+ if (n == nullptr || m == nullptr ) {
2587
2587
return false;
2588
2588
}
2589
2589
@@ -2624,7 +2624,7 @@ bool is_valid_sve_arith_imm_pattern(Node* n, Node* m) {
2624
2624
// (XorV src (Replicate m1))
2625
2625
// (XorVMask src (MaskAll m1))
2626
2626
bool is_vector_bitwise_not_pattern(Node* n, Node* m) {
2627
- if (n != NULL && m != NULL ) {
2627
+ if (n != nullptr && m != nullptr ) {
2628
2628
return (n->Opcode() == Op_XorV || n->Opcode() == Op_XorVMask) &&
2629
2629
VectorNode::is_all_ones_vector(m);
2630
2630
}
@@ -3430,7 +3430,7 @@ encode %{
3430
3430
C2_MacroAssembler _masm(&cbuf);
3431
3431
Register dst_reg = as_Register($dst$$reg);
3432
3432
address con = (address)$src$$constant;
3433
- if (con == NULL || con == (address)1) {
3433
+ if (con == nullptr || con == (address)1) {
3434
3434
ShouldNotReachHere();
3435
3435
} else {
3436
3436
relocInfo::relocType rtype = $src->constant_reloc();
@@ -3473,7 +3473,7 @@ encode %{
3473
3473
C2_MacroAssembler _masm(&cbuf);
3474
3474
Register dst_reg = as_Register($dst$$reg);
3475
3475
address con = (address)$src$$constant;
3476
- if (con == NULL ) {
3476
+ if (con == nullptr ) {
3477
3477
ShouldNotReachHere();
3478
3478
} else {
3479
3479
relocInfo::relocType rtype = $src->constant_reloc();
@@ -3492,7 +3492,7 @@ encode %{
3492
3492
C2_MacroAssembler _masm(&cbuf);
3493
3493
Register dst_reg = as_Register($dst$$reg);
3494
3494
address con = (address)$src$$constant;
3495
- if (con == NULL ) {
3495
+ if (con == nullptr ) {
3496
3496
ShouldNotReachHere();
3497
3497
} else {
3498
3498
relocInfo::relocType rtype = $src->constant_reloc();
@@ -3675,7 +3675,7 @@ encode %{
3675
3675
Label miss;
3676
3676
C2_MacroAssembler _masm(&cbuf);
3677
3677
__ check_klass_subtype_slow_path(sub_reg, super_reg, temp_reg, result_reg,
3678
- NULL , &miss,
3678
+ nullptr , &miss,
3679
3679
/*set_cond_codes:*/ true);
3680
3680
if ($primary) {
3681
3681
__ mov(result_reg, zr);
@@ -3691,7 +3691,7 @@ encode %{
3691
3691
if (!_method) {
3692
3692
// A call to a runtime wrapper, e.g. new, new_typeArray_Java, uncommon_trap.
3693
3693
call = __ trampoline_call(Address(addr, relocInfo::runtime_call_type));
3694
- if (call == NULL ) {
3694
+ if (call == nullptr ) {
3695
3695
ciEnv::current()->record_failure("CodeCache is full");
3696
3696
return;
3697
3697
}
@@ -3705,7 +3705,7 @@ encode %{
3705
3705
RelocationHolder rspec = _optimized_virtual ? opt_virtual_call_Relocation::spec(method_index)
3706
3706
: static_call_Relocation::spec(method_index);
3707
3707
call = __ trampoline_call(Address(addr, rspec));
3708
- if (call == NULL ) {
3708
+ if (call == nullptr ) {
3709
3709
ciEnv::current()->record_failure("CodeCache is full");
3710
3710
return;
3711
3711
}
@@ -3716,7 +3716,7 @@ encode %{
3716
3716
} else {
3717
3717
// Emit stub for static call
3718
3718
address stub = CompiledStaticCall::emit_to_interp_stub(cbuf, call);
3719
- if (stub == NULL ) {
3719
+ if (stub == nullptr ) {
3720
3720
ciEnv::current()->record_failure("CodeCache is full");
3721
3721
return;
3722
3722
}
@@ -3735,7 +3735,7 @@ encode %{
3735
3735
C2_MacroAssembler _masm(&cbuf);
3736
3736
int method_index = resolved_method_index(cbuf);
3737
3737
address call = __ ic_call((address)$meth$$method, method_index);
3738
- if (call == NULL ) {
3738
+ if (call == nullptr ) {
3739
3739
ciEnv::current()->record_failure("CodeCache is full");
3740
3740
return;
3741
3741
}
@@ -3764,7 +3764,7 @@ encode %{
3764
3764
CodeBlob *cb = CodeCache::find_blob(entry);
3765
3765
if (cb) {
3766
3766
address call = __ trampoline_call(Address(entry, relocInfo::runtime_call_type));
3767
- if (call == NULL ) {
3767
+ if (call == nullptr ) {
3768
3768
ciEnv::current()->record_failure("CodeCache is full");
3769
3769
return;
3770
3770
}
@@ -4663,7 +4663,7 @@ operand immP()
4663
4663
interface(CONST_INTER);
4664
4664
%}
4665
4665
4666
- // NULL Pointer Immediate
4666
+ // Null Pointer Immediate
4667
4667
operand immP0()
4668
4668
%{
4669
4669
predicate(n->get_ptr() == 0);
@@ -4795,7 +4795,7 @@ operand immN()
4795
4795
interface(CONST_INTER);
4796
4796
%}
4797
4797
4798
- // Narrow NULL Pointer Immediate
4798
+ // Narrow Null Pointer Immediate
4799
4799
operand immN0()
4800
4800
%{
4801
4801
predicate(n->get_narrowcon() == 0);
@@ -7219,7 +7219,7 @@ instruct loadConP0(iRegPNoSp dst, immP0 con)
7219
7219
match(Set dst con);
7220
7220
7221
7221
ins_cost(INSN_COST);
7222
- format %{ "mov $dst, $con\t# NULL ptr " %}
7222
+ format %{ "mov $dst, $con\t# null pointer " %}
7223
7223
7224
7224
ins_encode(aarch64_enc_mov_p0(dst, con));
7225
7225
@@ -7233,7 +7233,7 @@ instruct loadConP1(iRegPNoSp dst, immP_1 con)
7233
7233
match(Set dst con);
7234
7234
7235
7235
ins_cost(INSN_COST);
7236
- format %{ "mov $dst, $con\t# NULL ptr " %}
7236
+ format %{ "mov $dst, $con\t# null pointer " %}
7237
7237
7238
7238
ins_encode(aarch64_enc_mov_p1(dst, con));
7239
7239
@@ -7275,7 +7275,7 @@ instruct loadConN0(iRegNNoSp dst, immN0 con)
7275
7275
match(Set dst con);
7276
7276
7277
7277
ins_cost(INSN_COST);
7278
- format %{ "mov $dst, $con\t# compressed NULL ptr " %}
7278
+ format %{ "mov $dst, $con\t# compressed null pointer " %}
7279
7279
7280
7280
ins_encode(aarch64_enc_mov_n0(dst, con));
7281
7281
@@ -15257,7 +15257,7 @@ instruct clearArray_reg_reg(iRegL_R11 cnt, iRegP_R10 base, Universe dummy, rFlag
15257
15257
15258
15258
ins_encode %{
15259
15259
address tpc = __ zero_words($base$$Register, $cnt$$Register);
15260
- if (tpc == NULL ) {
15260
+ if (tpc == nullptr ) {
15261
15261
ciEnv::current()->record_failure("CodeCache is full");
15262
15262
return;
15263
15263
}
@@ -15278,7 +15278,7 @@ instruct clearArray_imm_reg(immL cnt, iRegP_R10 base, iRegL_R11 temp, Universe d
15278
15278
15279
15279
ins_encode %{
15280
15280
address tpc = __ zero_words($base$$Register, (uint64_t)$cnt$$constant);
15281
- if (tpc == NULL ) {
15281
+ if (tpc == nullptr ) {
15282
15282
ciEnv::current()->record_failure("CodeCache is full");
15283
15283
return;
15284
15284
}
@@ -17143,7 +17143,7 @@ instruct array_equalsB(iRegP_R1 ary1, iRegP_R2 ary2, iRegI_R0 result,
17143
17143
address tpc = __ arrays_equals($ary1$$Register, $ary2$$Register,
17144
17144
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
17145
17145
$result$$Register, $tmp$$Register, 1);
17146
- if (tpc == NULL ) {
17146
+ if (tpc == nullptr ) {
17147
17147
ciEnv::current()->record_failure("CodeCache is full");
17148
17148
return;
17149
17149
}
@@ -17168,7 +17168,7 @@ instruct array_equalsC(iRegP_R1 ary1, iRegP_R2 ary2, iRegI_R0 result,
17168
17168
address tpc = __ arrays_equals($ary1$$Register, $ary2$$Register,
17169
17169
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
17170
17170
$result$$Register, $tmp$$Register, 2);
17171
- if (tpc == NULL ) {
17171
+ if (tpc == nullptr ) {
17172
17172
ciEnv::current()->record_failure("CodeCache is full");
17173
17173
return;
17174
17174
}
@@ -17183,7 +17183,7 @@ instruct count_positives(iRegP_R1 ary1, iRegI_R2 len, iRegI_R0 result, rFlagsReg
17183
17183
format %{ "count positives byte[] $ary1,$len -> $result" %}
17184
17184
ins_encode %{
17185
17185
address tpc = __ count_positives($ary1$$Register, $len$$Register, $result$$Register);
17186
- if (tpc == NULL ) {
17186
+ if (tpc == nullptr ) {
17187
17187
ciEnv::current()->record_failure("CodeCache is full");
17188
17188
return;
17189
17189
}
@@ -17226,7 +17226,7 @@ instruct string_inflate(Universe dummy, iRegP_R0 src, iRegP_R1 dst, iRegI_R2 len
17226
17226
address tpc = __ byte_array_inflate($src$$Register, $dst$$Register, $len$$Register,
17227
17227
$vtmp0$$FloatRegister, $vtmp1$$FloatRegister,
17228
17228
$vtmp2$$FloatRegister, $tmp$$Register);
17229
- if (tpc == NULL ) {
17229
+ if (tpc == nullptr ) {
17230
17230
ciEnv::current()->record_failure("CodeCache is full");
17231
17231
return;
17232
17232
}
0 commit comments