Skip to content

Commit 67c504a

Browse files
author
duke
committedMar 2, 2025
Automatic merge of jdk:master into master
2 parents ad292db + 0a1eea1 commit 67c504a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
 

‎src/hotspot/share/adlc/formssel.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1854,14 +1854,14 @@ void InsEncode::output(FILE *fp) {
18541854
fprintf(fp,"InsEncode: ");
18551855
_encoding.reset();
18561856

1857-
while ( (encoding = (NameAndList*)_encoding.iter()) != 0 ) {
1857+
while ( (encoding = (NameAndList*)_encoding.iter()) != nullptr ) {
18581858
// Output the encoding being used
18591859
fprintf(fp,"%s(", encoding->name() );
18601860

18611861
// Output its parameter list, if any
18621862
bool first_param = true;
18631863
encoding->reset();
1864-
while ( (parameter = encoding->iter()) != 0 ) {
1864+
while ( (parameter = encoding->iter()) != nullptr ) {
18651865
// Output the ',' between parameters
18661866
if ( ! first_param ) fprintf(fp,", ");
18671867
first_param = false;
@@ -3305,7 +3305,7 @@ void ComponentList::output(FILE *fp) {
33053305
MatchNode::MatchNode(ArchDesc &ad, const char *result, const char *mexpr,
33063306
const char *opType, MatchNode *lChild, MatchNode *rChild)
33073307
: _AD(ad), _result(result), _name(mexpr), _opType(opType),
3308-
_lChild(lChild), _rChild(rChild), _internalop(0), _numleaves(0),
3308+
_lChild(lChild), _rChild(rChild), _internalop(nullptr), _numleaves(0),
33093309
_commutative_id(0) {
33103310
_numleaves = (lChild ? lChild->_numleaves : 0)
33113311
+ (rChild ? rChild->_numleaves : 0);
@@ -3314,14 +3314,14 @@ MatchNode::MatchNode(ArchDesc &ad, const char *result, const char *mexpr,
33143314
MatchNode::MatchNode(ArchDesc &ad, MatchNode& mnode)
33153315
: _AD(ad), _result(mnode._result), _name(mnode._name),
33163316
_opType(mnode._opType), _lChild(mnode._lChild), _rChild(mnode._rChild),
3317-
_internalop(0), _numleaves(mnode._numleaves),
3317+
_internalop(nullptr), _numleaves(mnode._numleaves),
33183318
_commutative_id(mnode._commutative_id) {
33193319
}
33203320

33213321
MatchNode::MatchNode(ArchDesc &ad, MatchNode& mnode, int clone)
33223322
: _AD(ad), _result(mnode._result), _name(mnode._name),
33233323
_opType(mnode._opType),
3324-
_internalop(0), _numleaves(mnode._numleaves),
3324+
_internalop(nullptr), _numleaves(mnode._numleaves),
33253325
_commutative_id(mnode._commutative_id) {
33263326
if (mnode._lChild) {
33273327
_lChild = new MatchNode(ad, *mnode._lChild, clone);
@@ -3624,7 +3624,7 @@ void MatchNode::dump() {
36243624
}
36253625

36263626
void MatchNode::output(FILE *fp) {
3627-
if (_lChild==0 && _rChild==0) {
3627+
if (_lChild==nullptr && _rChild==nullptr) {
36283628
fprintf(fp," %s",_name); // operand
36293629
}
36303630
else {

‎src/hotspot/share/adlc/formssel.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -973,8 +973,8 @@ class MatchNode : public Form {
973973
int _commutative_id; // id of commutative operation
974974

975975
// Public Methods
976-
MatchNode(ArchDesc &ad, const char *result = 0, const char *expr = 0,
977-
const char *opType=0, MatchNode *lChild=nullptr,
976+
MatchNode(ArchDesc &ad, const char *result = nullptr, const char *expr = nullptr,
977+
const char *opType=nullptr, MatchNode *lChild=nullptr,
978978
MatchNode *rChild=nullptr);
979979
MatchNode(ArchDesc &ad, MatchNode& mNode); // Shallow copy constructor;
980980
MatchNode(ArchDesc &ad, MatchNode& mNode, int clone); // Construct clone

0 commit comments

Comments
 (0)
Please sign in to comment.