Mercurial > hg > truffle
comparison src/share/vm/compiler/disassembler.cpp @ 1692:d2ede61b7a12
6976186: integrate Shark HotSpot changes
Summary: Shark is a JIT compiler for Zero that uses the LLVM compiler infrastructure.
Reviewed-by: kvn, twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Wed, 11 Aug 2010 05:51:21 -0700 |
parents | 126ea7725993 |
children | 3e8fbc61cee8 |
comparison
equal
deleted
inserted
replaced
1691:4a665be40fd3 | 1692:d2ede61b7a12 |
---|---|
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; |