Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: runtime/vm/assembler_mips.cc

Issue 1846063002: - Fix the hash code for raw objects that are added into the object pool (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698