Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 82f718319c709beefc48e5e4391677e7fe4dc6e2..20133c14e3daa0784c16d7d3af62d11d12705974 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -3805,6 +3805,22 @@ void MacroAssembler::DispatchMap(Register obj, |
} |
+void MacroAssembler::CmpWeakValue(Register value, Handle<WeakCell> cell, |
+ Register scratch) { |
+ Mov(scratch, Operand(cell)); |
+ Ldr(scratch, FieldMemOperand(scratch, WeakCell::kValueOffset)); |
+ Cmp(value, scratch); |
+} |
+ |
+ |
+void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
+ Label* miss) { |
+ Mov(value, Operand(cell)); |
+ Ldr(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
+ JumpIfSmi(value, miss); |
+} |
+ |
+ |
void MacroAssembler::TestMapBitfield(Register object, uint64_t mask) { |
UseScratchRegisterScope temps(this); |
Register temp = temps.AcquireX(); |