Index: src/codegen-ia32.cc |
=================================================================== |
--- src/codegen-ia32.cc (revision 1710) |
+++ src/codegen-ia32.cc (working copy) |
@@ -3286,6 +3286,11 @@ |
ContextSlotOperandCheckExtensions(potential_slot, |
value, |
&slow)); |
+ if (potential_slot->var()->mode() == Variable::CONST) { |
+ __ cmp(value.reg(), Factory::the_hole_value()); |
+ done.Branch(not_equal, &value); |
+ __ mov(value.reg(), Factory::undefined_value()); |
+ } |
// There is always control flow to slow from |
Kevin Millikin (Chromium)
2009/04/15 10:42:54
This comment isn't explicit enough. Could you add
|
// ContextSlotOperandCheckExtensions. |
done.Jump(&value); |