Skip to content

Commit 03cec09

Browse files
authored
Update (2023.05.17, 4th)
30733: Replace NULL with nullptr in cpu/loongarch 30732: LA port of 8304450: [vectorapi] Refactor VectorShuffle implementation
1 parent 5182941 commit 03cec09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+411
-439
lines changed

src/hotspot/cpu/loongarch/abstractInterpreter_loongarch.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2015, 2022, Loongson Technology. All rights reserved.
3+
* Copyright (c) 2015, 2023, Loongson Technology. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -61,7 +61,7 @@ int AbstractInterpreter::size_top_interpreter_activation(Method* method) {
6161
-(frame::interpreter_frame_initial_sp_offset) + entry_size;
6262

6363
const int stub_code = frame::entry_frame_after_call_words;
64-
assert(method != NULL, "invalid method");
64+
assert(method != nullptr, "invalid method");
6565
const int method_stack = (method->max_locals() + method->max_stack()) *
6666
Interpreter::stackElementWords;
6767
return (overhead_size + method_stack + stub_code);
@@ -106,8 +106,8 @@ void AbstractInterpreter::layout_activation(Method* method,
106106
bool is_bottom_frame) {
107107
// Note: This calculation must exactly parallel the frame setup
108108
// in AbstractInterpreterGenerator::generate_method_entry.
109-
// If interpreter_frame!=NULL, set up the method, locals, and monitors.
110-
// The frame interpreter_frame, if not NULL, is guaranteed to be the
109+
// If interpreter_frame!=nullptr, set up the method, locals, and monitors.
110+
// The frame interpreter_frame, if not null, is guaranteed to be the
111111
// right size, as determined by a previous call to this method.
112112
// It is also guaranteed to be walkable even though it is in a skeletal state
113113

src/hotspot/cpu/loongarch/assembler_loongarch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class AddressLiteral {
206206
protected:
207207
// creation
208208
AddressLiteral()
209-
: _target(NULL)
209+
: _target(nullptr)
210210
{}
211211

212212
public:
@@ -1720,7 +1720,7 @@ class Assembler : public AbstractAssembler {
17201720
}
17211721

17221722
inline void emit_data64(jlong data, RelocationHolder const& rspec, int format = 0) {
1723-
assert(inst_mark() != NULL, "must be inside InstructionMark");
1723+
assert(inst_mark() != nullptr, "must be inside InstructionMark");
17241724
// Do not use AbstractAssembler::relocate, which is not intended for
17251725
// embedded words. Instead, relocate to the enclosing instruction.
17261726
code_section()->relocate(inst_mark(), rspec, format);

src/hotspot/cpu/loongarch/c1_CodeStubs_loongarch_64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void C1SafepointPollStub::emit_code(LIR_Assembler* ce) {
4343
__ lea(SCR2, safepoint_pc);
4444
__ st_d(SCR2, Address(TREG, JavaThread::saved_exception_pc_offset()));
4545

46-
assert(SharedRuntime::polling_page_return_handler_blob() != NULL,
46+
assert(SharedRuntime::polling_page_return_handler_blob() != nullptr,
4747
"polling page return stub not created yet");
4848
address stub = SharedRuntime::polling_page_return_handler_blob()->entry_point();
4949

@@ -319,7 +319,7 @@ void ArrayCopyStub::emit_code(LIR_Assembler* ce) {
319319
AddressLiteral resolve(SharedRuntime::get_resolve_static_call_stub(),
320320
relocInfo::static_call_type);
321321
address call = __ trampoline_call(resolve);
322-
if (call == NULL) {
322+
if (call == nullptr) {
323323
ce->bailout("trampoline stub overflow");
324324
return;
325325
}

src/hotspot/cpu/loongarch/c1_LIRAssembler_loongarch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2021, 2022, Loongson Technology. All rights reserved.
3+
* Copyright (c) 2021, 2023, Loongson Technology. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -56,7 +56,7 @@ friend class ArrayCopyStub;
5656
void casw(Register addr, Register newval, Register cmpval, Register result, bool sign);
5757
void casl(Register addr, Register newval, Register cmpval, Register result);
5858

59-
void poll_for_safepoint(relocInfo::relocType rtype, CodeEmitInfo* info = NULL);
59+
void poll_for_safepoint(relocInfo::relocType rtype, CodeEmitInfo* info = nullptr);
6060

6161
static const int max_tableswitches = 20;
6262
struct tableswitch switches[max_tableswitches];

0 commit comments

Comments
 (0)