< prev index next >

src/share/vm/c1/c1_MacroAssembler.hpp

Print this page
rev 11647 : 8161258: Simplify including platform files.
Summary: Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files.
Reviewed-by: dholmes, coleenp, kbarrett
   1 /*
   2  * Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_C1_C1_MACROASSEMBLER_HPP
  26 #define SHARE_VM_C1_C1_MACROASSEMBLER_HPP
  27 
  28 #include "asm/macroAssembler.hpp"
  29 #include "asm/macroAssembler.inline.hpp"

  30 
  31 class CodeEmitInfo;
  32 
  33 class C1_MacroAssembler: public MacroAssembler {
  34  public:
  35   // creation
  36   C1_MacroAssembler(CodeBuffer* code) : MacroAssembler(code) { pd_init(); }
  37 
  38   //----------------------------------------------------
  39   void explicit_null_check(Register base);
  40 
  41   void inline_cache_check(Register receiver, Register iCache);
  42   void build_frame(int frame_size_in_bytes, int bang_size_in_bytes);
  43   void remove_frame(int frame_size_in_bytes);
  44 
  45   void unverified_entry(Register receiver, Register ic_klass);
  46   void verified_entry();
  47   void verify_stack_oop(int offset) PRODUCT_RETURN;
  48   void verify_not_null_oop(Register r)  PRODUCT_RETURN;
  49 
  50 #ifdef TARGET_ARCH_x86
  51 # include "c1_MacroAssembler_x86.hpp"
  52 #endif
  53 #ifdef TARGET_ARCH_sparc
  54 # include "c1_MacroAssembler_sparc.hpp"
  55 #endif
  56 #ifdef TARGET_ARCH_arm
  57 # include "c1_MacroAssembler_arm.hpp"
  58 #endif
  59 #ifdef TARGET_ARCH_ppc
  60 # include "c1_MacroAssembler_ppc.hpp"
  61 #endif
  62 #ifdef TARGET_ARCH_aarch64
  63 # include "c1_MacroAssembler_aarch64.hpp"
  64 #endif
  65 
  66 };
  67 
  68 
  69 
  70 // A StubAssembler is a MacroAssembler w/ extra functionality for runtime
  71 // stubs. Currently it 'knows' some stub info. Eventually, the information
  72 // may be set automatically or can be asserted when using specialised
  73 // StubAssembler functions.
  74 
  75 class StubAssembler: public C1_MacroAssembler {
  76  private:
  77   const char* _name;
  78   bool        _must_gc_arguments;
  79   int         _frame_size;
  80   int         _num_rt_args;
  81   int         _stub_id;
  82 
  83  public:
  84   // creation


   1 /*
   2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_C1_C1_MACROASSEMBLER_HPP
  26 #define SHARE_VM_C1_C1_MACROASSEMBLER_HPP
  27 
  28 #include "asm/macroAssembler.hpp"
  29 #include "asm/macroAssembler.inline.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 class CodeEmitInfo;
  33 
  34 class C1_MacroAssembler: public MacroAssembler {
  35  public:
  36   // creation
  37   C1_MacroAssembler(CodeBuffer* code) : MacroAssembler(code) { pd_init(); }
  38 
  39   //----------------------------------------------------
  40   void explicit_null_check(Register base);
  41 
  42   void inline_cache_check(Register receiver, Register iCache);
  43   void build_frame(int frame_size_in_bytes, int bang_size_in_bytes);
  44   void remove_frame(int frame_size_in_bytes);
  45 
  46   void unverified_entry(Register receiver, Register ic_klass);
  47   void verified_entry();
  48   void verify_stack_oop(int offset) PRODUCT_RETURN;
  49   void verify_not_null_oop(Register r)  PRODUCT_RETURN;
  50 
  51 #include CPU_HEADER(c1_MacroAssembler)














  52 
  53 };
  54 
  55 
  56 
  57 // A StubAssembler is a MacroAssembler w/ extra functionality for runtime
  58 // stubs. Currently it 'knows' some stub info. Eventually, the information
  59 // may be set automatically or can be asserted when using specialised
  60 // StubAssembler functions.
  61 
  62 class StubAssembler: public C1_MacroAssembler {
  63  private:
  64   const char* _name;
  65   bool        _must_gc_arguments;
  66   int         _frame_size;
  67   int         _num_rt_args;
  68   int         _stub_id;
  69 
  70  public:
  71   // creation


< prev index next >