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

Print this page
@  rev 6808 : JI-9039953: zero variant fails to build.
|


   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 address  frame::sender_pc()           const { ShouldNotCallThis(); return NULL; }
  40 
  41 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
  42   _zeroframe = zf;
  43   _sp = sp;
  44   switch (zeroframe()->type()) {
  45   case ZeroFrame::ENTRY_FRAME:
  46     _pc = StubRoutines::call_stub_return_pc();
  47     _cb = NULL;
  48     _deopt_state = not_deoptimized;




   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 #include "code/codeCache.hpp"
  30 
  31 // Constructors
  32 
  33 inline frame::frame() {
  34   _zeroframe = NULL;
  35   _sp = NULL;
  36   _pc = NULL;
  37   _cb = NULL;
  38   _deopt_state = unknown;
  39 }
  40 
  41 inline address  frame::sender_pc()           const { ShouldNotCallThis(); return NULL; }
  42 
  43 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
  44   _zeroframe = zf;
  45   _sp = sp;
  46   switch (zeroframe()->type()) {
  47   case ZeroFrame::ENTRY_FRAME:
  48     _pc = StubRoutines::call_stub_return_pc();
  49     _cb = NULL;
  50     _deopt_state = not_deoptimized;