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

src/cpu/x86/vm/assembler_x86.hpp

Print this page


   1 /*
   2  * Copyright 1997-2009 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  *


 118 REGISTER_DECLARATION(XMMRegister, j_farg3, xmm3);
 119 REGISTER_DECLARATION(XMMRegister, j_farg4, xmm4);
 120 REGISTER_DECLARATION(XMMRegister, j_farg5, xmm5);
 121 REGISTER_DECLARATION(XMMRegister, j_farg6, xmm6);
 122 REGISTER_DECLARATION(XMMRegister, j_farg7, xmm7);
 123 
 124 REGISTER_DECLARATION(Register, rscratch1, r10);  // volatile
 125 REGISTER_DECLARATION(Register, rscratch2, r11);  // volatile
 126 
 127 REGISTER_DECLARATION(Register, r12_heapbase, r12); // callee-saved
 128 REGISTER_DECLARATION(Register, r15_thread, r15); // callee-saved
 129 
 130 #else
 131 // rscratch1 will apear in 32bit code that is dead but of course must compile
 132 // Using noreg ensures if the dead code is incorrectly live and executed it
 133 // will cause an assertion failure
 134 #define rscratch1 noreg
 135 
 136 #endif // _LP64
 137 



 138 // Address is an abstraction used to represent a memory location
 139 // using any of the amd64 addressing modes with one object.
 140 //
 141 // Note: A register location is represented via a Register, not
 142 //       via an address for efficiency & simplicity reasons.
 143 
 144 class ArrayAddress;
 145 
 146 class Address VALUE_OBJ_CLASS_SPEC {
 147  public:
 148   enum ScaleFactor {
 149     no_scale = -1,
 150     times_1  =  0,
 151     times_2  =  1,
 152     times_4  =  2,
 153     times_8  =  3,
 154     times_ptr = LP64_ONLY(times_8) NOT_LP64(times_4)
 155   };
 156   static ScaleFactor times(int size) {
 157     assert(size >= 1 && size <= 8 && is_power_of_2(size), "bad scale size");


   1 /*
   2  * Copyright 1997-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  *


 118 REGISTER_DECLARATION(XMMRegister, j_farg3, xmm3);
 119 REGISTER_DECLARATION(XMMRegister, j_farg4, xmm4);
 120 REGISTER_DECLARATION(XMMRegister, j_farg5, xmm5);
 121 REGISTER_DECLARATION(XMMRegister, j_farg6, xmm6);
 122 REGISTER_DECLARATION(XMMRegister, j_farg7, xmm7);
 123 
 124 REGISTER_DECLARATION(Register, rscratch1, r10);  // volatile
 125 REGISTER_DECLARATION(Register, rscratch2, r11);  // volatile
 126 
 127 REGISTER_DECLARATION(Register, r12_heapbase, r12); // callee-saved
 128 REGISTER_DECLARATION(Register, r15_thread, r15); // callee-saved
 129 
 130 #else
 131 // rscratch1 will apear in 32bit code that is dead but of course must compile
 132 // Using noreg ensures if the dead code is incorrectly live and executed it
 133 // will cause an assertion failure
 134 #define rscratch1 noreg
 135 
 136 #endif // _LP64
 137 
 138 // JSR 292 fixed register usages:
 139 REGISTER_DECLARATION(Register, rbp_mh_SP_save, rbp);
 140 
 141 // Address is an abstraction used to represent a memory location
 142 // using any of the amd64 addressing modes with one object.
 143 //
 144 // Note: A register location is represented via a Register, not
 145 //       via an address for efficiency & simplicity reasons.
 146 
 147 class ArrayAddress;
 148 
 149 class Address VALUE_OBJ_CLASS_SPEC {
 150  public:
 151   enum ScaleFactor {
 152     no_scale = -1,
 153     times_1  =  0,
 154     times_2  =  1,
 155     times_4  =  2,
 156     times_8  =  3,
 157     times_ptr = LP64_ONLY(times_8) NOT_LP64(times_4)
 158   };
 159   static ScaleFactor times(int size) {
 160     assert(size >= 1 && size <= 8 && is_power_of_2(size), "bad scale size");


src/cpu/x86/vm/assembler_x86.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File