< prev index next >

src/hotspot/cpu/ppc/methodHandles_ppc.cpp

Print this page




   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 #include "precompiled.hpp"

  27 #include "asm/macroAssembler.inline.hpp"
  28 #include "classfile/javaClasses.inline.hpp"
  29 #include "interpreter/interpreter.hpp"
  30 #include "memory/allocation.inline.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "prims/jvm.h"
  33 #include "prims/methodHandles.hpp"
  34 
  35 #define __ _masm->
  36 
  37 #ifdef PRODUCT
  38 #define BLOCK_COMMENT(str) // nothing
  39 #else
  40 #define BLOCK_COMMENT(str) __ block_comment(str)
  41 #endif
  42 
  43 #define BIND(label) bind(label); BLOCK_COMMENT(#label ":")
  44 
  45 // Workaround for C++ overloading nastiness on '0' for RegisterOrConstant.
  46 inline static RegisterOrConstant constant(int value) {
  47   return RegisterOrConstant(value);
  48 }
  49 
  50 void MethodHandles::load_klass_from_Class(MacroAssembler* _masm, Register klass_reg,
  51                                           Register temp_reg, Register temp2_reg) {
  52   if (VerifyMethodHandles) {




   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 #include "precompiled.hpp"
  27 #include "jvm.h"
  28 #include "asm/macroAssembler.inline.hpp"
  29 #include "classfile/javaClasses.inline.hpp"
  30 #include "interpreter/interpreter.hpp"
  31 #include "memory/allocation.inline.hpp"
  32 #include "memory/resourceArea.hpp"

  33 #include "prims/methodHandles.hpp"
  34 
  35 #define __ _masm->
  36 
  37 #ifdef PRODUCT
  38 #define BLOCK_COMMENT(str) // nothing
  39 #else
  40 #define BLOCK_COMMENT(str) __ block_comment(str)
  41 #endif
  42 
  43 #define BIND(label) bind(label); BLOCK_COMMENT(#label ":")
  44 
  45 // Workaround for C++ overloading nastiness on '0' for RegisterOrConstant.
  46 inline static RegisterOrConstant constant(int value) {
  47   return RegisterOrConstant(value);
  48 }
  49 
  50 void MethodHandles::load_klass_from_Class(MacroAssembler* _masm, Register klass_reg,
  51                                           Register temp_reg, Register temp2_reg) {
  52   if (VerifyMethodHandles) {


< prev index next >