Chromium Code Reviews| Index: runtime/vm/assembler_arm.cc |
| diff --git a/runtime/vm/assembler_arm.cc b/runtime/vm/assembler_arm.cc |
| index e7c2150a2e49a36f400e11a54187256f4189db3b..7f07fca4100f0af09170f287b9585b358d693ffa 100644 |
| --- a/runtime/vm/assembler_arm.cc |
| +++ b/runtime/vm/assembler_arm.cc |
| @@ -1575,7 +1575,7 @@ void Assembler::LoadObject(Register rd, const Object& object, Condition cond) { |
| // Make sure that class CallPattern is able to decode this load from the |
| // object pool. |
| const int32_t offset = |
| - Array::element_offset(object_pool_.FindObject(object, kNotPatchable)); |
| + ObjectPool::element_offset(object_pool_.FindObject(object)); |
| LoadWordFromPoolOffset(rd, offset - kHeapObjectTag, cond); |
| } |
| } |
| @@ -2660,8 +2660,9 @@ void Assembler::BranchLinkPatchable(const ExternalLabel* label) { |
| // to by this code sequence. |
| // For added code robustness, use 'blx lr' in a patchable sequence and |
| // use 'blx ip' in a non-patchable sequence (see other BranchLink flavors). |
| - const int32_t offset = |
| - Array::element_offset(object_pool_.FindExternalLabel(label, kPatchable)); |
| + const int32_t offset = ObjectPool::element_offset( |
| + object_pool_. |
| + FindExternalLabel(label, kPatchable)); |
|
srdjan
2015/06/09 21:49:46
Should fit on two instead of three lines.
Florian Schneider
2015/06/10 08:26:17
Done.
|
| LoadWordFromPoolOffset(LR, offset - kHeapObjectTag); |
| blx(LR); // Use blx instruction so that the return branch prediction works. |
| } |