mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 20:20:14 +00:00
8287288: Fix some typos in C1
Reviewed-by: aph, dholmes, dlong, chagedorn
This commit is contained in:
parent
447ae00616
commit
1b9987cb08
@ -965,7 +965,7 @@ void LIR_Assembler::mem2reg(LIR_Opr src, LIR_Opr dest, BasicType type, LIR_Patch
|
||||
if (UseCompressedOops && !wide) {
|
||||
__ ldrw(dest->as_register(), as_Address(from_addr));
|
||||
} else {
|
||||
__ ldr(dest->as_register(), as_Address(from_addr));
|
||||
__ ldr(dest->as_register(), as_Address(from_addr));
|
||||
}
|
||||
break;
|
||||
case T_METADATA:
|
||||
|
||||
@ -917,7 +917,6 @@ void LIRGenerator::do_update_CRC32(Intrinsic* x) {
|
||||
assert(UseCRC32Intrinsics, "why are we here?");
|
||||
// Make all state_for calls early since they can emit code
|
||||
LIR_Opr result = rlock_result(x);
|
||||
int flags = 0;
|
||||
switch (x->id()) {
|
||||
case vmIntrinsics::_updateCRC32: {
|
||||
LIRItem crc(x->argument_at(0), this);
|
||||
@ -942,9 +941,9 @@ void LIRGenerator::do_update_CRC32(Intrinsic* x) {
|
||||
|
||||
LIR_Opr index = off.result();
|
||||
int offset = is_updateBytes ? arrayOopDesc::base_offset_in_bytes(T_BYTE) : 0;
|
||||
if(off.result()->is_constant()) {
|
||||
if (off.result()->is_constant()) {
|
||||
index = LIR_OprFact::illegalOpr;
|
||||
offset += off.result()->as_jint();
|
||||
offset += off.result()->as_jint();
|
||||
}
|
||||
LIR_Opr base_op = buf.result();
|
||||
|
||||
@ -994,7 +993,6 @@ void LIRGenerator::do_update_CRC32C(Intrinsic* x) {
|
||||
assert(UseCRC32CIntrinsics, "why are we here?");
|
||||
// Make all state_for calls early since they can emit code
|
||||
LIR_Opr result = rlock_result(x);
|
||||
int flags = 0;
|
||||
switch (x->id()) {
|
||||
case vmIntrinsics::_updateBytesCRC32C:
|
||||
case vmIntrinsics::_updateDirectByteBufferCRC32C: {
|
||||
|
||||
@ -466,8 +466,8 @@ address TemplateInterpreterGenerator::generate_return_entry_for(TosState state,
|
||||
__ sub(rscratch1, rscratch2, rscratch1, ext::uxtw, 3);
|
||||
__ andr(sp, rscratch1, -16);
|
||||
|
||||
__ check_and_handle_popframe(rthread);
|
||||
__ check_and_handle_earlyret(rthread);
|
||||
__ check_and_handle_popframe(rthread);
|
||||
__ check_and_handle_earlyret(rthread);
|
||||
|
||||
__ get_dispatch();
|
||||
__ dispatch_next(state, step);
|
||||
|
||||
@ -198,14 +198,14 @@ class LIR_Const: public LIR_OprPtr {
|
||||
class LIR_Opr {
|
||||
public:
|
||||
// value structure:
|
||||
// data opr-type opr-kind
|
||||
// +--------------+-------+-------+
|
||||
// [max...........|7 6 5 4|3 2 1 0]
|
||||
// ^
|
||||
// is_pointer bit
|
||||
// data other-non-data opr-type opr-kind
|
||||
// +-------------------+--------------+-------+-----+
|
||||
// [max...............................|6 5 4 3|2 1 0]
|
||||
// ^
|
||||
// is_pointer bit
|
||||
//
|
||||
// lowest bit cleared, means it is a structure pointer
|
||||
// we need 4 bits to represent types
|
||||
// we need 4 bits to represent types
|
||||
|
||||
private:
|
||||
friend class LIR_OprFact;
|
||||
|
||||
@ -1187,7 +1187,7 @@ void LIRGenerator::do_Return(Return* x) {
|
||||
set_no_result(x);
|
||||
}
|
||||
|
||||
// Examble: ref.get()
|
||||
// Example: ref.get()
|
||||
// Combination of LoadField and g1 pre-write barrier
|
||||
void LIRGenerator::do_Reference_get(Intrinsic* x) {
|
||||
|
||||
@ -1198,7 +1198,7 @@ void LIRGenerator::do_Reference_get(Intrinsic* x) {
|
||||
LIRItem reference(x->argument_at(0), this);
|
||||
reference.load_item();
|
||||
|
||||
// need to perform the null check on the reference objecy
|
||||
// need to perform the null check on the reference object
|
||||
CodeEmitInfo* info = NULL;
|
||||
if (x->needs_null_check()) {
|
||||
info = state_for(x);
|
||||
|
||||
@ -649,7 +649,6 @@ class LIRItem: public CompilationResourceObj {
|
||||
} else {
|
||||
return _result;
|
||||
}
|
||||
return _result;
|
||||
}
|
||||
|
||||
void set_result(LIR_Opr opr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user