Reduce shadow frame size.
Change-Id: Ifbd5cb38d0666a1f5db1abe7da36ff86a93f87b5
diff --git a/src/compiler_llvm/inferred_reg_category_map.cc b/src/compiler_llvm/inferred_reg_category_map.cc
index 04acd6f..2403750 100644
--- a/src/compiler_llvm/inferred_reg_category_map.cc
+++ b/src/compiler_llvm/inferred_reg_category_map.cc
@@ -28,7 +28,7 @@
InferredRegCategoryMap::InferredRegCategoryMap(uint32_t insns_size,
uint8_t regs_size)
-: registers_size_(regs_size), lines_(insns_size, NULL) {
+: registers_size_(regs_size), lines_(insns_size, NULL), can_be_object_(regs_size) {
}
InferredRegCategoryMap::~InferredRegCategoryMap() {
@@ -55,6 +55,14 @@
}
}
+bool InferredRegCategoryMap::IsRegCanBeObject(uint16_t reg_idx) const {
+ return can_be_object_[reg_idx];
+}
+
+void InferredRegCategoryMap::SetRegCanBeObject(uint16_t reg_idx) {
+ can_be_object_[reg_idx] = true;
+}
+
bool InferredRegCategoryMap::
operator==(InferredRegCategoryMap const& rhs) const {