Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 8dde18d2535aef1413fa3f26349d2fa69f264fbc..7a4e00fc3e64017ad140c6da609e9799b033ec56 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -142,7 +142,7 @@ bool LCodeGen::GeneratePrologue() { |
// global proxy when called as functions (without an explicit receiver |
// object). |
if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && |
- !info_->is_native()) { |
+ !info_->is_native() && info_->scope()->has_this_declaration()) { |
Label ok; |
// +1 for return address. |
int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize; |