diff options
| author | 2014-04-16 15:18:13 +0000 | |
|---|---|---|
| committer | 2014-04-16 15:18:14 +0000 | |
| commit | b94fae66dac14be955c68028447cdad84ee22bf9 (patch) | |
| tree | c6af9a1d373b4f8763c9001b8e81c9ae772011ab /compiler/compiled_method.cc | |
| parent | 2faf284e072230d4fd447955fa72ac4d9a3b51a0 (diff) | |
| parent | af13ad9fd18b6f75fe82e7995224c55654594f93 (diff) | |
Merge "Centralize instruction-set pointer-size, alignment, 64b-width code in instruction_set.h/cc"
Diffstat (limited to 'compiler/compiled_method.cc')
| -rw-r--r-- | compiler/compiled_method.cc | 16 | 
1 files changed, 1 insertions, 15 deletions
| diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 8e013c1ece..59ed8277d0 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -82,21 +82,7 @@ uint32_t CompiledCode::AlignCode(uint32_t offset) const {  }  uint32_t CompiledCode::AlignCode(uint32_t offset, InstructionSet instruction_set) { -  switch (instruction_set) { -    case kArm: -    case kThumb2: -      return RoundUp(offset, kArmAlignment); -    case kArm64: -      return RoundUp(offset, kArm64Alignment); -    case kMips: -      return RoundUp(offset, kMipsAlignment); -    case kX86:  // Fall-through. -    case kX86_64: -      return RoundUp(offset, kX86Alignment); -    default: -      LOG(FATAL) << "Unknown InstructionSet: " << instruction_set; -      return 0; -  } +  return RoundUp(offset, GetInstructionSetAlignment(instruction_set));  }  size_t CompiledCode::CodeDelta() const { |