Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index 2ad1ff447e26d51a7b4750ab979e8a9b96d0a1bb..262817c912ba9750b6acb6db8cb9cf7cdb3d175a 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -215,8 +215,7 @@ bool CompilationInfo::is_simple_parameter_list() { |
| bool CompilationInfo::MayUseThis() const { |
| - return scope()->uses_this() || scope()->inner_uses_this() || |
| - scope()->calls_sloppy_eval(); |
| + return scope()->has_this_declaration() && scope()->receiver()->is_used(); |
| } |