src/cpu/x86/vm/c1_FrameMap_x86.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6930772 Sdiff src/cpu/x86/vm

src/cpu/x86/vm/c1_FrameMap_x86.cpp

Print this page


   1 /*
   2  * Copyright 1999-2008 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *


 292 //           stack0         stack0          0  <- VMReg
 293 //             |              | <registers> |
 294 //  ...........|..............|.............|
 295 //      0 1 2 3 x x 4 5 6 ... |                <- local indices
 296 //      ^           ^        sp()                 ( x x indicate link
 297 //      |           |                               and return addr)
 298 //  arguments   non-argument locals
 299 
 300 
 301 VMReg FrameMap::fpu_regname (int n) {
 302   // Return the OptoReg name for the fpu stack slot "n"
 303   // A spilled fpu stack slot comprises to two single-word OptoReg's.
 304   return as_FloatRegister(n)->as_VMReg();
 305 }
 306 
 307 LIR_Opr FrameMap::stack_pointer() {
 308   return FrameMap::rsp_opr;
 309 }
 310 
 311 







 312 bool FrameMap::validate_frame() {
 313   return true;
 314 }
   1 /*
   2  * Copyright 1999-2010 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *


 292 //           stack0         stack0          0  <- VMReg
 293 //             |              | <registers> |
 294 //  ...........|..............|.............|
 295 //      0 1 2 3 x x 4 5 6 ... |                <- local indices
 296 //      ^           ^        sp()                 ( x x indicate link
 297 //      |           |                               and return addr)
 298 //  arguments   non-argument locals
 299 
 300 
 301 VMReg FrameMap::fpu_regname (int n) {
 302   // Return the OptoReg name for the fpu stack slot "n"
 303   // A spilled fpu stack slot comprises to two single-word OptoReg's.
 304   return as_FloatRegister(n)->as_VMReg();
 305 }
 306 
 307 LIR_Opr FrameMap::stack_pointer() {
 308   return FrameMap::rsp_opr;
 309 }
 310 
 311 
 312 // JSR 292
 313 LIR_Opr FrameMap::method_handle_invoke_SP_save_opr() {
 314   assert(rbp == rbp_mh_SP_save, "must be same register");
 315   return rbp_opr;
 316 }
 317 
 318 
 319 bool FrameMap::validate_frame() {
 320   return true;
 321 }
src/cpu/x86/vm/c1_FrameMap_x86.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File