Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: src/compiler.cc

Issue 1131713004: Revert of Remove Scope::scope_uses_this_ flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 262817c912ba9750b6acb6db8cb9cf7cdb3d175a..2ad1ff447e26d51a7b4750ab979e8a9b96d0a1bb 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -215,7 +215,8 @@
bool CompilationInfo::MayUseThis() const {
- return scope()->has_this_declaration() && scope()->receiver()->is_used();
+ return scope()->uses_this() || scope()->inner_uses_this() ||
+ scope()->calls_sloppy_eval();
}
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698