/art/compiler/dex/quick/ |
D | mir_to_lir.cc | 384 int opt_flags = mir->optimization_flags; in CompileDalvikInstruction() local 442 GenSuspendTest(opt_flags); in CompileDalvikInstruction() 451 GenSuspendTest(opt_flags); in CompileDalvikInstruction() 459 GenSuspendTest(opt_flags); in CompileDalvikInstruction() 466 if ((opt_flags & MIR_INLINED) != 0) { in CompileDalvikInstruction() 474 if ((opt_flags & MIR_INLINED) != 0) { in CompileDalvikInstruction() 521 GenMonitorEnter(opt_flags, rl_src[0]); in CompileDalvikInstruction() 525 GenMonitorExit(opt_flags, rl_src[0]); in CompileDalvikInstruction() 548 GenNullCheck(rl_src[0].reg, opt_flags); in CompileDalvikInstruction() 551 MarkPossibleNullPointerException(opt_flags); in CompileDalvikInstruction() [all …]
|
D | gen_invoke.cc | 468 cg->GenNullCheck(cg->TargetReg(kArg1, kRef), info->opt_flags); in CommonCallCodeLoadClassIntoArg0() 473 cg->MarkPossibleNullPointerException(info->opt_flags); in CommonCallCodeLoadClassIntoArg0() 859 *pcrLabel = GenExplicitNullCheck(TargetReg(kArg1, kRef), info->opt_flags); in GenDalvikArgsNoRange() 863 (info->opt_flags & MIR_IGNORE_NULL_CHECK)) { in GenDalvikArgsNoRange() 868 GenImplicitNullCheck(TargetReg(kArg1, kRef), info->opt_flags); in GenDalvikArgsNoRange() 876 void Mir2Lir::GenImplicitNullCheck(RegStorage reg, int opt_flags) { in GenImplicitNullCheck() argument 877 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in GenImplicitNullCheck() 882 MarkPossibleNullPointerException(opt_flags); in GenImplicitNullCheck() 1097 *pcrLabel = GenExplicitNullCheck(TargetReg(kArg1, kRef), info->opt_flags); in GenDalvikArgsRange() 1101 (info->opt_flags & MIR_IGNORE_NULL_CHECK)) { in GenDalvikArgsRange() [all …]
|
D | gen_common.cc | 159 LIR* Mir2Lir::GenNullCheck(RegStorage m_reg, int opt_flags) { in GenNullCheck() argument 161 return GenExplicitNullCheck(m_reg, opt_flags); in GenNullCheck() 167 LIR* Mir2Lir::GenExplicitNullCheck(RegStorage m_reg, int opt_flags) { in GenExplicitNullCheck() argument 168 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in GenExplicitNullCheck() 174 void Mir2Lir::MarkPossibleNullPointerException(int opt_flags) { in MarkPossibleNullPointerException() argument 176 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in MarkPossibleNullPointerException() 184 void Mir2Lir::MarkPossibleNullPointerExceptionAfter(int opt_flags, LIR* after) { in MarkPossibleNullPointerExceptionAfter() argument 186 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in MarkPossibleNullPointerExceptionAfter() 199 void Mir2Lir::ForceImplicitNullCheck(RegStorage reg, int opt_flags) { in ForceImplicitNullCheck() argument 201 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in ForceImplicitNullCheck() [all …]
|
D | mir_to_lir.h | 834 void MarkPossibleNullPointerException(int opt_flags); 835 void MarkPossibleNullPointerExceptionAfter(int opt_flags, LIR* after); 837 void ForceImplicitNullCheck(RegStorage reg, int opt_flags); 838 LIR* GenNullCheck(RegStorage m_reg, int opt_flags); 839 LIR* GenExplicitNullCheck(RegStorage m_reg, int opt_flags); 840 virtual void GenImplicitNullCheck(RegStorage reg, int opt_flags); 855 void GenIGet(MIR* mir, int opt_flags, OpSize size, 857 void GenIPut(MIR* mir, int opt_flags, OpSize size, 859 void GenArrayObjPut(int opt_flags, RegLocation rl_array, RegLocation rl_index, 877 virtual void GenSuspendTest(int opt_flags); [all …]
|
/art/compiler/dex/portable/ |
D | mir_to_gbc.cc | 285 void MirConverter::ConvertMonitorEnterExit(int opt_flags, in ConvertMonitorEnterExit() argument 289 args.push_back(irb_->getInt32(opt_flags)); in ConvertMonitorEnterExit() 295 void MirConverter::ConvertArrayLength(int opt_flags, in ConvertArrayLength() argument 298 args.push_back(irb_->getInt32(opt_flags)); in ConvertArrayLength() 476 args.push_back(irb_->getInt32(info->opt_flags)); in ConvertInvoke() 554 void MirConverter::ConvertAget(int opt_flags, in ConvertAget() argument 558 args.push_back(irb_->getInt32(opt_flags)); in ConvertAget() 566 void MirConverter::ConvertAput(int opt_flags, in ConvertAput() argument 570 args.push_back(irb_->getInt32(opt_flags)); in ConvertAput() 578 void MirConverter::ConvertIget(int opt_flags, in ConvertIget() argument [all …]
|
D | mir_to_gbc.h | 110 void ConvertMonitorEnterExit(int opt_flags, 112 void ConvertArrayLength(int opt_flags, RegLocation rl_dest, 143 void ConvertAget(int opt_flags, art::llvm::IntrinsicHelper::IntrinsicId id, 145 void ConvertAput(int opt_flags, art::llvm::IntrinsicHelper::IntrinsicId id, 147 void ConvertIget(int opt_flags, art::llvm::IntrinsicHelper::IntrinsicId id, 149 void ConvertIput(int opt_flags, art::llvm::IntrinsicHelper::IntrinsicId id,
|
/art/compiler/dex/quick/arm/ |
D | call_arm.cc | 179 void ArmMir2Lir::GenMonitorEnter(int opt_flags, RegLocation rl_src) { in GenMonitorEnter() argument 187 if ((opt_flags & MIR_IGNORE_NULL_CHECK) && !(cu_->disable_opt & (1 << kNullCheckElimination))) { in GenMonitorEnter() 198 MarkPossibleNullPointerException(opt_flags); in GenMonitorEnter() 222 GenNullCheck(rs_r0, opt_flags); in GenMonitorEnter() 226 MarkPossibleNullPointerException(opt_flags); in GenMonitorEnter() 250 void ArmMir2Lir::GenMonitorExit(int opt_flags, RegLocation rl_src) { in GenMonitorExit() argument 258 if ((opt_flags & MIR_IGNORE_NULL_CHECK) && !(cu_->disable_opt & (1 << kNullCheckElimination))) { in GenMonitorExit() 267 MarkPossibleNullPointerException(opt_flags); in GenMonitorExit() 290 GenNullCheck(rs_r0, opt_flags); in GenMonitorExit() 292 MarkPossibleNullPointerException(opt_flags); in GenMonitorExit()
|
D | codegen_arm.h | 91 void GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, 93 void GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, RegLocation rl_index, 127 void GenMonitorEnter(int opt_flags, RegLocation rl_src); 128 void GenMonitorExit(int opt_flags, RegLocation rl_src);
|
D | int_arm.cc | 1284 void ArmMir2Lir::GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayGet() argument 1308 GenNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 1310 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayGet() 1316 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1318 ForceImplicitNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 1341 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1362 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1372 void ArmMir2Lir::GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayPut() argument 1408 GenNullCheck(rl_array.reg, opt_flags); in GenArrayPut() 1410 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayPut() [all …]
|
/art/compiler/dex/quick/arm64/ |
D | call_arm64.cc | 188 void Arm64Mir2Lir::GenMonitorEnter(int opt_flags, RegLocation rl_src) { in GenMonitorEnter() argument 199 if ((opt_flags & MIR_IGNORE_NULL_CHECK) && !(cu_->disable_opt & (1 << kNullCheckElimination))) { in GenMonitorEnter() 210 MarkPossibleNullPointerException(opt_flags); in GenMonitorEnter() 237 void Arm64Mir2Lir::GenMonitorExit(int opt_flags, RegLocation rl_src) { in GenMonitorExit() argument 247 if ((opt_flags & MIR_IGNORE_NULL_CHECK) && !(cu_->disable_opt & (1 << kNullCheckElimination))) { in GenMonitorExit() 257 MarkPossibleNullPointerException(opt_flags); in GenMonitorExit()
|
D | int_arm64.cc | 1101 void Arm64Mir2Lir::GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayGet() argument 1125 GenNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 1127 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayGet() 1133 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1135 ForceImplicitNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 1163 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1188 MarkPossibleNullPointerException(opt_flags); in GenArrayGet() 1198 void Arm64Mir2Lir::GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayPut() argument 1234 GenNullCheck(rl_array.reg, opt_flags); in GenArrayPut() 1236 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayPut() [all …]
|
D | codegen_arm64.h | 144 void GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, RegLocation rl_index, 146 void GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, RegLocation rl_index, 193 void GenMonitorEnter(int opt_flags, RegLocation rl_src) OVERRIDE; 194 void GenMonitorExit(int opt_flags, RegLocation rl_src) OVERRIDE;
|
D | target_arm64.cc | 1188 *pcrLabel = GenExplicitNullCheck(TargetReg(kArg1, kRef), info->opt_flags); in GenDalvikArgsRange() 1195 MarkPossibleNullPointerException(info->opt_flags); in GenDalvikArgsRange()
|
/art/compiler/dex/quick/x86/ |
D | call_x86.cc | 323 void X86Mir2Lir::GenImplicitNullCheck(RegStorage reg, int opt_flags) { in GenImplicitNullCheck() argument 324 if (!(cu_->disable_opt & (1 << kNullCheckElimination)) && (opt_flags & MIR_IGNORE_NULL_CHECK)) { in GenImplicitNullCheck() 330 MarkPossibleNullPointerException(opt_flags); in GenImplicitNullCheck()
|
D | codegen_x86.h | 83 void GenImplicitNullCheck(RegStorage reg, int opt_flags) OVERRIDE; 146 void GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, RegLocation rl_index, 148 void GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array,
|
D | target_x86.cc | 1286 GenNullCheck(rs_rDX, info->opt_flags); in GenInlinedIndexOf() 1287 info->opt_flags |= MIR_IGNORE_NULL_CHECK; // Record that we've null checked. in GenInlinedIndexOf() 2813 *pcrLabel = GenExplicitNullCheck(TargetReg(kArg1, kRef), info->opt_flags); in GenDalvikArgsRange() 2820 MarkPossibleNullPointerException(info->opt_flags); in GenDalvikArgsRange() 2845 GenNullCheck(rl_obj.reg, info->opt_flags); in GenInlinedCharAt() 2846 bool range_check = (!(info->opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenInlinedCharAt() 2886 info->opt_flags |= MIR_IGNORE_NULL_CHECK; // Record that we've already null checked. in GenInlinedCharAt()
|
D | int_x86.cc | 2059 void X86Mir2Lir::GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayGet() argument 2086 GenNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 2088 if (!(opt_flags & MIR_IGNORE_RANGE_CHECK)) { in GenArrayGet() 2108 void X86Mir2Lir::GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayPut() argument 2134 GenNullCheck(rl_array.reg, opt_flags); in GenArrayPut() 2136 if (!(opt_flags & MIR_IGNORE_RANGE_CHECK)) { in GenArrayPut()
|
/art/compiler/dex/quick/mips/ |
D | int_mips.cc | 485 void MipsMir2Lir::GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayGet() argument 503 GenNullCheck(rl_array.reg, opt_flags); in GenArrayGet() 506 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayGet() 554 void MipsMir2Lir::GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array, in GenArrayPut() argument 583 GenNullCheck(rl_array.reg, opt_flags); in GenArrayPut() 585 bool needs_range_check = (!(opt_flags & MIR_IGNORE_RANGE_CHECK)); in GenArrayPut()
|
D | codegen_mips.h | 89 void GenArrayGet(int opt_flags, OpSize size, RegLocation rl_array, 91 void GenArrayPut(int opt_flags, OpSize size, RegLocation rl_array,
|
/art/compiler/llvm/ |
D | gbc_expander.cc | 371 int opt_flags); 376 int opt_flags); 1550 int opt_flags = LV2UInt(call_inst.getArgOperand(0)); in Expand_HLArrayGet() local 1552 EmitGuard_NullPointerException(dex_pc, array_addr, opt_flags); in Expand_HLArrayGet() 1554 opt_flags); in Expand_HLArrayGet() 1570 int opt_flags = LV2UInt(call_inst.getArgOperand(0)); in Expand_HLArrayPut() local 1572 EmitGuard_NullPointerException(dex_pc, array_addr, opt_flags); in Expand_HLArrayPut() 1574 opt_flags); in Expand_HLArrayPut() 1600 int opt_flags = LV2UInt(call_inst.getArgOperand(0)); in Expand_HLIGet() local 1602 EmitGuard_NullPointerException(dex_pc, object_addr, opt_flags); in Expand_HLIGet() [all …]
|
D | intrinsic_func_list.def | 313 // uint32_t art_portable_opt_array_length(int32_t opt_flags, JavaObject* array)
|
/art/compiler/dex/ |
D | mir_graph.h | 522 int opt_flags; member
|
D | mir_graph.cc | 1467 info->opt_flags = mir->optimization_flags; in NewMemCallInfo()
|