equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2010, 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. |
421 if (!load_library()) return; |
421 if (!load_library()) return; |
422 decode_env env(nm, st); |
422 decode_env env(nm, st); |
423 env.output()->print_cr("Decoding compiled method " INTPTR_FORMAT ":", nm); |
423 env.output()->print_cr("Decoding compiled method " INTPTR_FORMAT ":", nm); |
424 env.output()->print_cr("Code:"); |
424 env.output()->print_cr("Code:"); |
425 |
425 |
|
426 #ifdef SHARK |
|
427 SharkEntry* entry = (SharkEntry *) nm->instructions_begin(); |
|
428 unsigned char* p = entry->code_start(); |
|
429 unsigned char* end = entry->code_limit(); |
|
430 #else |
426 unsigned char* p = nm->instructions_begin(); |
431 unsigned char* p = nm->instructions_begin(); |
427 unsigned char* end = nm->instructions_end(); |
432 unsigned char* end = nm->instructions_end(); |
|
433 #endif // SHARK |
428 |
434 |
429 // If there has been profiling, print the buckets. |
435 // If there has been profiling, print the buckets. |
430 if (FlatProfiler::bucket_start_for(p) != NULL) { |
436 if (FlatProfiler::bucket_start_for(p) != NULL) { |
431 unsigned char* p1 = p; |
437 unsigned char* p1 = p; |
432 int total_bucket_count = 0; |
438 int total_bucket_count = 0; |