Update frame size after the bitcode is translated into machine code.
Change-Id: I59923a6cb1a1079d9cfe6d995fe0067ee1c49e80
diff --git a/src/compiled_method.h b/src/compiled_method.h
index 2920256..96dfa00 100644
--- a/src/compiled_method.h
+++ b/src/compiled_method.h
@@ -65,6 +65,12 @@
const std::vector<uint16_t>& GetVmapTable() const;
const std::vector<uint8_t>& GetGcMap() const;
+#if defined(ART_USE_LLVM_COMPILER)
+ void SetFrameSizeInBytes(size_t new_frame_size_in_bytes) {
+ frame_size_in_bytes_ = new_frame_size_in_bytes;
+ }
+#endif
+
// Aligns an offset from a page aligned value to make it suitable
// for code storage. important to ensure that PC relative value
// computations work out as expected on ARM.
@@ -99,7 +105,7 @@
// For non-LLVM
const InstructionSet instruction_set_;
std::vector<uint8_t> code_;
- const size_t frame_size_in_bytes_;
+ size_t frame_size_in_bytes_;
const uint32_t core_spill_mask_;
const uint32_t fp_spill_mask_;
std::vector<uint32_t> mapping_table_;