Skip to content
Permalink
Browse files

8241436: C2: Factor out C2-specific code from MacroAssembler

Reviewed-by: mdoerr, kvn, adinn
  • Loading branch information
Vladimir Ivanov committed Mar 27, 2020
1 parent 1dd60a3 commit 536e062a563279ee8da2b5b5881ef99e01f66656
Showing with 6,696 additions and 6,305 deletions.
  1. +107 −107 src/hotspot/cpu/aarch64/aarch64.ad
  2. +769 −0 src/hotspot/cpu/aarch64/c2_MacroAssembler_aarch64.cpp
  3. +48 −0 src/hotspot/cpu/aarch64/c2_MacroAssembler_aarch64.hpp
  4. +0 −732 src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
  5. +0 −14 src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp
  6. +21 −21 src/hotspot/cpu/arm/arm.ad
  7. +160 −0 src/hotspot/cpu/arm/c2_MacroAssembler_arm.cpp
  8. +39 −0 src/hotspot/cpu/arm/c2_MacroAssembler_arm.hpp
  9. +0 −137 src/hotspot/cpu/arm/macroAssembler_arm.cpp
  10. +0 −10 src/hotspot/cpu/arm/macroAssembler_arm.hpp
  11. +580 −0 src/hotspot/cpu/ppc/c2_MacroAssembler_ppc.cpp
  12. +62 −0 src/hotspot/cpu/ppc/c2_MacroAssembler_ppc.hpp
  13. +1 −549 src/hotspot/cpu/ppc/macroAssembler_ppc.cpp
  14. +0 −33 src/hotspot/cpu/ppc/macroAssembler_ppc.hpp
  15. +57 −55 src/hotspot/cpu/ppc/ppc.ad
  16. +1,281 −0 src/hotspot/cpu/s390/c2_MacroAssembler_s390.cpp
  17. +76 −0 src/hotspot/cpu/s390/c2_MacroAssembler_s390.hpp
  18. +0 −1,255 src/hotspot/cpu/s390/macroAssembler_s390.cpp
  19. +0 −46 src/hotspot/cpu/s390/macroAssembler_s390.hpp
  20. +37 −37 src/hotspot/cpu/s390/s390.ad
  21. +526 −0 src/hotspot/cpu/sparc/c2_MacroAssembler_sparc.cpp
  22. +58 −0 src/hotspot/cpu/sparc/c2_MacroAssembler_sparc.hpp
  23. +0 −495 src/hotspot/cpu/sparc/macroAssembler_sparc.cpp
  24. +0 −30 src/hotspot/cpu/sparc/macroAssembler_sparc.hpp
  25. +62 −62 src/hotspot/cpu/sparc/sparc.ad
  26. +2,594 −0 src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp
  27. +166 −0 src/hotspot/cpu/x86/c2_MacroAssembler_x86.hpp
  28. +0 −2,572 src/hotspot/cpu/x86/macroAssembler_x86.cpp
  29. +0 −139 src/hotspot/cpu/x86/macroAssembler_x86.hpp
  30. +7 −7 src/hotspot/cpu/x86/x86.ad
  31. +3 −3 src/hotspot/share/adlc/adlparse.cpp
  32. +1 −1 src/hotspot/share/adlc/main.cpp
  33. +41 −0 src/hotspot/share/opto/c2_MacroAssembler.hpp

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,48 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/

#ifndef CPU_AARCH64_C2_MACROASSEMBLER_AARCH64_HPP
#define CPU_AARCH64_C2_MACROASSEMBLER_AARCH64_HPP

// C2_MacroAssembler contains high-level macros for C2

public:

void string_compare(Register str1, Register str2,
Register cnt1, Register cnt2, Register result,
Register tmp1, Register tmp2, FloatRegister vtmp1,
FloatRegister vtmp2, FloatRegister vtmp3, int ae);

void string_indexof(Register str1, Register str2,
Register cnt1, Register cnt2,
Register tmp1, Register tmp2,
Register tmp3, Register tmp4,
Register tmp5, Register tmp6,
int int_cnt1, Register result, int ae);

void string_indexof_char(Register str1, Register cnt1,
Register ch, Register result,
Register tmp1, Register tmp2, Register tmp3);

#endif // CPU_AARCH64_C2_MACROASSEMBLER_AARCH64_HPP

0 comments on commit 536e062

Please sign in to comment.