diff options
author | 2015-02-19 12:15:55 +0000 | |
---|---|---|
committer | 2015-02-19 12:15:56 +0000 | |
commit | 92095533ac28879ddd8b44b559d700527ca12b8a (patch) | |
tree | dafc6b514825490e65ecee4385f08f066add8c95 /compiler/optimizing/code_generator.h | |
parent | cf3fb94a90d74361b13e7bae5aa6e0e4ae58479d (diff) | |
parent | aa9b7c48069699e2aabedc6c0f62cb131fee0c73 (diff) |
Merge "Have the opt. compiler set the size of "empty" frames to zero."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r-- | compiler/optimizing/code_generator.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 6c78f10500..0310877f18 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -238,6 +238,13 @@ class CodeGenerator { void AllocateLocations(HInstruction* instruction); + // Tells whether the stack frame of the compiled method is + // considered "empty", that is either actually having a size of zero, + // or just containing the saved return address register. + bool HasEmptyFrame() const { + return GetFrameSize() == (CallPushesPC() ? GetWordSize() : 0); + } + protected: CodeGenerator(HGraph* graph, size_t number_of_core_registers, @@ -312,10 +319,6 @@ class CodeGenerator { return instruction_set == kX86 || instruction_set == kX86_64; } - bool HasEmptyFrame() const { - return GetFrameSize() == (CallPushesPC() ? GetWordSize() : 0); - } - // Arm64 has its own type for a label, so we need to templatize this method // to share the logic. template <typename T> |