diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-11-19 08:47:18 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-11-19 08:47:18 +0000 |
commit | 86a8d7afc7f00ff0f5ea7b8aaf4d50514250a4e6 (patch) | |
tree | 3db61320369973e463f67927a8983d7eb0d9f860 /compiler/optimizing/code_generator_x86.h | |
parent | 255a5bde2f0014dc86a564555106a4291c0867b4 (diff) | |
download | art-86a8d7afc7f00ff0f5ea7b8aaf4d50514250a4e6.zip art-86a8d7afc7f00ff0f5ea7b8aaf4d50514250a4e6.tar.gz art-86a8d7afc7f00ff0f5ea7b8aaf4d50514250a4e6.tar.bz2 |
Consistently use k{InstructionSet}WordSize.
These constants were defined prior to k{InstructionSet}PointerSize. So
use them consistently in optimizing as a first step. We can discuss
whether we should remove them in a second step.
Change-Id: If129de1a3bb8b65f8d9c816a8ad466815fb202e6
Diffstat (limited to 'compiler/optimizing/code_generator_x86.h')
-rw-r--r-- | compiler/optimizing/code_generator_x86.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_x86.h b/compiler/optimizing/code_generator_x86.h index 8252f81..0aff6cc 100644 --- a/compiler/optimizing/code_generator_x86.h +++ b/compiler/optimizing/code_generator_x86.h @@ -25,7 +25,8 @@ namespace art { namespace x86 { -static constexpr size_t kX86WordSize = 4; +// Use a local definition to prevent copying mistakes. +static constexpr size_t kX86WordSize = kX86PointerSize; class CodeGeneratorX86; class SlowPathCodeX86; |