/art/compiler/utils/x86/ |
D | managed_register_x86_test.cc | 26 X86ManagedRegister reg = ManagedRegister::NoRegister().AsX86(); in TEST() local 27 EXPECT_TRUE(reg.IsNoRegister()); in TEST() 28 EXPECT_TRUE(!reg.Overlaps(reg)); in TEST() 32 X86ManagedRegister reg = X86ManagedRegister::FromCpuRegister(EAX); in TEST() local 33 EXPECT_TRUE(!reg.IsNoRegister()); in TEST() 34 EXPECT_TRUE(reg.IsCpuRegister()); in TEST() 35 EXPECT_TRUE(!reg.IsXmmRegister()); in TEST() 36 EXPECT_TRUE(!reg.IsX87Register()); in TEST() 37 EXPECT_TRUE(!reg.IsRegisterPair()); in TEST() 38 EXPECT_EQ(EAX, reg.AsCpuRegister()); in TEST() [all …]
|
D | assembler_x86.h | 92 bool IsRegister(Register reg) const { in IsRegister() argument 94 && ((encoding_[0] & 0x07) == reg); // Register codes match. in IsRegister() 145 explicit Operand(Register reg) : disp_(0), fixup_(nullptr) { SetModRM(3, reg); } in Operand() argument 347 void call(Register reg); 352 void pushl(Register reg); 356 void popl(Register reg); 383 void rorl(Register reg, const Immediate& imm); 385 void roll(Register reg, const Immediate& imm); 657 void psllw(XmmRegister reg, const Immediate& shift_count); 658 void pslld(XmmRegister reg, const Immediate& shift_count); [all …]
|
/art/compiler/utils/x86_64/ |
D | managed_register_x86_64_test.cc | 25 X86_64ManagedRegister reg = ManagedRegister::NoRegister().AsX86(); in TEST() local 26 EXPECT_TRUE(reg.IsNoRegister()); in TEST() 27 EXPECT_TRUE(!reg.Overlaps(reg)); in TEST() 31 X86_64ManagedRegister reg = X86_64ManagedRegister::FromCpuRegister(RAX); in TEST() local 32 EXPECT_TRUE(!reg.IsNoRegister()); in TEST() 33 EXPECT_TRUE(reg.IsCpuRegister()); in TEST() 34 EXPECT_TRUE(!reg.IsXmmRegister()); in TEST() 35 EXPECT_TRUE(!reg.IsX87Register()); in TEST() 36 EXPECT_TRUE(!reg.IsRegisterPair()); in TEST() 37 EXPECT_EQ(RAX, reg.AsCpuRegister()); in TEST() [all …]
|
D | assembler_x86_64.h | 115 bool IsRegister(CpuRegister reg) const { in IsRegister() argument 117 && ((encoding_[0] & 0x07) == reg.LowBits()) // Register codes match. in IsRegister() 118 && (reg.NeedsRex() == ((rex_ & 1) != 0)); // REX.000B bits match. in IsRegister() 174 explicit Operand(CpuRegister reg) : rex_(0), length_(0), fixup_(nullptr) { SetModRM(3, reg); } in Operand() argument 368 void call(CpuRegister reg); 372 void pushq(CpuRegister reg); 376 void popq(CpuRegister reg); 671 void psllw(XmmRegister reg, const Immediate& shift_count); 672 void pslld(XmmRegister reg, const Immediate& shift_count); 673 void psllq(XmmRegister reg, const Immediate& shift_count); [all …]
|
/art/compiler/utils/arm/ |
D | managed_register_arm_test.cc | 25 ArmManagedRegister reg = ManagedRegister::NoRegister().AsArm(); in TEST() local 26 EXPECT_TRUE(reg.IsNoRegister()); in TEST() 27 EXPECT_TRUE(!reg.Overlaps(reg)); in TEST() 31 ArmManagedRegister reg = ArmManagedRegister::FromCoreRegister(R0); in TEST() local 32 EXPECT_TRUE(!reg.IsNoRegister()); in TEST() 33 EXPECT_TRUE(reg.IsCoreRegister()); in TEST() 34 EXPECT_TRUE(!reg.IsSRegister()); in TEST() 35 EXPECT_TRUE(!reg.IsDRegister()); in TEST() 36 EXPECT_TRUE(!reg.IsRegisterPair()); in TEST() 37 EXPECT_EQ(R0, reg.AsCoreRegister()); in TEST() [all …]
|
/art/compiler/utils/arm64/ |
D | managed_register_arm64_test.cc | 27 Arm64ManagedRegister reg = ManagedRegister::NoRegister().AsArm64(); in TEST() local 28 EXPECT_TRUE(reg.IsNoRegister()); in TEST() 29 EXPECT_TRUE(!reg.Overlaps(reg)); in TEST() 34 Arm64ManagedRegister reg = Arm64ManagedRegister::FromXRegister(X0); in TEST() local 36 EXPECT_TRUE(!reg.IsNoRegister()); in TEST() 37 EXPECT_TRUE(reg.IsXRegister()); in TEST() 38 EXPECT_TRUE(!reg.IsWRegister()); in TEST() 39 EXPECT_TRUE(!reg.IsDRegister()); in TEST() 40 EXPECT_TRUE(!reg.IsSRegister()); in TEST() 41 EXPECT_TRUE(reg.Overlaps(wreg)); in TEST() [all …]
|
/art/compiler/debug/ |
D | elf_debug_frame_writer.h | 49 for (int reg = 0; reg < 13; reg++) { in WriteCIE() local 50 if (reg < 4 || reg == 12) { in WriteCIE() 51 opcodes.Undefined(Reg::ArmCore(reg)); in WriteCIE() 53 opcodes.SameValue(Reg::ArmCore(reg)); in WriteCIE() 57 for (int reg = 0; reg < 32; reg++) { in WriteCIE() local 58 if (reg < 16) { in WriteCIE() 59 opcodes.Undefined(Reg::ArmFp(reg)); in WriteCIE() 61 opcodes.SameValue(Reg::ArmFp(reg)); in WriteCIE() 72 for (int reg = 0; reg < 30; reg++) { in WriteCIE() local 73 if (reg < 8 || reg == 16 || reg == 17) { in WriteCIE() [all …]
|
/art/runtime/arch/arm/ |
D | context_arm.h | 57 bool IsAccessibleGPR(uint32_t reg) override { in IsAccessibleGPR() argument 58 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCoreRegisters)); in IsAccessibleGPR() 59 return gprs_[reg] != nullptr; in IsAccessibleGPR() 62 uintptr_t* GetGPRAddress(uint32_t reg) override { in GetGPRAddress() argument 63 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCoreRegisters)); in GetGPRAddress() 64 return gprs_[reg]; in GetGPRAddress() 67 uintptr_t GetGPR(uint32_t reg) override { in GetGPR() argument 68 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCoreRegisters)); in GetGPR() 69 DCHECK(IsAccessibleGPR(reg)); in GetGPR() 70 return *gprs_[reg]; in GetGPR() [all …]
|
D | asm_support_arm.S | 52 .macro CFI_DEF_CFA_BREG_PLUS_UCONST reg, offset, size 60 CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(\reg, \offset, \size) 62 CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(\reg, \offset, \size) 201 .macro CONDITIONAL_CBZ reg, reg_if, dest 202 .ifc \reg, \reg_if 203 cbz \reg, \dest 207 .macro CONDITIONAL_CMPBZ reg, reg_if, dest 208 .ifc \reg, \reg_if 209 cmp \reg, #0 215 .macro SMART_CBZ reg, dest [all …]
|
D | jni_frame_arm.h | 45 size_t reg = 0; // Register for the current argument; if reg >= 4, we shall use stack. in GetCriticalNativeCallArgsSize() local 49 reg += (reg & 1); in GetCriticalNativeCallArgsSize() 51 reg += 1u; in GetCriticalNativeCallArgsSize() 53 reg += 1u; in GetCriticalNativeCallArgsSize() 55 size_t stack_args = std::max(reg, kJniArgumentRegisterCount) - kJniArgumentRegisterCount; in GetCriticalNativeCallArgsSize()
|
/art/runtime/arch/x86_64/ |
D | context_x86_64.h | 56 bool IsAccessibleGPR(uint32_t reg) override { in IsAccessibleGPR() argument 57 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in IsAccessibleGPR() 58 return gprs_[reg] != nullptr; in IsAccessibleGPR() 61 uintptr_t* GetGPRAddress(uint32_t reg) override { in GetGPRAddress() argument 62 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in GetGPRAddress() 63 return gprs_[reg]; in GetGPRAddress() 66 uintptr_t GetGPR(uint32_t reg) override { in GetGPR() argument 67 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in GetGPR() 68 DCHECK(IsAccessibleGPR(reg)); in GetGPR() 69 return *gprs_[reg]; in GetGPR() [all …]
|
D | asm_support_x86_64.S | 76 #define CFI_DEF_CFA(reg,size) .cfi_def_cfa reg,size argument 77 #define CFI_DEF_CFA_REGISTER(reg) .cfi_def_cfa_register reg argument 78 #define CFI_RESTORE(reg) .cfi_restore reg argument 79 #define CFI_REL_OFFSET(reg,size) .cfi_rel_offset reg,size argument 86 #define CFI_RESTORE_STATE_AND_DEF_CFA(reg,off) .cfi_restore_state .cfi_def_cfa reg,off argument 93 #define CFI_DEF_CFA(reg,size) argument 94 #define CFI_DEF_CFA_REGISTER(reg) argument 95 #define CFI_RESTORE(reg) argument 96 #define CFI_REL_OFFSET(reg,size) argument 122 #define CFI_REG(reg) CFI_REG_##reg argument [all …]
|
/art/runtime/arch/arm64/ |
D | context_arm64.h | 57 bool IsAccessibleGPR(uint32_t reg) override { in IsAccessibleGPR() argument 58 DCHECK_LT(reg, arraysize(gprs_)); in IsAccessibleGPR() 59 return gprs_[reg] != nullptr; in IsAccessibleGPR() 62 uintptr_t* GetGPRAddress(uint32_t reg) override { in GetGPRAddress() argument 63 DCHECK_LT(reg, arraysize(gprs_)); in GetGPRAddress() 64 return gprs_[reg]; in GetGPRAddress() 67 uintptr_t GetGPR(uint32_t reg) override { in GetGPR() argument 69 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfXRegisters)); in GetGPR() 70 DCHECK(IsAccessibleGPR(reg)); in GetGPR() 71 return *gprs_[reg]; in GetGPR() [all …]
|
D | asm_support_arm64.S | 54 .macro CFI_DEF_CFA_BREG_PLUS_UCONST reg, offset, size 62 CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(\reg, \offset, \size) 64 CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(\reg, \offset, \size) 123 .macro SAVE_REG reg, offset 124 str \reg, [sp, #(\offset)] 125 .cfi_rel_offset \reg, (\offset) 128 .macro RESTORE_REG_BASE base, reg, offset 129 ldr \reg, [\base, #(\offset)] 130 .cfi_restore \reg 133 .macro RESTORE_REG reg, offset [all …]
|
/art/runtime/arch/x86/ |
D | context_x86.h | 52 bool IsAccessibleGPR(uint32_t reg) override { in IsAccessibleGPR() argument 53 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in IsAccessibleGPR() 54 return gprs_[reg] != nullptr; in IsAccessibleGPR() 57 uintptr_t* GetGPRAddress(uint32_t reg) override { in GetGPRAddress() argument 58 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in GetGPRAddress() 59 return gprs_[reg]; in GetGPRAddress() 62 uintptr_t GetGPR(uint32_t reg) override { in GetGPR() argument 63 DCHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in GetGPR() 64 DCHECK(IsAccessibleGPR(reg)); in GetGPR() 65 return *gprs_[reg]; in GetGPR() [all …]
|
D | asm_support_x86.S | 77 #define CFI_DEF_CFA(reg,size) .cfi_def_cfa reg,size argument 78 #define CFI_DEF_CFA_REGISTER(reg) .cfi_def_cfa_register reg argument 79 #define CFI_RESTORE(reg) .cfi_restore reg argument 80 #define CFI_REL_OFFSET(reg,size) .cfi_rel_offset reg,size argument 87 #define CFI_RESTORE_STATE_AND_DEF_CFA(reg,off) .cfi_restore_state .cfi_def_cfa reg,off argument 94 #define CFI_DEF_CFA(reg,size) argument 95 #define CFI_DEF_CFA_REGISTER(reg) argument 96 #define CFI_RESTORE(reg) argument 97 #define CFI_REL_OFFSET(reg,size) argument 100 #define CFI_RESTORE_STATE_AND_DEF_CFA(reg,off) argument [all …]
|
D | context_x86.cc | 77 void X86Context::SetGPR(uint32_t reg, uintptr_t value) { in SetGPR() argument 78 CHECK_LT(reg, static_cast<uint32_t>(kNumberOfCpuRegisters)); in SetGPR() 79 DCHECK(IsAccessibleGPR(reg)); in SetGPR() 80 CHECK_NE(gprs_[reg], &gZero); in SetGPR() 81 *gprs_[reg] = value; in SetGPR() 84 void X86Context::SetFPR(uint32_t reg, uintptr_t value) { in SetFPR() argument 85 CHECK_LT(reg, static_cast<uint32_t>(kNumberOfFloatRegisters)); in SetFPR() 86 DCHECK(IsAccessibleFPR(reg)); in SetFPR() 87 CHECK_NE(fprs_[reg], reinterpret_cast<const uint32_t*>(&gZero)); in SetFPR() 88 *fprs_[reg] = value; in SetFPR()
|
/art/runtime/ |
D | dex_register_location.cc | 25 std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg) { in operator <<() argument 27 switch (reg.GetKind()) { in operator <<() 33 return stream << "sp+" << reg.GetValue(); in operator <<() 35 return stream << "r" << reg.GetValue(); in operator <<() 37 return stream << "r" << reg.GetValue() << "/hi"; in operator <<() 39 return stream << "f" << reg.GetValue(); in operator <<() 41 return stream << "f" << reg.GetValue() << "/hi"; in operator <<() 43 return stream << "#" << reg.GetValue(); in operator <<() 45 return stream << "DexRegisterLocation(" << static_cast<uint32_t>(reg.GetKind()) in operator <<() 46 << "," << reg.GetValue() << ")"; in operator <<()
|
/art/test/404-optimizing-allocator/src/ |
D | Main.java | 23 expectEquals(4, $opt$reg$TestLostCopy()); in main() 24 expectEquals(-10, $opt$reg$TestTwoLive()); in main() 25 expectEquals(-20, $opt$reg$TestThreeLive()); in main() 26 expectEquals(5, $opt$reg$TestFourLive()); in main() 27 expectEquals(10, $opt$reg$TestMultipleLive()); in main() 28 expectEquals(1, $opt$reg$TestWithBreakAndContinue()); in main() 29 expectEquals(-15, $opt$reg$testSpillInIf(5, 6, 7)); in main() 30 expectEquals(-567, $opt$reg$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); in main() 31 expectEquals(-77, $opt$reg$TestAgressiveLive2(1, 2, 3, 4, 5, 6, 7)); in main() 34 public static int $opt$reg$TestLostCopy() { in $opt$reg$TestLostCopy() [all …]
|
/art/libelffile/dwarf/ |
D | debug_frame_opcode_writer.h | 73 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { in RelOffset() argument 74 Offset(reg, offset - current_cfa_offset_); in RelOffset() 119 void ALWAYS_INLINE Offset(Reg reg, int offset) { in Offset() argument 124 if (0 <= reg.num() && reg.num() <= 0x3F) { in Offset() 125 this->PushUint8(DW_CFA_offset | reg.num()); in Offset() 129 this->PushUleb128(reg.num()); in Offset() 135 this->PushUleb128(reg.num()); in Offset() 141 void ALWAYS_INLINE Restore(Reg reg) { in Restore() argument 144 if (0 <= reg.num() && reg.num() <= 0x3F) { in Restore() 145 this->PushUint8(DW_CFA_restore | reg.num()); in Restore() [all …]
|
/art/runtime/interpreter/mterp/arm/ |
D | main.S | 199 .macro FETCH_ADVANCE_INST_RB reg argument 200 ldrh rINST, [rPC, \reg]! 209 .macro FETCH reg, count 210 ldrh \reg, [rPC, #((\count)*2)] 213 .macro FETCH_S reg, count 214 ldrsh \reg, [rPC, #((\count)*2)] 222 .macro FETCH_B reg, count, byte 223 ldrb \reg, [rPC, #((\count)*2+(\byte))] 229 .macro GET_INST_OPCODE reg argument 230 and \reg, rINST, #255 [all …]
|
/art/runtime/interpreter/ |
D | cfi_asm_support.h | 48 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(reg, offset, size) .cfi_escape \ argument 50 0x92 /* bregx */, reg, (offset & 0x7F), \ 54 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(reg, offset, size) .cfi_escape \ argument 56 0x92 /* bregx */, reg, (offset & 0x7F), \ 80 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(reg, offset, size) argument 81 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(reg, offset, size) argument
|
/art/runtime/interpreter/mterp/arm64/ |
D | main.S | 193 .macro FETCH_ADVANCE_INST_RB reg argument 194 add xPC, xPC, \reg, sxtw 204 .macro FETCH reg, count 205 ldrh \reg, [xPC, #((\count)*2)] 208 .macro FETCH_S reg, count 209 ldrsh \reg, [xPC, #((\count)*2)] 217 .macro FETCH_B reg, count, byte 218 ldrb \reg, [xPC, #((\count)*2+(\byte))] 224 .macro GET_INST_OPCODE reg argument 225 and \reg, xINST, #255 [all …]
|
/art/runtime/arch/ |
D | context.h | 64 virtual bool IsAccessibleGPR(uint32_t reg) = 0; 67 virtual uintptr_t* GetGPRAddress(uint32_t reg) = 0; 71 virtual uintptr_t GetGPR(uint32_t reg) = 0; 75 virtual void SetGPR(uint32_t reg, uintptr_t value) = 0; 78 virtual bool IsAccessibleFPR(uint32_t reg) = 0; 82 virtual uintptr_t GetFPR(uint32_t reg) = 0; 86 virtual void SetFPR(uint32_t reg, uintptr_t value) = 0;
|
/art/libdexfile/dex/ |
D | dex_file-inl.h | 253 for (uint16_t reg = 0; reg < registers_size; reg++) { in DecodeDebugLocalInfo() local 254 if (local_in_reg[reg].is_live_) { in DecodeDebugLocalInfo() 255 local_in_reg[reg].end_address_ = insns_size_in_code_units; in DecodeDebugLocalInfo() 256 new_local_callback(local_in_reg[reg]); in DecodeDebugLocalInfo() 268 uint16_t reg = DecodeUnsignedLeb128(&stream); in DecodeDebugLocalInfo() local 269 if (reg >= registers_size) { in DecodeDebugLocalInfo() 270 LOG(ERROR) << "invalid stream - reg >= reg size (" << reg << " >= " in DecodeDebugLocalInfo() 283 if (local_in_reg[reg].is_live_) { in DecodeDebugLocalInfo() 284 local_in_reg[reg].end_address_ = address; in DecodeDebugLocalInfo() 285 new_local_callback(local_in_reg[reg]); in DecodeDebugLocalInfo() [all …]
|