1 /* |
1 /* |
2 * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
502 return true; |
502 return true; |
503 } |
503 } |
504 |
504 |
505 void ConstantPoolCacheEntry::print(outputStream* st, int index) const { |
505 void ConstantPoolCacheEntry::print(outputStream* st, int index) const { |
506 // print separator |
506 // print separator |
507 if (index == 0) tty->print_cr(" -------------"); |
507 if (index == 0) st->print_cr(" -------------"); |
508 // print entry |
508 // print entry |
509 tty->print("%3d ("PTR_FORMAT") ", index, (intptr_t)this); |
509 st->print("%3d ("PTR_FORMAT") ", index, (intptr_t)this); |
510 if (is_secondary_entry()) |
510 if (is_secondary_entry()) |
511 tty->print_cr("[%5d|secondary]", main_entry_index()); |
511 st->print_cr("[%5d|secondary]", main_entry_index()); |
512 else |
512 else |
513 tty->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), constant_pool_index()); |
513 st->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), constant_pool_index()); |
514 tty->print_cr(" [ "PTR_FORMAT"]", (intptr_t)(oop)_f1); |
514 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)(oop)_f1); |
515 tty->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_f2); |
515 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_f2); |
516 tty->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_flags); |
516 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_flags); |
517 tty->print_cr(" -------------"); |
517 st->print_cr(" -------------"); |
518 } |
518 } |
519 |
519 |
520 void ConstantPoolCacheEntry::verify(outputStream* st) const { |
520 void ConstantPoolCacheEntry::verify(outputStream* st) const { |
521 // not implemented yet |
521 // not implemented yet |
522 } |
522 } |