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

Print this page
rev 4938 : 8024648: 8016131 & new build (7141426) break Zero port
Summary: Fix breakages in Zero port caused by 7141426 and 8016131.
Reviewed-by: amurillo, dholmes
   1 /*
   2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2007, 2013, 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  *


 115 inline int frame::interpreter_frame_monitor_size() {
 116   return BasicObjectLock::size();
 117 }
 118 
 119 inline intptr_t* frame::interpreter_frame_expression_stack() const {
 120   intptr_t* monitor_end = (intptr_t*) interpreter_frame_monitor_end();
 121   return monitor_end - 1;
 122 }
 123 
 124 inline jint frame::interpreter_frame_expression_stack_direction() {
 125   return -1;
 126 }
 127 
 128 // Return a unique id for this frame. The id must have a value where
 129 // we can distinguish identity and younger/older relationship. NULL
 130 // represents an invalid (incomparable) frame.
 131 inline intptr_t* frame::id() const {
 132   return fp();
 133 }
 134 
 135 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const {
 136   return zero_entryframe()->call_wrapper();
 137 }
 138 
 139 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
 140   ShouldNotCallThis();
 141 }
 142 
 143 inline oop frame::saved_oop_result(RegisterMap* map) const {
 144   ShouldNotCallThis();
 145 }
 146 
 147 inline bool frame::is_older(intptr_t* id) const {
 148   ShouldNotCallThis();
 149 }
 150 
 151 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
 152   ShouldNotCallThis();
 153 }
 154 
 155 inline intptr_t* frame::unextended_sp() const {
   1 /*
   2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2013 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  *


 115 inline int frame::interpreter_frame_monitor_size() {
 116   return BasicObjectLock::size();
 117 }
 118 
 119 inline intptr_t* frame::interpreter_frame_expression_stack() const {
 120   intptr_t* monitor_end = (intptr_t*) interpreter_frame_monitor_end();
 121   return monitor_end - 1;
 122 }
 123 
 124 inline jint frame::interpreter_frame_expression_stack_direction() {
 125   return -1;
 126 }
 127 
 128 // Return a unique id for this frame. The id must have a value where
 129 // we can distinguish identity and younger/older relationship. NULL
 130 // represents an invalid (incomparable) frame.
 131 inline intptr_t* frame::id() const {
 132   return fp();
 133 }
 134 
 135 inline JavaCallWrapper** frame::entry_frame_call_wrapper_addr() const {
 136   return zero_entryframe()->call_wrapper();
 137 }
 138 
 139 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
 140   ShouldNotCallThis();
 141 }
 142 
 143 inline oop frame::saved_oop_result(RegisterMap* map) const {
 144   ShouldNotCallThis();
 145 }
 146 
 147 inline bool frame::is_older(intptr_t* id) const {
 148   ShouldNotCallThis();
 149 }
 150 
 151 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
 152   ShouldNotCallThis();
 153 }
 154 
 155 inline intptr_t* frame::unextended_sp() const {