Index: src/codegen-arm.cc |
=================================================================== |
--- src/codegen-arm.cc (revision 1710) |
+++ src/codegen-arm.cc (working copy) |
@@ -2446,6 +2446,10 @@ |
r1, |
r2, |
&slow)); |
+ if (potential_slot->var()->mode() == Variable::CONST) { |
+ __ cmp(r0, Operand(Factory::the_hole_value())); |
+ __ mov(r0, Operand(Factory::undefined_value()), LeaveCC, eq); |
+ } |
// There is always control flow to slow from |
// ContextSlotOperandCheckExtensions. |
done.Jump(); |