comparison src/share/vm/code/relocInfo.hpp @ 13515:fa5180b3c18e

renamed pollingPageDistance enum to pollingForm
author Doug Simon <doug.simon@oracle.com>
date Mon, 06 Jan 2014 20:43:31 +0100
parents 8085ce95b6f5
children d49f00604347
comparison
equal deleted inserted replaced
13514:0fbee3eb71f0 13515:fa5180b3c18e
212 // 212 //
213 // relocInfo::poll_[return_]type -- a safepoint poll 213 // relocInfo::poll_[return_]type -- a safepoint poll
214 // Value: none 214 // Value: none
215 // Instruction types: memory load or test 215 // Instruction types: memory load or test
216 // Data: [] the associated set-oops are adjacent to the call 216 // Data: [] the associated set-oops are adjacent to the call
217 // [n] n is a poll_Relocation::pollingPageDistance value 217 // [n] n is a poll_Relocation::pollingForm value
218 // 218 //
219 // For example: 219 // For example:
220 // 220 //
221 // INSTRUCTIONS RELOC: TYPE PREFIX DATA 221 // INSTRUCTIONS RELOC: TYPE PREFIX DATA
222 // ------------ ---- ----------- 222 // ------------ ---- -----------
1277 section_word_Relocation() { } 1277 section_word_Relocation() { }
1278 }; 1278 };
1279 1279
1280 class poll_Relocation : public Relocation { 1280 class poll_Relocation : public Relocation {
1281 public: 1281 public:
1282 enum pollingPageDistance { 1282 enum pollingForm {
1283 near, 1283 pc_relative,
1284 far 1284 absolute
1285 }; 1285 };
1286 relocInfo::relocType type() { return relocInfo::poll_type; } 1286 relocInfo::relocType type() { return relocInfo::poll_type; }
1287 bool is_data() { return true; } 1287 bool is_data() { return true; }
1288 void fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest); 1288 void fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest);
1289 private: 1289 private:
1290 pollingPageDistance _distance; 1290 pollingForm _form;
1291 public: 1291 public:
1292 1292
1293 static RelocationHolder spec(poll_Relocation::pollingPageDistance distance) { 1293 static RelocationHolder spec(poll_Relocation::pollingForm form) {
1294 RelocationHolder rh = newHolder(); 1294 RelocationHolder rh = newHolder();
1295 new(rh) poll_Relocation(distance); 1295 new(rh) poll_Relocation(form);
1296 return rh; 1296 return rh;
1297 } 1297 }
1298 1298
1299 poll_Relocation(poll_Relocation::pollingPageDistance distance) { 1299 poll_Relocation(poll_Relocation::pollingForm form) {
1300 _distance = distance; 1300 _form = form;
1301 } 1301 }
1302 poll_Relocation::pollingPageDistance distance() { return _distance; } 1302 poll_Relocation::pollingForm form() { return _form; }
1303 1303
1304 void pack_data_to(CodeSection* dest); 1304 void pack_data_to(CodeSection* dest);
1305 void unpack_data(); 1305 void unpack_data();
1306 1306
1307 protected: 1307 protected:
1311 1311
1312 class poll_return_Relocation : public poll_Relocation { 1312 class poll_return_Relocation : public poll_Relocation {
1313 public: 1313 public:
1314 relocInfo::relocType type() { return relocInfo::poll_return_type; } 1314 relocInfo::relocType type() { return relocInfo::poll_return_type; }
1315 1315
1316 static RelocationHolder spec(poll_Relocation::pollingPageDistance distance) { 1316 static RelocationHolder spec(poll_Relocation::pollingForm distance) {
1317 RelocationHolder rh = newHolder(); 1317 RelocationHolder rh = newHolder();
1318 new(rh) poll_return_Relocation(distance); 1318 new(rh) poll_return_Relocation(distance);
1319 return rh; 1319 return rh;
1320 } 1320 }
1321 1321
1322 poll_return_Relocation(poll_Relocation::pollingPageDistance distance) : poll_Relocation(distance) { } 1322 poll_return_Relocation(poll_Relocation::pollingForm distance) : poll_Relocation(distance) { }
1323 1323
1324 private: 1324 private:
1325 friend class RelocIterator; 1325 friend class RelocIterator;
1326 poll_return_Relocation() { } 1326 poll_return_Relocation() { }
1327 }; 1327 };