diff options
| author | 2014-04-17 14:17:09 +0000 | |
|---|---|---|
| committer | 2014-04-17 14:17:10 +0000 | |
| commit | 984cd08f363153aabfa436b61277c30ad6fa4e7d (patch) | |
| tree | fc5f08b127f3cf6bfb933504070109d46a455bb9 /compiler/optimizing/code_generator.h | |
| parent | c2b2bbf1bbdf6273298b79d6006611593ed9f3a0 (diff) | |
| parent | a747a392fb5f88d2ecc4c6021edf9f1f6615ba16 (diff) | |
Merge "Code cleanup in preparation for x64 backend."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
| -rw-r--r-- | compiler/optimizing/code_generator.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index d459dd5f44..5c7cac1e5c 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -26,6 +26,8 @@ namespace art { +static size_t constexpr kVRegSize = 4; + class DexCompilationUnit; class CodeAllocator { @@ -323,10 +325,10 @@ class CallingConvention { return registers_[index]; } - uint8_t GetStackOffsetOf(size_t index) const { + uint8_t GetStackOffsetOf(size_t index, size_t word_size) const { // We still reserve the space for parameters passed by registers. - // Add kWordSize for the method pointer. - return index * kWordSize + kWordSize; + // Add word_size for the method pointer. + return index * kVRegSize + word_size; } private: |