src/cpu/zero/vm/frame_zero.inline.hpp

Print this page


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



  26 // Constructors
  27 
  28 inline frame::frame() {
  29   _zeroframe = NULL;
  30   _sp = NULL;
  31   _pc = NULL;
  32   _cb = NULL;
  33   _deopt_state = unknown;
  34 }
  35 
  36 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
  37   _zeroframe = zf;
  38   _sp = sp;
  39   switch (zeroframe()->type()) {
  40   case ZeroFrame::ENTRY_FRAME:
  41     _pc = StubRoutines::call_stub_return_pc();
  42     _cb = NULL;
  43     break;
  44 
  45   case ZeroFrame::INTERPRETER_FRAME:


 132 }
 133 
 134 inline oop frame::saved_oop_result(RegisterMap* map) const {
 135   ShouldNotCallThis();
 136 }
 137 
 138 inline bool frame::is_older(intptr_t* id) const {
 139   ShouldNotCallThis();
 140 }
 141 
 142 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
 143   ShouldNotCallThis();
 144 }
 145 
 146 inline intptr_t* frame::unextended_sp() const {
 147   if (zeroframe()->is_shark_frame())
 148     return zero_sharkframe()->unextended_sp();
 149   else
 150     return (intptr_t *) -1;
 151 }


   1 /*
   2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #ifndef CPU_ZERO_VM_FRAME_ZERO_INLINE_HPP
  27 #define CPU_ZERO_VM_FRAME_ZERO_INLINE_HPP
  28 
  29 // Constructors
  30 
  31 inline frame::frame() {
  32   _zeroframe = NULL;
  33   _sp = NULL;
  34   _pc = NULL;
  35   _cb = NULL;
  36   _deopt_state = unknown;
  37 }
  38 
  39 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
  40   _zeroframe = zf;
  41   _sp = sp;
  42   switch (zeroframe()->type()) {
  43   case ZeroFrame::ENTRY_FRAME:
  44     _pc = StubRoutines::call_stub_return_pc();
  45     _cb = NULL;
  46     break;
  47 
  48   case ZeroFrame::INTERPRETER_FRAME:


 135 }
 136 
 137 inline oop frame::saved_oop_result(RegisterMap* map) const {
 138   ShouldNotCallThis();
 139 }
 140 
 141 inline bool frame::is_older(intptr_t* id) const {
 142   ShouldNotCallThis();
 143 }
 144 
 145 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
 146   ShouldNotCallThis();
 147 }
 148 
 149 inline intptr_t* frame::unextended_sp() const {
 150   if (zeroframe()->is_shark_frame())
 151     return zero_sharkframe()->unextended_sp();
 152   else
 153     return (intptr_t *) -1;
 154 }
 155 
 156 #endif // CPU_ZERO_VM_FRAME_ZERO_INLINE_HPP