Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index e70bebd938043890832a5bb106bca22fbf64ef06..51b85fc7f9489b2e8077f5b635e0fc23f899abed 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -129,7 +129,7 @@ bool LCodeGen::GeneratePrologue() { |
// Sloppy mode functions need to replace the receiver with the global proxy |
// when called as functions (without an explicit receiver object). |
- if (graph()->this_has_uses() && is_sloppy(info_->language_mode()) && |
+ if (is_sloppy(info_->language_mode()) && info()->MayUseThis() && |
!info_->is_native()) { |
Label ok; |
StackArgumentsAccessor args(rsp, scope()->num_parameters()); |