Home
last modified time | relevance | path

Searched refs:scratch_regs (Results 1 – 17 of 17) sorted by relevance

/art/compiler/jni/quick/riscv64/
Dcalling_convention_riscv64.cc296 ArrayRef<const ManagedRegister> scratch_regs(kXArgumentRegisters); in ArgumentScratchRegisters() local
300 scratch_regs = scratch_regs.SubArray(/*pos=*/ 1u); in ArgumentScratchRegisters()
301 DCHECK(std::none_of(scratch_regs.begin(), in ArgumentScratchRegisters()
302 scratch_regs.end(), in ArgumentScratchRegisters()
306 return scratch_regs; in ArgumentScratchRegisters()
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.cc257 ArrayRef<const ManagedRegister> scratch_regs(kXArgumentRegisters); in ArgumentScratchRegisters() local
261 scratch_regs = scratch_regs.SubArray(/*pos=*/ 1u); in ArgumentScratchRegisters()
262 DCHECK(std::none_of(scratch_regs.begin(), in ArgumentScratchRegisters()
263 scratch_regs.end(), in ArgumentScratchRegisters()
267 return scratch_regs; in ArgumentScratchRegisters()
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.cc412 ArrayRef<const ManagedRegister> scratch_regs(kHFCoreArgumentRegisters); in ArgumentScratchRegisters() local
417 scratch_regs = scratch_regs.SubArray(/*pos=*/ 2u); in ArgumentScratchRegisters()
418 DCHECK(std::none_of(scratch_regs.begin(), in ArgumentScratchRegisters()
419 scratch_regs.end(), in ArgumentScratchRegisters()
423 return scratch_regs; in ArgumentScratchRegisters()
/art/compiler/jni/quick/x86/
Dcalling_convention_x86.cc96 ArrayRef<const ManagedRegister> scratch_regs(kArgumentScratchRegisters); in ArgumentScratchRegisters() local
97 DCHECK(std::none_of(scratch_regs.begin(), in ArgumentScratchRegisters()
98 scratch_regs.end(), in ArgumentScratchRegisters()
102 return scratch_regs; in ArgumentScratchRegisters()
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.cc109 ArrayRef<const ManagedRegister> scratch_regs(kCoreArgumentRegisters); in ArgumentScratchRegisters() local
110 DCHECK(std::none_of(scratch_regs.begin(), in ArgumentScratchRegisters()
111 scratch_regs.end(), in ArgumentScratchRegisters()
115 return scratch_regs; in ArgumentScratchRegisters()
/art/compiler/utils/riscv64/
Djni_macro_assembler_riscv64.cc459 ArrayRef<const ManagedRegister> scratch_regs) { in TryToTransitionFromRunnableToNative() argument
466 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromRunnableToNative()
467 XRegister scratch = scratch_regs[0].AsRiscv64().AsXRegister(); in TryToTransitionFromRunnableToNative()
468 XRegister scratch2 = scratch_regs[1].AsRiscv64().AsXRegister(); in TryToTransitionFromRunnableToNative()
491 ArrayRef<const ManagedRegister> scratch_regs, in TryToTransitionFromNativeToRunnable() argument
501 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromNativeToRunnable()
502 DCHECK(!scratch_regs[0].AsRiscv64().Overlaps(return_reg.AsRiscv64())); in TryToTransitionFromNativeToRunnable()
503 XRegister scratch = scratch_regs[0].AsRiscv64().AsXRegister(); in TryToTransitionFromNativeToRunnable()
504 DCHECK(!scratch_regs[1].AsRiscv64().Overlaps(return_reg.AsRiscv64())); in TryToTransitionFromNativeToRunnable()
505 XRegister scratch2 = scratch_regs[1].AsRiscv64().AsXRegister(); in TryToTransitionFromNativeToRunnable()
Djni_macro_assembler_riscv64.h114 ArrayRef<const ManagedRegister> scratch_regs) override;
120 ArrayRef<const ManagedRegister> scratch_regs,
Djni_macro_assembler_riscv64_test.cc774 const ArrayRef<const ManagedRegister> scratch_regs(raw_scratch_regs); in TEST_F() local
776 __ TryToTransitionFromRunnableToNative(slow_path.get(), scratch_regs); in TEST_F()
786 __ TryToTransitionFromNativeToRunnable(slow_path.get(), scratch_regs, AsManaged(A0)); in TEST_F()
/art/compiler/utils/x86_64/
Djni_macro_assembler_x86_64.h113 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) override;
119 ArrayRef<const ManagedRegister> scratch_regs,
Djni_macro_assembler_x86_64.cc518 JNIMacroLabel* label, [[maybe_unused]] ArrayRef<const ManagedRegister> scratch_regs) { in TryToTransitionFromRunnableToNative() argument
546 ArrayRef<const ManagedRegister> scratch_regs, in TryToTransitionFromNativeToRunnable() argument
556 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromNativeToRunnable()
557 DCHECK(!scratch_regs[0].AsX86_64().Overlaps(return_reg.AsX86_64())); in TryToTransitionFromNativeToRunnable()
558 CpuRegister scratch = scratch_regs[0].AsX86_64().AsCpuRegister(); in TryToTransitionFromNativeToRunnable()
559 DCHECK(!scratch_regs[1].AsX86_64().Overlaps(return_reg.AsX86_64())); in TryToTransitionFromNativeToRunnable()
560 CpuRegister saved_rax = scratch_regs[1].AsX86_64().AsCpuRegister(); in TryToTransitionFromNativeToRunnable()
/art/compiler/utils/x86/
Djni_macro_assembler_x86.h112 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) override;
118 ArrayRef<const ManagedRegister> scratch_regs,
Djni_macro_assembler_x86.cc446 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) { in TryToTransitionFromRunnableToNative() argument
454 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromRunnableToNative()
455 Register saved_eax = scratch_regs[0].AsX86().AsCpuRegister(); in TryToTransitionFromRunnableToNative()
456 Register scratch = scratch_regs[1].AsX86().AsCpuRegister(); in TryToTransitionFromRunnableToNative()
476 ArrayRef<const ManagedRegister> scratch_regs, in TryToTransitionFromNativeToRunnable() argument
489 DCHECK_LT(scratch_index, scratch_regs.size()); in TryToTransitionFromNativeToRunnable()
490 X86ManagedRegister scratch_reg = scratch_regs[scratch_index].AsX86(); in TryToTransitionFromNativeToRunnable()
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.h123 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) override;
129 ArrayRef<const ManagedRegister> scratch_regs,
Djni_macro_assembler_arm_vixl.cc898 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) { in TryToTransitionFromRunnableToNative() argument
905 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromRunnableToNative()
906 vixl32::Register scratch = AsVIXLRegister(scratch_regs[0].AsArm()); in TryToTransitionFromRunnableToNative()
907 vixl32::Register scratch2 = AsVIXLRegister(scratch_regs[1].AsArm()); in TryToTransitionFromRunnableToNative()
928 ArrayRef<const ManagedRegister> scratch_regs, in TryToTransitionFromNativeToRunnable() argument
939 DCHECK_GE(scratch_regs.size(), 2u); in TryToTransitionFromNativeToRunnable()
940 DCHECK(!scratch_regs[0].AsArm().Overlaps(return_reg.AsArm())); in TryToTransitionFromNativeToRunnable()
941 vixl32::Register scratch = AsVIXLRegister(scratch_regs[0].AsArm()); in TryToTransitionFromNativeToRunnable()
942 DCHECK(!scratch_regs[1].AsArm().Overlaps(return_reg.AsArm())); in TryToTransitionFromNativeToRunnable()
943 vixl32::Register scratch2 = AsVIXLRegister(scratch_regs[1].AsArm()); in TryToTransitionFromNativeToRunnable()
/art/compiler/utils/arm64/
Djni_macro_assembler_arm64.h125 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) override;
131 ArrayRef<const ManagedRegister> scratch_regs,
Djni_macro_assembler_arm64.cc710 JNIMacroLabel* label, [[maybe_unused]] ArrayRef<const ManagedRegister> scratch_regs) { in TryToTransitionFromRunnableToNative() argument
739 [[maybe_unused]] ArrayRef<const ManagedRegister> scratch_regs, in TryToTransitionFromNativeToRunnable() argument
/art/compiler/utils/
Djni_macro_assembler.h202 JNIMacroLabel* label, ArrayRef<const ManagedRegister> scratch_regs) = 0;
208 ArrayRef<const ManagedRegister> scratch_regs,