diff options
| author | 2017-12-15 10:08:11 +0000 | |
|---|---|---|
| committer | 2017-12-15 10:08:11 +0000 | |
| commit | fe8a8975cd843c9a7922aaf0badae2d47562e9cd (patch) | |
| tree | afaa12ffee3f70785607975c59f47e43111df61c /compiler/optimizing/code_generator.cc | |
| parent | c8d910399cfd33550c497cc3e1e05b0396903234 (diff) | |
| parent | 8758454d380a2b0de1f4a99e9623cfac5460ccdf (diff) | |
Merge changes Ib1381084,Icb2a838f
* changes:
Clean up InstanceOf/CheckCast.
X86: Clean up interface type check for heap poisoning.
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
| -rw-r--r-- | compiler/optimizing/code_generator.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 45eec6d744..dee74e96dc 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -295,15 +295,6 @@ void CodeGenerator::EmitJitRootPatches(uint8_t* code ATTRIBUTE_UNUSED, DCHECK_EQ(code_generation_data_->GetNumberOfJitClassRoots(), 0u); } -size_t CodeGenerator::GetCacheOffset(uint32_t index) { - return sizeof(GcRoot<mirror::Object>) * index; -} - -size_t CodeGenerator::GetCachePointerOffset(uint32_t index) { - PointerSize pointer_size = InstructionSetPointerSize(GetInstructionSet()); - return static_cast<size_t>(pointer_size) * index; -} - uint32_t CodeGenerator::GetArrayLengthOffset(HArrayLength* array_length) { return array_length->IsStringLength() ? mirror::String::CountOffset().Uint32Value() |