comparison src/share/vm/oops/methodData.hpp @ 9088:89e4d67fdd2a

Merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 12 Apr 2013 14:05:42 +0200
parents d343737786fe b84fd7d73702
children c76b43ed5089
comparison
equal deleted inserted replaced
9037:b008f40b67d0 9088:89e4d67fdd2a
1302 1302
1303 // Determine if a given bytecode can have profile information. 1303 // Determine if a given bytecode can have profile information.
1304 static bool bytecode_has_profile(Bytecodes::Code code) { 1304 static bool bytecode_has_profile(Bytecodes::Code code) {
1305 return bytecode_cell_count(code) != no_profile_data; 1305 return bytecode_cell_count(code) != no_profile_data;
1306 } 1306 }
1307 1307
1308 // reset into original state
1309 void init();
1310
1308 // My size 1311 // My size
1309 int size_in_bytes() const { return _size; } 1312 int size_in_bytes() const { return _size; }
1310 int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); } 1313 int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); }
1311 #if INCLUDE_SERVICES 1314 #if INCLUDE_SERVICES
1312 void collect_statistics(KlassSizeStats *sz) const; 1315 void collect_statistics(KlassSizeStats *sz) const;
1382 intx eflags() { return _eflags; } 1385 intx eflags() { return _eflags; }
1383 intx arg_local() { return _arg_local; } 1386 intx arg_local() { return _arg_local; }
1384 intx arg_stack() { return _arg_stack; } 1387 intx arg_stack() { return _arg_stack; }
1385 intx arg_returned() { return _arg_returned; } 1388 intx arg_returned() { return _arg_returned; }
1386 uint arg_modified(int a) { ArgInfoData *aid = arg_info(); 1389 uint arg_modified(int a) { ArgInfoData *aid = arg_info();
1390 assert(aid != NULL, "arg_info must be not null");
1387 assert(a >= 0 && a < aid->number_of_args(), "valid argument number"); 1391 assert(a >= 0 && a < aid->number_of_args(), "valid argument number");
1388 return aid->arg_modified(a); } 1392 return aid->arg_modified(a); }
1389 1393
1390 void set_eflags(intx v) { _eflags = v; } 1394 void set_eflags(intx v) { _eflags = v; }
1391 void set_arg_local(intx v) { _arg_local = v; } 1395 void set_arg_local(intx v) { _arg_local = v; }
1392 void set_arg_stack(intx v) { _arg_stack = v; } 1396 void set_arg_stack(intx v) { _arg_stack = v; }
1393 void set_arg_returned(intx v) { _arg_returned = v; } 1397 void set_arg_returned(intx v) { _arg_returned = v; }
1394 void set_arg_modified(int a, uint v) { ArgInfoData *aid = arg_info(); 1398 void set_arg_modified(int a, uint v) { ArgInfoData *aid = arg_info();
1399 assert(aid != NULL, "arg_info must be not null");
1395 assert(a >= 0 && a < aid->number_of_args(), "valid argument number"); 1400 assert(a >= 0 && a < aid->number_of_args(), "valid argument number");
1396
1397 aid->set_arg_modified(a, v); } 1401 aid->set_arg_modified(a, v); }
1398 1402
1399 void clear_escape_info() { _eflags = _arg_local = _arg_stack = _arg_returned = 0; } 1403 void clear_escape_info() { _eflags = _arg_local = _arg_stack = _arg_returned = 0; }
1400 1404
1401 // Location and size of data area 1405 // Location and size of data area