Chromium Code Reviews| Index: src/compiler/ast-graph-builder.cc |
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
| index 2db1873fdf10c051effb0672148d62e53b3b7537..521b293f7dbc013af5be4d4aab7caa1a2d6b2cbf 100644 |
| --- a/src/compiler/ast-graph-builder.cc |
| +++ b/src/compiler/ast-graph-builder.cc |
| @@ -1133,12 +1133,7 @@ void AstGraphBuilder::VisitVariableDeclaration(VariableDeclaration* decl) { |
| break; |
| case VariableLocation::LOOKUP: { |
|
Michael Starzinger
2016/06/09 16:10:33
nit: Can we CHECK(!hole_init) here?
adamk
2016/06/09 16:12:36
Shall I add that in all the full-codegens too?
Michael Starzinger
2016/06/09 16:15:40
Hmm, yeah, good idea. Better err on the safe side.
|
| Node* name = jsgraph()->Constant(variable->name()); |
| - // For variables we must not push an initial value (such as 'undefined') |
| - // because we may have a (legal) redeclaration and we must not destroy |
| - // the current value. |
| - Node* value = |
| - hole_init ? jsgraph()->TheHoleConstant() |
| - : jsgraph()->ZeroConstant(); // Indicates no initial value. |
| + Node* value = jsgraph()->ZeroConstant(); // Indicates no initial value. |
| Node* attr = |
| jsgraph()->Constant(variable->DeclarationPropertyAttributes()); |
| const Operator* op = |