< prev index next >

src/share/vm/c1/c1_LIRAssembler.hpp

Print this page


   1 /*
   2  * Copyright (c) 2000, 2013, 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  *


  54   void check_no_unbound_labels();
  55 #endif
  56 
  57   FrameMap* frame_map() const { return _frame_map; }
  58 
  59   void set_current_block(BlockBegin* b) { _current_block = b; }
  60   BlockBegin* current_block() const { return _current_block; }
  61 
  62   // non-safepoint debug info management
  63   void flush_debug_info(int before_pc_offset) {
  64     if (_pending_non_safepoint != NULL) {
  65       if (_pending_non_safepoint_offset < before_pc_offset)
  66         record_non_safepoint_debug_info();
  67       _pending_non_safepoint = NULL;
  68     }
  69   }
  70   void process_debug_info(LIR_Op* op);
  71   void record_non_safepoint_debug_info();
  72 
  73   // unified bailout support
  74   void bailout(const char* msg) const            { compilation()->bailout(msg); }




  75   bool bailed_out() const                        { return compilation()->bailed_out(); }
  76 
  77   // code emission patterns and accessors
  78   void check_codespace();
  79   bool needs_icache(ciMethod* method) const;
  80 
  81   // returns offset of icache check
  82   int check_icache();
  83 
  84   void jobject2reg(jobject o, Register reg);
  85   void jobject2reg_with_patching(Register reg, CodeEmitInfo* info);
  86 
  87   void metadata2reg(Metadata* o, Register reg);
  88   void klass2reg_with_patching(Register reg, CodeEmitInfo* info);
  89 
  90   void emit_stubs(CodeStubList* stub_list);
  91 
  92   // addresses
  93   Address as_Address(LIR_Address* addr);
  94   Address as_Address_lo(LIR_Address* addr);


   1 /*
   2  * Copyright (c) 2000, 2018, 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  *


  54   void check_no_unbound_labels();
  55 #endif
  56 
  57   FrameMap* frame_map() const { return _frame_map; }
  58 
  59   void set_current_block(BlockBegin* b) { _current_block = b; }
  60   BlockBegin* current_block() const { return _current_block; }
  61 
  62   // non-safepoint debug info management
  63   void flush_debug_info(int before_pc_offset) {
  64     if (_pending_non_safepoint != NULL) {
  65       if (_pending_non_safepoint_offset < before_pc_offset)
  66         record_non_safepoint_debug_info();
  67       _pending_non_safepoint = NULL;
  68     }
  69   }
  70   void process_debug_info(LIR_Op* op);
  71   void record_non_safepoint_debug_info();
  72 
  73   // unified bailout support
  74   void bailout(const char* msg) {
  75     // reset the label in case it hits assertion in destructor.
  76     _unwind_handler_entry.reset();
  77     compilation()->bailout(msg);
  78   }
  79   bool bailed_out() const                        { return compilation()->bailed_out(); }
  80 
  81   // code emission patterns and accessors
  82   void check_codespace();
  83   bool needs_icache(ciMethod* method) const;
  84 
  85   // returns offset of icache check
  86   int check_icache();
  87 
  88   void jobject2reg(jobject o, Register reg);
  89   void jobject2reg_with_patching(Register reg, CodeEmitInfo* info);
  90 
  91   void metadata2reg(Metadata* o, Register reg);
  92   void klass2reg_with_patching(Register reg, CodeEmitInfo* info);
  93 
  94   void emit_stubs(CodeStubList* stub_list);
  95 
  96   // addresses
  97   Address as_Address(LIR_Address* addr);
  98   Address as_Address_lo(LIR_Address* addr);


< prev index next >