view hotspot/src/share/vm/compiler/disassemblerEnv.hpp @ 1:c1e1428eff7c

The preliminary porting to MIPS architecture. With this commit, the interpreter can pass 140/141 regression tests, 8/8 SPECjvm98 tests and 31/37 SPECjvm2008 tests. The compiler can pass 136/141 regression tests, but it can not run the benchmark of SPECjvm98 and SPECjvm2008.
author LIU Qi <liuqi82@gmail.com>
date Thu, 30 Sep 2010 13:48:16 +0800
parents
children
line wrap: on
line source

#ifdef USE_PRAGMA_IDENT_HDR
#pragma ident "@(#)disassemblerEnv.hpp	1.14 05/11/18 15:21:38 JVM"
#endif
/*
 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL.  Use is subject to license terms.
 */

// Call-back interface for external disassembler
class DisassemblerEnv {
 public:
  // printing
  virtual void print_label(intptr_t value)   = 0;
  virtual void print_raw(char* str)     = 0;
  virtual void print(char* format, ...) = 0;
  // helpers
  virtual char* string_for_offset(intptr_t value) = 0;
  virtual char* string_for_constant(unsigned char* pc, intptr_t value, int is_decimal) = 0;
};