|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved.
|
4 | 4 | * Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
|
5 | 5 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
@@ -714,14 +714,14 @@ void TemplateInterpreterGenerator::lock_method() {
|
714 | 714 | const int entry_size = frame::interpreter_frame_monitor_size_in_bytes();
|
715 | 715 |
|
716 | 716 | #ifdef ASSERT
|
717 |
| - __ load_unsigned_short(x10, access_flags); |
| 717 | + __ lwu(x10, access_flags); |
718 | 718 | __ verify_access_flags(x10, JVM_ACC_SYNCHRONIZED, "method doesn't need synchronization", false);
|
719 | 719 | #endif // ASSERT
|
720 | 720 |
|
721 | 721 | // get synchronization object
|
722 | 722 | {
|
723 | 723 | Label done;
|
724 |
| - __ load_unsigned_short(x10, access_flags); |
| 724 | + __ lwu(x10, access_flags); |
725 | 725 | __ andi(t0, x10, JVM_ACC_STATIC);
|
726 | 726 | // get receiver (assume this is frequent case)
|
727 | 727 | __ ld(x10, Address(xlocals, Interpreter::local_offset_in_bytes(0)));
|
@@ -1028,7 +1028,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
|
1028 | 1028 |
|
1029 | 1029 | // make sure method is native & not abstract
|
1030 | 1030 | #ifdef ASSERT
|
1031 |
| - __ load_unsigned_short(x10, access_flags); |
| 1031 | + __ lwu(x10, access_flags); |
1032 | 1032 | __ verify_access_flags(x10, JVM_ACC_NATIVE, "tried to execute non-native method as native", false);
|
1033 | 1033 | __ verify_access_flags(x10, JVM_ACC_ABSTRACT, "tried to execute abstract method in interpreter");
|
1034 | 1034 | #endif
|
@@ -1066,7 +1066,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
|
1066 | 1066 | } else {
|
1067 | 1067 | // no synchronization necessary
|
1068 | 1068 | #ifdef ASSERT
|
1069 |
| - __ load_unsigned_short(x10, access_flags); |
| 1069 | + __ lwu(x10, access_flags); |
1070 | 1070 | __ verify_access_flags(x10, JVM_ACC_SYNCHRONIZED, "method needs synchronization");
|
1071 | 1071 | #endif
|
1072 | 1072 | }
|
@@ -1130,7 +1130,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
|
1130 | 1130 | // pass mirror handle if static call
|
1131 | 1131 | {
|
1132 | 1132 | Label L;
|
1133 |
| - __ load_unsigned_short(t, Address(xmethod, Method::access_flags_offset())); |
| 1133 | + __ lwu(t, Address(xmethod, Method::access_flags_offset())); |
1134 | 1134 | __ test_bit(t0, t, exact_log2(JVM_ACC_STATIC));
|
1135 | 1135 | __ beqz(t0, L);
|
1136 | 1136 | // get mirror
|
@@ -1346,7 +1346,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
|
1346 | 1346 | // do unlocking if necessary
|
1347 | 1347 | {
|
1348 | 1348 | Label L;
|
1349 |
| - __ load_unsigned_short(t, Address(xmethod, Method::access_flags_offset())); |
| 1349 | + __ lwu(t, Address(xmethod, Method::access_flags_offset())); |
1350 | 1350 | __ test_bit(t0, t, exact_log2(JVM_ACC_SYNCHRONIZED));
|
1351 | 1351 | __ beqz(t0, L);
|
1352 | 1352 | // the code below should be shared with interpreter macro
|
@@ -1472,7 +1472,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
|
1472 | 1472 |
|
1473 | 1473 | // make sure method is not native & not abstract
|
1474 | 1474 | #ifdef ASSERT
|
1475 |
| - __ load_unsigned_short(x10, access_flags); |
| 1475 | + __ lwu(x10, access_flags); |
1476 | 1476 | __ verify_access_flags(x10, JVM_ACC_NATIVE, "tried to execute native method as non-native");
|
1477 | 1477 | __ verify_access_flags(x10, JVM_ACC_ABSTRACT, "tried to execute abstract method in interpreter");
|
1478 | 1478 | #endif
|
@@ -1519,7 +1519,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
|
1519 | 1519 | } else {
|
1520 | 1520 | // no synchronization necessary
|
1521 | 1521 | #ifdef ASSERT
|
1522 |
| - __ load_unsigned_short(x10, access_flags); |
| 1522 | + __ lwu(x10, access_flags); |
1523 | 1523 | __ verify_access_flags(x10, JVM_ACC_SYNCHRONIZED, "method needs synchronization");
|
1524 | 1524 | #endif
|
1525 | 1525 | }
|
|
0 commit comments