Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 8315a69ccd5de1d258c8860a1d8138a7c9ea20d4..e0e9100828f4a02135d8d9916e9ce388084e8b50 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -10600,8 +10600,8 @@ void HOptimizedGraphBuilder::VisitDelete(UnaryOperation* expr) { |
// 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(); |
+ HValue* value = var->is_this() ? graph()->GetConstantTrue() |
+ : graph()->GetConstantFalse(); |
return ast_context()->ReturnValue(value); |
} else { |
Bailout(kDeleteWithNonGlobalVariable); |