Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index f28afa8141f91282756c69a382cb7205cfd94c5e..03fd248d0882bdac0af381dff936bdf68d52ae96 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -141,7 +141,7 @@ bool LCodeGen::GeneratePrologue() { |
// Sloppy mode functions and builtins 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; |
// +1 for return address. |