Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 810a8b92210d4bb2389d024490c65b0b88e22eb1..ecf05f4bc53555367cf1c19c649c6be9d2d0b0d3 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -10197,12 +10197,11 @@ void HOptimizedGraphBuilder::VisitDelete(UnaryOperation* expr) { |
if (var->IsUnallocated()) { |
Bailout(kDeleteWithGlobalVariable); |
} else if (var->IsStackAllocated() || var->IsContextSlot()) { |
- // Result of deleting non-global variables is false. 'this' is not |
- // really a variable, though we implement it as one. The |
- // subexpression does not have side effects. |
- HValue* value = var->is_this() |
- ? graph()->GetConstantTrue() |
- : graph()->GetConstantFalse(); |
+ // Result of deleting non-global variables is false. 'this' is not really |
+ // a variable, though we implement it as one. The subexpression does not |
+ // have side effects. |
+ HValue* value = var->HasThisName(isolate()) ? graph()->GetConstantTrue() |
+ : graph()->GetConstantFalse(); |
return ast_context()->ReturnValue(value); |
} else { |
Bailout(kDeleteWithNonGlobalVariable); |