Chromium Code Reviews| Index: src/rewriter.cc |
| =================================================================== |
| --- src/rewriter.cc (revision 4169) |
| +++ src/rewriter.cc (working copy) |
| @@ -247,7 +247,9 @@ |
| } |
| if (FLAG_safe_int32_compiler) { |
| - if (var->IsStackAllocated() && !var->is_arguments()) { |
| + if (var->IsStackAllocated() && |
| + !var->is_arguments() && |
| + var->mode() != Variable::CONST) { |
| node->set_side_effect_free(true); |
| } |
| } |