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

Unified Diff: src/ic/mips64/ic-compiler-mips64.cc

Issue 782273004: MIPS: Fix after 'Reland remaining parts of 'Use weak cells in map checks in polymorphic ICs''. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « src/ic/mips/ic-compiler-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/mips64/ic-compiler-mips64.cc
diff --git a/src/ic/mips64/ic-compiler-mips64.cc b/src/ic/mips64/ic-compiler-mips64.cc
index 25588248abac3b5a59c9c68b13f984f4592b428b..39dfe257958febfee7505b4af13452c66c3423ed 100644
--- a/src/ic/mips64/ic-compiler-mips64.cc
+++ b/src/ic/mips64/ic-compiler-mips64.cc
@@ -58,13 +58,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
// Check map and tail call if there's a match.
// Separate compare from branch, to provide path for above JumpIfSmi().
Handle<WeakCell> cell = Map::WeakCellForMap(map);
- __ CmpWeakValue(match, map_reg, cell);
+ __ GetWeakValue(match, cell);
if (type->Is(HeapType::Number())) {
DCHECK(!number_case.is_unused());
__ bind(&number_case);
}
__ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match,
- Operand(zero_reg));
+ Operand(map_reg));
}
}
DCHECK(number_of_handled_maps != 0);
@@ -91,13 +91,13 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
__ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
for (int i = 0; i < receiver_count; ++i) {
Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i));
- __ CmpWeakValue(match, map_reg, cell);
+ __ GetWeakValue(match, cell);
if (transitioned_maps->at(i).is_null()) {
__ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq, match,
- Operand(zero_reg));
+ Operand(map_reg));
} else {
Label next_map;
- __ Branch(&next_map, ne, match, Operand(zero_reg));
+ __ Branch(&next_map, ne, match, Operand(map_reg));
Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i));
__ LoadWeakValue(transition_map(), cell, &miss);
__ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET);
« no previous file with comments | « src/ic/mips/ic-compiler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698