Index: runtime/vm/assembler_arm64.cc |
diff --git a/runtime/vm/assembler_arm64.cc b/runtime/vm/assembler_arm64.cc |
index a481b7b71b646222f362c76103eaa2006a579c92..28dc872312bcde4e7f77efcfbaa6308920f945b4 100644 |
--- a/runtime/vm/assembler_arm64.cc |
+++ b/runtime/vm/assembler_arm64.cc |
@@ -583,7 +583,7 @@ void Assembler::LoadDImmediate(VRegister vd, double immd) { |
void Assembler::Branch(const StubEntry& stub_entry, |
Register pp, |
Patchability patchable) { |
- const Code& target = Code::Handle(stub_entry.code()); |
+ const Code& target = Code::ZoneHandle(stub_entry.code()); |
const int32_t offset = ObjectPool::element_offset( |
object_pool_wrapper_.FindObject(target, patchable)); |
LoadWordFromPoolOffset(CODE_REG, offset, pp); |
@@ -598,7 +598,7 @@ void Assembler::BranchPatchable(const StubEntry& stub_entry) { |
void Assembler::BranchLink(const StubEntry& stub_entry, |
Patchability patchable) { |
- const Code& target = Code::Handle(stub_entry.code()); |
+ const Code& target = Code::ZoneHandle(stub_entry.code()); |
const int32_t offset = ObjectPool::element_offset( |
object_pool_wrapper_.FindObject(target, patchable)); |
LoadWordFromPoolOffset(CODE_REG, offset); |
@@ -621,7 +621,7 @@ void Assembler::BranchLinkToRuntime() { |
void Assembler::BranchLinkWithEquivalence(const StubEntry& stub_entry, |
const Object& equivalence) { |
- const Code& target = Code::Handle(stub_entry.code()); |
+ const Code& target = Code::ZoneHandle(stub_entry.code()); |
const int32_t offset = ObjectPool::element_offset( |
object_pool_wrapper_.FindObject(target, equivalence)); |
LoadWordFromPoolOffset(CODE_REG, offset); |