Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 8f0ae09088e495ee3e82319824be602cc6e6faca..b621e868a736658a4644c435fbe0c8b1a8fb31fa 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -3988,6 +3988,22 @@ void MacroAssembler::CheckMap(Register obj, |
} |
+void MacroAssembler::CmpWeakValue(Register match, Register value, |
+ Handle<WeakCell> cell) { |
+ li(match, Operand(cell)); |
+ ld(match, FieldMemOperand(match, WeakCell::kValueOffset)); |
+ Dsubu(match, value, match); |
+} |
+ |
+ |
+void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
+ Label* miss) { |
+ li(value, Operand(cell)); |
+ ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
+ JumpIfSmi(value, miss); |
+} |
+ |
+ |
void MacroAssembler::MovFromFloatResult(const DoubleRegister dst) { |
if (IsMipsSoftFloatABI) { |
Move(dst, v0, v1); |