< prev index next >

src/hotspot/share/c1/c1_MacroAssembler.hpp

Print this page

 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_C1_C1_MACROASSEMBLER_HPP
 26 #define SHARE_C1_C1_MACROASSEMBLER_HPP
 27 
 28 #include "asm/macroAssembler.hpp"
 29 #include "utilities/macros.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 verified_entry(bool breakAtEntry);

 46   void verify_stack_oop(int offset) PRODUCT_RETURN;
 47   void verify_not_null_oop(Register r)  PRODUCT_RETURN;
 48 
 49 #include CPU_HEADER(c1_MacroAssembler)
 50 
 51 };
 52 
 53 
 54 
 55 // A StubAssembler is a MacroAssembler w/ extra functionality for runtime
 56 // stubs. Currently it 'knows' some stub info. Eventually, the information
 57 // may be set automatically or can be asserted when using specialised
 58 // StubAssembler functions.
 59 
 60 class StubAssembler: public C1_MacroAssembler {
 61  private:
 62   const char* _name;
 63   bool        _must_gc_arguments;
 64   int         _frame_size;
 65   int         _num_rt_args;

 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_C1_C1_MACROASSEMBLER_HPP
 26 #define SHARE_C1_C1_MACROASSEMBLER_HPP
 27 
 28 #include "asm/macroAssembler.hpp"
 29 #include "utilities/macros.hpp"
 30 
 31 class CodeEmitInfo;
 32 class CompiledEntrySignature;
 33 class C1_MacroAssembler: public MacroAssembler {
 34  private:
 35   int scalarized_entry(const CompiledEntrySignature* ces, int frame_size_in_bytes, int bang_size_in_bytes, int sp_offset_for_orig_pc, Label& verified_inline_entry_label, bool is_inline_ro_entry);
 36   void build_frame_helper(int frame_size_in_bytes, int sp_offset_for_orig_pc, int sp_inc, bool reset_orig_pc, bool needs_stack_repair);
 37  public:
 38   // creation
 39   C1_MacroAssembler(CodeBuffer* code) : MacroAssembler(code) { pd_init(); }
 40 
 41   //----------------------------------------------------
 42   void explicit_null_check(Register base);
 43 
 44   void inline_cache_check(Register receiver, Register iCache);
 45   void build_frame(int frame_size_in_bytes, int bang_size_in_bytes, int sp_offset_for_orig_pc = 0, bool needs_stack_repair = false, bool has_scalarized_args = false, Label* verified_inline_entry_label = nullptr);
 46 
 47   int verified_entry(const CompiledEntrySignature* ces, int frame_size_in_bytes, int bang_size_in_bytes, int sp_offset_for_orig_pc, Label& verified_inline_entry_label) {
 48     return scalarized_entry(ces, frame_size_in_bytes, bang_size_in_bytes, sp_offset_for_orig_pc, verified_inline_entry_label, false);
 49   }
 50   int verified_inline_ro_entry(const CompiledEntrySignature* ces, int frame_size_in_bytes, int bang_size_in_bytes, int sp_offset_for_orig_pc, Label& verified_inline_entry_label) {
 51     return scalarized_entry(ces, frame_size_in_bytes, bang_size_in_bytes, sp_offset_for_orig_pc, verified_inline_entry_label, true);
 52   }
 53   void verified_entry(bool breakAtEntry);
 54 
 55   void verify_stack_oop(int offset) PRODUCT_RETURN;
 56   void verify_not_null_oop(Register r)  PRODUCT_RETURN;
 57 
 58 #include CPU_HEADER(c1_MacroAssembler)
 59 
 60 };
 61 
 62 
 63 
 64 // A StubAssembler is a MacroAssembler w/ extra functionality for runtime
 65 // stubs. Currently it 'knows' some stub info. Eventually, the information
 66 // may be set automatically or can be asserted when using specialised
 67 // StubAssembler functions.
 68 
 69 class StubAssembler: public C1_MacroAssembler {
 70  private:
 71   const char* _name;
 72   bool        _must_gc_arguments;
 73   int         _frame_size;
 74   int         _num_rt_args;
< prev index next >