Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 59111e8f5d9453a132078a57929c61c4d5974587..0e9fdb552646468aee93300aa5b46e35f53b9ade 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1792,14 +1792,6 @@ Node* AstGraphBuilder::BuildVariableAssignment(Variable* variable, Node* value, |
switch (variable->location()) { |
case Variable::UNALLOCATED: { |
// Global var, const, or let variable. |
- if (!info()->is_native()) { |
- // TODO(turbofan): This special case is needed only because we don't |
- // use StoreICs yet. Remove this once StoreNamed is lowered to an IC. |
- Node* name = jsgraph()->Constant(variable->name()); |
- Node* strict = jsgraph()->Constant(strict_mode()); |
- Operator* op = javascript()->Runtime(Runtime::kStoreLookupSlot, 4); |
- return NewNode(op, value, current_context(), name, strict); |
- } |
Node* global = BuildLoadGlobalObject(); |
PrintableUnique<Name> name = MakeUnique(variable->name()); |
Operator* op = javascript()->StoreNamed(name); |