| Index: runtime/vm/assembler_mips.cc
|
| diff --git a/runtime/vm/assembler_mips.cc b/runtime/vm/assembler_mips.cc
|
| index 98aebcbdd70f205b61b71a262a4923b20128c808..68794ed7a6ebb1854a22e6cbbb8a63c16230316f 100644
|
| --- a/runtime/vm/assembler_mips.cc
|
| +++ b/runtime/vm/assembler_mips.cc
|
| @@ -493,9 +493,9 @@ void Assembler::RestoreCodePointer() {
|
|
|
| void Assembler::Branch(const StubEntry& stub_entry, Register pp) {
|
| ASSERT(!in_delay_slot_);
|
| - const Code& target_code = Code::Handle(stub_entry.code());
|
| + const Code& target_code = Code::ZoneHandle(stub_entry.code());
|
| const int32_t offset = ObjectPool::element_offset(
|
| - object_pool_wrapper_.FindObject(target_code, kPatchable));
|
| + object_pool_wrapper_.AddObject(target_code, kPatchable));
|
| LoadWordFromPoolOffset(CODE_REG, offset - kHeapObjectTag, pp);
|
| lw(TMP, FieldAddress(CODE_REG, Code::entry_point_offset()));
|
| jr(TMP);
|
| @@ -524,12 +524,12 @@ void Assembler::BranchLink(const Code& target, Patchability patchable) {
|
|
|
| void Assembler::BranchLink(const StubEntry& stub_entry,
|
| Patchability patchable) {
|
| - BranchLink(Code::Handle(stub_entry.code()), patchable);
|
| + BranchLink(Code::ZoneHandle(stub_entry.code()), patchable);
|
| }
|
|
|
|
|
| void Assembler::BranchLinkPatchable(const StubEntry& stub_entry) {
|
| - BranchLink(Code::Handle(stub_entry.code()), kPatchable);
|
| + BranchLink(Code::ZoneHandle(stub_entry.code()), kPatchable);
|
| }
|
|
|
|
|
| @@ -542,7 +542,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());
|
| ASSERT(!in_delay_slot_);
|
| const int32_t offset = ObjectPool::element_offset(
|
| object_pool_wrapper_.FindObject(target, equivalence));
|
|
|