Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index d81a00fc92aa93b7e9adbd21ddc703ec4afc3360..a1172262b06cc82bd8034f5e909f7158c611abcd 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2666,10 +2666,15 @@ void MacroAssembler::CmpWeakValue(Register value, Handle<WeakCell> cell, |
} |
-void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
- Label* miss) { |
+void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) { |
Move(value, cell, RelocInfo::EMBEDDED_OBJECT); |
movp(value, FieldOperand(value, WeakCell::kValueOffset)); |
+} |
+ |
+ |
+void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
+ Label* miss) { |
+ GetWeakValue(value, cell); |
JumpIfSmi(value, miss); |
} |