ART: Quick compiler: More size checks, add TargetReg variants
Add variants for TargetReg for requesting specific register usage,
e.g., wide and ref. More register size checks.
With code adapted from https://android-review.googlesource.com/#/c/98605/.
Change-Id: I852d3be509d4dcd242c7283da702a2a76357278d
diff --git a/compiler/dex/quick/mir_to_lir-inl.h b/compiler/dex/quick/mir_to_lir-inl.h
index 9912101..9a62255 100644
--- a/compiler/dex/quick/mir_to_lir-inl.h
+++ b/compiler/dex/quick/mir_to_lir-inl.h
@@ -253,6 +253,19 @@
return res;
}
+inline void Mir2Lir::CheckRegLocation(RegLocation rl) const {
+ if (kFailOnSizeError || kReportSizeError) {
+ CheckRegLocationImpl(rl, kFailOnSizeError, kReportSizeError);
+ }
+}
+
+inline void Mir2Lir::CheckRegStorage(RegStorage rs, WidenessCheck wide, RefCheck ref, FPCheck fp)
+ const {
+ if (kFailOnSizeError || kReportSizeError) {
+ CheckRegStorageImpl(rs, wide, ref, fp, kFailOnSizeError, kReportSizeError);
+ }
+}
+
} // namespace art
#endif // ART_COMPILER_DEX_QUICK_MIR_TO_LIR_INL_H_