Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index 4e107bd3fdab1a258a5ff747ebc63893094cd5e8..538640129d9415d5cbd3b83f042d0708e6f4f2a7 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -1577,8 +1577,7 @@ void DeclarationScope::AllocateParameterLocals() { |
if (var == rest_parameter_) continue; |
DCHECK(var->scope() == this); |
- if (uses_sloppy_arguments || has_forced_context_allocation()) { |
- // Force context allocation of the parameter. |
+ if (uses_sloppy_arguments) { |
var->ForceContextAllocation(); |
} |
AllocateParameter(var, i); |
@@ -1607,11 +1606,6 @@ void DeclarationScope::AllocateReceiver() { |
if (!has_this_declaration()) return; |
DCHECK_NOT_NULL(receiver()); |
DCHECK_EQ(receiver()->scope(), this); |
- |
- if (has_forced_context_allocation()) { |
- // Force context allocation of the receiver. |
- receiver()->ForceContextAllocation(); |
- } |
AllocateParameter(receiver(), -1); |
} |