diff options
author | Dave Allison <dallison@google.com> | 2014-06-23 13:19:59 -0700 |
---|---|---|
committer | Dave Allison <dallison@google.com> | 2014-06-23 13:19:59 -0700 |
commit | 50abf0ad03c2cad0fa7969fc1b0bfadb0ca3bf3a (patch) | |
tree | 36e6b2f2453f47dbd12223cfcae07daebf152b8b /compiler/compiled_method.cc | |
parent | 49e5ec42595b29e233fb92b8bd2cf8ade77c6501 (diff) | |
download | art-50abf0ad03c2cad0fa7969fc1b0bfadb0ca3bf3a.zip art-50abf0ad03c2cad0fa7969fc1b0bfadb0ca3bf3a.tar.gz art-50abf0ad03c2cad0fa7969fc1b0bfadb0ca3bf3a.tar.bz2 |
Move trampolines to thumb2 instead of ARM
Currently the entrypoint trampolines are compiled using the ARM32 assembler.
This changes that to use the thumb2 assembler for consistency with the
other compiled code.
Bug: 15455279
Change-Id: I6bacdf359e2ae4c0967fb5cd9dc694af11f802ec
Diffstat (limited to 'compiler/compiled_method.cc')
-rw-r--r-- | compiler/compiled_method.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 7441dac..f098a34 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -86,7 +86,11 @@ uint32_t CompiledCode::AlignCode(uint32_t offset, InstructionSet instruction_set } size_t CompiledCode::CodeDelta() const { - switch (instruction_set_) { + return CodeDelta(instruction_set_); +} + +size_t CompiledCode::CodeDelta(InstructionSet instruction_set) { + switch (instruction_set) { case kArm: case kArm64: case kMips: @@ -98,7 +102,7 @@ size_t CompiledCode::CodeDelta() const { return 1; } default: - LOG(FATAL) << "Unknown InstructionSet: " << instruction_set_; + LOG(FATAL) << "Unknown InstructionSet: " << instruction_set; return 0; } } |