< prev index next >

src/hotspot/share/asm/macroAssembler_common.cpp

Print this page




  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 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "asm/assembler.hpp"
  28 #include "asm/assembler.inline.hpp"
  29 #include "asm/macroAssembler.hpp"
  30 #include "oops/valueKlass.hpp"
  31 #include "runtime/signature_cc.hpp"
  32 #include "runtime/sharedRuntime.hpp"
  33 #ifdef COMPILER2
  34 #include "opto/compile.hpp"
  35 #include "opto/node.hpp"
  36 #endif
  37 
  38 void MacroAssembler::skip_unpacked_fields(const GrowableArray<SigEntry>* sig, int& sig_index, VMRegPair* regs_from, int regs_from_count, int& from_index) {
  39   ScalarizedValueArgsStream stream(sig, sig_index, regs_from, regs_from_count, from_index);
  40   VMRegPair from_pair;
  41   BasicType bt;
  42   while (stream.next(from_pair, bt)) {}
  43   sig_index = stream.sig_cc_index();
  44   from_index = stream.regs_cc_index();
  45 }
  46 
  47 bool MacroAssembler::is_reg_in_unpacked_fields(const GrowableArray<SigEntry>* sig, int sig_index, VMReg to, VMRegPair* regs_from, int regs_from_count, int from_index) {
  48   ScalarizedValueArgsStream stream(sig, sig_index, regs_from, regs_from_count, from_index);
  49   VMRegPair from_pair;
  50   BasicType bt;




  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 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "asm/assembler.hpp"
  28 #include "asm/assembler.inline.hpp"
  29 #include "asm/macroAssembler.hpp"
  30 #include "oops/valueKlass.inline.hpp"
  31 #include "runtime/signature_cc.hpp"
  32 #include "runtime/sharedRuntime.hpp"
  33 #ifdef COMPILER2
  34 #include "opto/compile.hpp"
  35 #include "opto/node.hpp"
  36 #endif
  37 
  38 void MacroAssembler::skip_unpacked_fields(const GrowableArray<SigEntry>* sig, int& sig_index, VMRegPair* regs_from, int regs_from_count, int& from_index) {
  39   ScalarizedValueArgsStream stream(sig, sig_index, regs_from, regs_from_count, from_index);
  40   VMRegPair from_pair;
  41   BasicType bt;
  42   while (stream.next(from_pair, bt)) {}
  43   sig_index = stream.sig_cc_index();
  44   from_index = stream.regs_cc_index();
  45 }
  46 
  47 bool MacroAssembler::is_reg_in_unpacked_fields(const GrowableArray<SigEntry>* sig, int sig_index, VMReg to, VMRegPair* regs_from, int regs_from_count, int from_index) {
  48   ScalarizedValueArgsStream stream(sig, sig_index, regs_from, regs_from_count, from_index);
  49   VMRegPair from_pair;
  50   BasicType bt;


< prev index next >