@@ -1080,22 +1080,20 @@ class virtual_call_Relocation : public CallRelocation {
1080
1080
// "cached_value" points to the first associated set-oop.
1081
1081
// The oop_limit helps find the last associated set-oop.
1082
1082
// (See comments at the top of this file.)
1083
- static RelocationHolder spec (address cached_value, jint method_index = 0 , bool trust_bytecode = true ) {
1084
- return RelocationHolder::construct<virtual_call_Relocation>(cached_value, method_index, trust_bytecode );
1083
+ static RelocationHolder spec (address cached_value, jint method_index = 0 ) {
1084
+ return RelocationHolder::construct<virtual_call_Relocation>(cached_value, method_index);
1085
1085
}
1086
1086
1087
1087
void copy_into (RelocationHolder& holder) const override ;
1088
1088
1089
1089
private:
1090
1090
address _cached_value; // location of set-value instruction
1091
1091
jint _method_index; // resolved method for a Java call
1092
- bool _trust_bytecode; // trust the bytecode of an underlying Java call
1093
1092
1094
- virtual_call_Relocation (address cached_value, int method_index, bool trust_bytecode )
1093
+ virtual_call_Relocation (address cached_value, int method_index)
1095
1094
: CallRelocation(relocInfo::virtual_call_type),
1096
1095
_cached_value (cached_value),
1097
- _method_index(method_index),
1098
- _trust_bytecode(trust_bytecode) {
1096
+ _method_index(method_index) {
1099
1097
assert (cached_value != nullptr , " first oop address must be specified" );
1100
1098
}
1101
1099
@@ -1107,7 +1105,6 @@ class virtual_call_Relocation : public CallRelocation {
1107
1105
1108
1106
int method_index () { return _method_index; }
1109
1107
Method* method_value ();
1110
- bool trust_bytecode () { return _trust_bytecode; }
1111
1108
1112
1109
// data is packed as scaled offsets in "2_ints" format: [f l] or [Ff Ll]
1113
1110
// oop_limit is set to 0 if the limit falls somewhere within the call.
@@ -1122,28 +1119,25 @@ class virtual_call_Relocation : public CallRelocation {
1122
1119
1123
1120
class opt_virtual_call_Relocation : public CallRelocation {
1124
1121
public:
1125
- static RelocationHolder spec (int method_index = 0 , bool trust_bytecode = true ) {
1126
- return RelocationHolder::construct<opt_virtual_call_Relocation>(method_index, trust_bytecode );
1122
+ static RelocationHolder spec (int method_index = 0 ) {
1123
+ return RelocationHolder::construct<opt_virtual_call_Relocation>(method_index);
1127
1124
}
1128
1125
1129
1126
void copy_into (RelocationHolder& holder) const override ;
1130
1127
1131
1128
private:
1132
1129
jint _method_index; // resolved method for a Java call
1133
- bool _trust_bytecode; // trust the bytecode of an underlying Java call
1134
1130
1135
- opt_virtual_call_Relocation (int method_index, bool trust_bytecode )
1131
+ opt_virtual_call_Relocation (int method_index)
1136
1132
: CallRelocation(relocInfo::opt_virtual_call_type),
1137
- _method_index (method_index),
1138
- _trust_bytecode(trust_bytecode) { }
1133
+ _method_index (method_index) { }
1139
1134
1140
1135
friend class RelocationHolder ;
1141
1136
opt_virtual_call_Relocation () : CallRelocation(relocInfo::opt_virtual_call_type) {}
1142
1137
1143
1138
public:
1144
1139
int method_index () { return _method_index; }
1145
1140
Method* method_value ();
1146
- bool trust_bytecode () { return _trust_bytecode; }
1147
1141
1148
1142
void pack_data_to (CodeSection* dest) override ;
1149
1143
void unpack_data () override ;
@@ -1157,28 +1151,25 @@ class opt_virtual_call_Relocation : public CallRelocation {
1157
1151
1158
1152
class static_call_Relocation : public CallRelocation {
1159
1153
public:
1160
- static RelocationHolder spec (int method_index = 0 , bool trust_bytecode = true ) {
1161
- return RelocationHolder::construct<static_call_Relocation>(method_index, trust_bytecode );
1154
+ static RelocationHolder spec (int method_index = 0 ) {
1155
+ return RelocationHolder::construct<static_call_Relocation>(method_index);
1162
1156
}
1163
1157
1164
1158
void copy_into (RelocationHolder& holder) const override ;
1165
1159
1166
1160
private:
1167
1161
jint _method_index; // resolved method for a Java call
1168
- bool _trust_bytecode; // trust the bytecode of an underlying Java call
1169
1162
1170
- static_call_Relocation (int method_index, bool trust_bytecode )
1163
+ static_call_Relocation (int method_index)
1171
1164
: CallRelocation(relocInfo::static_call_type),
1172
- _method_index (method_index),
1173
- _trust_bytecode(trust_bytecode) { }
1165
+ _method_index (method_index) { }
1174
1166
1175
1167
friend class RelocationHolder ;
1176
1168
static_call_Relocation () : CallRelocation(relocInfo::static_call_type) {}
1177
1169
1178
1170
public:
1179
1171
int method_index () { return _method_index; }
1180
1172
Method* method_value ();
1181
- bool trust_bytecode () { return _trust_bytecode; }
1182
1173
1183
1174
void pack_data_to (CodeSection* dest) override ;
1184
1175
void unpack_data () override ;
0 commit comments