@@ -145,7 +145,7 @@ class Label {
145
145
* @param cb the code buffer being patched
146
146
* @param branch_loc the locator of the branch instruction in the code buffer
147
147
*/
148
- void add_patch_at (CodeBuffer* cb, int branch_loc, const char * file = NULL , int line = 0 );
148
+ void add_patch_at (CodeBuffer* cb, int branch_loc, const char * file = nullptr , int line = 0 );
149
149
150
150
/* *
151
151
* Iterate over the list of patches, resolving the instructions
@@ -156,7 +156,7 @@ class Label {
156
156
void init () {
157
157
_loc = -1 ;
158
158
_patch_index = 0 ;
159
- _patch_overflow = NULL ;
159
+ _patch_overflow = nullptr ;
160
160
_is_near = false ;
161
161
}
162
162
@@ -233,7 +233,7 @@ class AbstractAssembler : public ResourceObj {
233
233
234
234
public:
235
235
InstructionMark (AbstractAssembler* assm) : _assm(assm) {
236
- assert (assm->inst_mark () == NULL , " overlapping instructions" );
236
+ assert (assm->inst_mark () == nullptr , " overlapping instructions" );
237
237
_assm->set_inst_mark ();
238
238
}
239
239
~InstructionMark () {
@@ -359,7 +359,7 @@ class AbstractAssembler : public ResourceObj {
359
359
// Constants in code
360
360
void relocate (RelocationHolder const & rspec, int format = 0 ) {
361
361
assert (!pd_check_instruction_mark ()
362
- || inst_mark () == NULL || inst_mark () == code_section ()->end (),
362
+ || inst_mark () == nullptr || inst_mark () == code_section ()->end (),
363
363
" call relocate() between instructions" );
364
364
code_section ()->relocate (code_section ()->end (), rspec, format);
365
365
}
@@ -396,7 +396,7 @@ class AbstractAssembler : public ResourceObj {
396
396
address int_constant (jint c) {
397
397
CodeSection* c1 = _code_section;
398
398
address ptr = start_a_const (sizeof (c), sizeof (c));
399
- if (ptr != NULL ) {
399
+ if (ptr != nullptr ) {
400
400
emit_int32 (c);
401
401
end_a_const (c1);
402
402
}
@@ -405,7 +405,7 @@ class AbstractAssembler : public ResourceObj {
405
405
address long_constant (jlong c) {
406
406
CodeSection* c1 = _code_section;
407
407
address ptr = start_a_const (sizeof (c), sizeof (c));
408
- if (ptr != NULL ) {
408
+ if (ptr != nullptr ) {
409
409
emit_int64 (c);
410
410
end_a_const (c1);
411
411
}
@@ -414,7 +414,7 @@ class AbstractAssembler : public ResourceObj {
414
414
address double_constant (jdouble c) {
415
415
CodeSection* c1 = _code_section;
416
416
address ptr = start_a_const (sizeof (c), sizeof (c));
417
- if (ptr != NULL ) {
417
+ if (ptr != nullptr ) {
418
418
emit_double (c);
419
419
end_a_const (c1);
420
420
}
@@ -423,7 +423,7 @@ class AbstractAssembler : public ResourceObj {
423
423
address float_constant (jfloat c) {
424
424
CodeSection* c1 = _code_section;
425
425
address ptr = start_a_const (sizeof (c), sizeof (c));
426
- if (ptr != NULL ) {
426
+ if (ptr != nullptr ) {
427
427
emit_float (c);
428
428
end_a_const (c1);
429
429
}
@@ -432,7 +432,7 @@ class AbstractAssembler : public ResourceObj {
432
432
address address_constant (address c) {
433
433
CodeSection* c1 = _code_section;
434
434
address ptr = start_a_const (sizeof (c), sizeof (c));
435
- if (ptr != NULL ) {
435
+ if (ptr != nullptr ) {
436
436
emit_address (c);
437
437
end_a_const (c1);
438
438
}
@@ -441,7 +441,7 @@ class AbstractAssembler : public ResourceObj {
441
441
address address_constant (address c, RelocationHolder const & rspec) {
442
442
CodeSection* c1 = _code_section;
443
443
address ptr = start_a_const (sizeof (c), sizeof (c));
444
- if (ptr != NULL ) {
444
+ if (ptr != nullptr ) {
445
445
relocate (rspec);
446
446
emit_address (c);
447
447
end_a_const (c1);
@@ -453,7 +453,7 @@ class AbstractAssembler : public ResourceObj {
453
453
int len = c->length ();
454
454
int size = type2aelembytes (bt) * len;
455
455
address ptr = start_a_const (size, alignment);
456
- if (ptr != NULL ) {
456
+ if (ptr != nullptr ) {
457
457
for (int i = 0 ; i < len; i++) {
458
458
jvalue e = c->at (i);
459
459
switch (bt) {
0 commit comments