hotspot/src/cpu/sparc/vm/nativeInst_sparc.cpp

Print this page
rev 611 : Merge

@@ -1,10 +1,10 @@
 #ifdef USE_PRAGMA_IDENT_SRC
 #pragma ident "@(#)nativeInst_sparc.cpp 1.97 07/05/05 17:04:31 JVM"
 #endif
 /*
- * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -27,10 +27,14 @@
 
 # include "incls/_precompiled.incl"
 # include "incls/_nativeInst_sparc.cpp.incl"
 
 
+bool NativeInstruction::is_dtrace_trap() {
+  return !is_nop();
+}
+
 void NativeInstruction::set_data64_sethi(address instaddr, intptr_t x) {
   ResourceMark rm;
   CodeBuffer buf(instaddr, 10 * BytesPerInstWord );
   MacroAssembler* _masm = new MacroAssembler(&buf);
   Register destreg;