src/share/vm/runtime/vframe_hp.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 





  25 class compiledVFrame: public javaVFrame {
  26  public:
  27   // JVM state
  28   methodOop                    method()             const;
  29   int                          bci()                const;
  30   bool                         should_reexecute()   const;
  31   StackValueCollection*        locals()             const;
  32   StackValueCollection*        expressions()        const;
  33   GrowableArray<MonitorInfo*>* monitors()           const;
  34 
  35   void set_locals(StackValueCollection* values) const;
  36 
  37   // Virtuals defined in vframe
  38   bool is_compiled_frame() const { return true; }
  39   vframe* sender() const;
  40   bool is_top() const;
  41 
  42   // Casting
  43   static compiledVFrame* cast(vframe* vf) {
  44     assert(vf == NULL || vf->is_compiled_frame(), "must be compiled frame");


 117 class jvmtiDeferredLocalVariable : public CHeapObj {
 118   public:
 119 
 120     jvmtiDeferredLocalVariable(int index, BasicType type, jvalue value);
 121 
 122     BasicType type(void)                   { return _type; }
 123     int index(void)                        { return _index; }
 124     jvalue value(void)                     { return _value; }
 125     // Only mutator is for value as only it can change
 126     void set_value(jvalue value)           { _value = value; }
 127     // For gc
 128     oop* oop_addr(void)                    { return (oop*) &_value.l; }
 129 
 130   private:
 131 
 132     BasicType         _type;
 133     jvalue            _value;
 134     int               _index;
 135 
 136 };


   1 /*
   2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_VFRAME_HP_HPP
  26 #define SHARE_VM_RUNTIME_VFRAME_HP_HPP
  27 
  28 #include "runtime/vframe.hpp"
  29 
  30 class compiledVFrame: public javaVFrame {
  31  public:
  32   // JVM state
  33   methodOop                    method()             const;
  34   int                          bci()                const;
  35   bool                         should_reexecute()   const;
  36   StackValueCollection*        locals()             const;
  37   StackValueCollection*        expressions()        const;
  38   GrowableArray<MonitorInfo*>* monitors()           const;
  39 
  40   void set_locals(StackValueCollection* values) const;
  41 
  42   // Virtuals defined in vframe
  43   bool is_compiled_frame() const { return true; }
  44   vframe* sender() const;
  45   bool is_top() const;
  46 
  47   // Casting
  48   static compiledVFrame* cast(vframe* vf) {
  49     assert(vf == NULL || vf->is_compiled_frame(), "must be compiled frame");


 122 class jvmtiDeferredLocalVariable : public CHeapObj {
 123   public:
 124 
 125     jvmtiDeferredLocalVariable(int index, BasicType type, jvalue value);
 126 
 127     BasicType type(void)                   { return _type; }
 128     int index(void)                        { return _index; }
 129     jvalue value(void)                     { return _value; }
 130     // Only mutator is for value as only it can change
 131     void set_value(jvalue value)           { _value = value; }
 132     // For gc
 133     oop* oop_addr(void)                    { return (oop*) &_value.l; }
 134 
 135   private:
 136 
 137     BasicType         _type;
 138     jvalue            _value;
 139     int               _index;
 140 
 141 };
 142 
 143 #endif // SHARE_VM_RUNTIME_VFRAME_HP_HPP