Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 6274b744036cf51d396d67254338e832dfdda16e..53ffa39357c97a47aa53df3f934a712fb30e9380 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2403,10 +2403,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) { |
mov(value, cell); |
mov(value, FieldOperand(value, WeakCell::kValueOffset)); |
+} |
+ |
+ |
+void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
+ Label* miss) { |
+ GetWeakValue(value, cell); |
JumpIfSmi(value, miss); |
} |