This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8183574: Unify the is_power_of_2 functions
Reviewed-by: kbarrett, redestad
- Loading branch information
Showing
with
183 additions
and 75 deletions.
- +3 −3 src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp
- +2 −1 src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp
- +1 −0 src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
- +1 −1 src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp
- +1 −0 src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
- +1 −0 src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp
- +1 −0 src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp
- +1 −0 src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp
- +1 −0 src/hotspot/cpu/aarch64/templateTable_aarch64.cpp
- +1 −0 src/hotspot/cpu/arm/c1_LIRAssembler_arm.cpp
- +1 −0 src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp
- +1 −0 src/hotspot/cpu/arm/c1_MacroAssembler_arm.cpp
- +1 −0 src/hotspot/cpu/arm/interp_masm_arm.cpp
- +1 −0 src/hotspot/cpu/arm/macroAssembler_arm.cpp
- +1 −0 src/hotspot/cpu/arm/macroAssembler_arm.hpp
- +1 −0 src/hotspot/cpu/arm/sharedRuntime_arm.cpp
- +1 −0 src/hotspot/cpu/arm/stubGenerator_arm.cpp
- +1 −0 src/hotspot/cpu/arm/templateTable_arm.cpp
- +5 −4 src/hotspot/cpu/ppc/assembler_ppc.cpp
- +2 −1 src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp
- +7 −6 src/hotspot/cpu/ppc/c1_LIRGenerator_ppc.cpp
- +1 −1 src/hotspot/cpu/ppc/c1_MacroAssembler_ppc.cpp
- +1 −0 src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp
- +1 −0 src/hotspot/cpu/ppc/interp_masm_ppc_64.cpp
- +1 −0 src/hotspot/cpu/ppc/macroAssembler_ppc.cpp
- +2 −1 src/hotspot/cpu/ppc/macroAssembler_ppc.inline.hpp
- +5 −5 src/hotspot/cpu/ppc/ppc.ad
- +1 −0 src/hotspot/cpu/ppc/stubGenerator_ppc.cpp
- +1 −0 src/hotspot/cpu/ppc/templateTable_ppc_64.cpp
- +1 −0 src/hotspot/cpu/ppc/vm_version_ppc.cpp
- +2 −1 src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp
- +1 −0 src/hotspot/cpu/s390/c1_LIRGenerator_s390.cpp
- +2 −1 src/hotspot/cpu/s390/c1_Runtime1_s390.cpp
- +1 −0 src/hotspot/cpu/s390/interp_masm_s390.cpp
- +1 −0 src/hotspot/cpu/s390/macroAssembler_s390.cpp
- +1 −0 src/hotspot/cpu/s390/stubGenerator_s390.cpp
- +1 −0 src/hotspot/cpu/s390/templateTable_s390.cpp
- +1 −0 src/hotspot/cpu/sparc/c1_LIRAssembler_sparc.cpp
- +1 −0 src/hotspot/cpu/sparc/c1_LIRGenerator_sparc.cpp
- +1 −0 src/hotspot/cpu/sparc/interp_masm_sparc.cpp
- +1 −0 src/hotspot/cpu/sparc/macroAssembler_sparc.cpp
- +1 −0 src/hotspot/cpu/x86/assembler_x86.hpp
- +1 −0 src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp
- +1 −0 src/hotspot/cpu/x86/c1_LIRGenerator_x86.cpp
- +1 −0 src/hotspot/cpu/x86/interp_masm_x86.cpp
- +1 −0 src/hotspot/cpu/x86/vm_version_x86.cpp
- +2 −2 src/hotspot/cpu/x86/x86_64.ad
- +1 −0 src/hotspot/os/linux/os_linux.cpp
- +3 −0 src/hotspot/share/adlc/main.cpp
- +1 −0 src/hotspot/share/aot/aotCodeHeap.cpp
- +1 −0 src/hotspot/share/asm/codeBuffer.cpp
- +1 −0 src/hotspot/share/c1/c1_GraphBuilder.cpp
- +1 −0 src/hotspot/share/c1/c1_LIRGenerator.cpp
- +1 −0 src/hotspot/share/ci/ciArray.cpp
- +1 −0 src/hotspot/share/code/codeHeapState.cpp
- +2 −1 src/hotspot/share/code/vtableStubs.cpp
- +1 −0 src/hotspot/share/gc/g1/g1BiasedArray.hpp
- +1 −0 src/hotspot/share/gc/g1/g1RegionMarkStatsCache.cpp
- +1 −0 src/hotspot/share/gc/g1/g1RegionToSpaceMapper.cpp
- +1 −0 src/hotspot/share/gc/parallel/parallelArguments.cpp
- +1 −0 src/hotspot/share/gc/shared/jvmFlagConstraintsGC.cpp
- +1 −0 src/hotspot/share/gc/shared/oopStorage.cpp
- +1 −0 src/hotspot/share/gc/shared/stringdedup/stringDedupTable.cpp
- +1 −0 src/hotspot/share/gc/shenandoah/shenandoahCodeRoots.cpp
- +1 −0 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
- +1 −0 src/hotspot/share/gc/z/zAddress.inline.hpp
- +1 −0 src/hotspot/share/gc/z/zLiveMap.cpp
- +1 −0 src/hotspot/share/gc/z/zMarkCache.cpp
- +1 −0 src/hotspot/share/gc/z/zMarkStack.cpp
- +1 −0 src/hotspot/share/gc/z/zNMethodTable.cpp
- +1 −0 src/hotspot/share/gc/z/zRelocationSetSelector.cpp
- +1 −0 src/hotspot/share/memory/arena.hpp
- +1 −0 src/hotspot/share/memory/heap.cpp
- +1 −0 src/hotspot/share/memory/virtualspace.cpp
- +1 −0 src/hotspot/share/oops/klass.cpp
- +1 −0 src/hotspot/share/opto/arraycopynode.cpp
- +1 −0 src/hotspot/share/opto/block.hpp
- +1 −0 src/hotspot/share/opto/callnode.cpp
- +5 −4 src/hotspot/share/opto/divnode.cpp
- +1 −0 src/hotspot/share/opto/graphKit.cpp
- +1 −1 src/hotspot/share/opto/library_call.cpp
- +1 −0 src/hotspot/share/opto/loopnode.cpp
- +1 −0 src/hotspot/share/opto/macro.cpp
- +1 −1 src/hotspot/share/opto/macroArrayCopy.cpp
- +1 −0 src/hotspot/share/opto/memnode.cpp
- +2 −2 src/hotspot/share/opto/mulnode.cpp
- +1 −0 src/hotspot/share/opto/output.cpp
- +1 −0 src/hotspot/share/opto/regmask.cpp
- +1 −0 src/hotspot/share/opto/superword.cpp
- +1 −0 src/hotspot/share/opto/type.cpp
- +1 −0 src/hotspot/share/opto/vectornode.cpp
- +1 −0 src/hotspot/share/runtime/arguments.cpp
- +1 −0 src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp
- +1 −0 src/hotspot/share/runtime/flags/jvmFlagConstraintsRuntime.cpp
- +4 −9 src/hotspot/share/utilities/align.hpp
- +1 −0 src/hotspot/share/utilities/globalDefinitions.cpp
- +0 −22 src/hotspot/share/utilities/globalDefinitions.hpp
- +19 −3 src/hotspot/share/utilities/powerOfTwo.hpp
- +1 −5 test/hotspot/gtest/gc/z/test_zForwarding.cpp
- +34 −0 test/hotspot/gtest/utilities/test_powerOfTwo.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -43,6 +43,7 @@ | ||
#include "runtime/signature.hpp" | ||
#include "runtime/vframe.hpp" | ||
#include "runtime/vframeArray.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
#include "vmreg_aarch64.inline.hpp" | ||
|
||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -28,6 +28,7 @@ | ||
|
||
#include "asm/assembler.hpp" | ||
#include "oops/compressedOops.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
// MacroAssembler extends Assembler by frequently used macros. | ||
// | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -49,6 +49,7 @@ | ||
#include "runtime/timer.hpp" | ||
#include "runtime/vframeArray.hpp" | ||
#include "utilities/debug.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
#include <sys/types.h> | ||
|
||
#ifndef PRODUCT | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -40,6 +40,7 @@ | ||
#include "runtime/sharedRuntime.hpp" | ||
#include "runtime/stubRoutines.hpp" | ||
#include "runtime/synchronizer.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
#define __ _masm-> | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -46,6 +46,7 @@ | ||
#include "runtime/sharedRuntime.hpp" | ||
#include "runtime/stubRoutines.hpp" | ||
#include "utilities/macros.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
// Implementation of AddressLiteral | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -26,6 +26,7 @@ | ||
#define CPU_ARM_MACROASSEMBLER_ARM_HPP | ||
|
||
#include "code/relocInfo.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
class BiasedLockingCounters; | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -39,6 +39,7 @@ | ||
#include "runtime/sharedRuntime.hpp" | ||
#include "runtime/stubRoutines.hpp" | ||
#include "runtime/synchronizer.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
#define __ _masm-> | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -42,6 +42,7 @@ | ||
#include "runtime/stubRoutines.hpp" | ||
#include "runtime/synchronizer.hpp" | ||
#include "utilities/macros.hpp" | ||
#include "utilities/powerOfTwo.hpp" | ||
|
||
#undef __ | ||
#define __ _masm-> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.