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

Unified Diff: src/ast/variables.cc

Issue 2394403002: [cleanup] Remove dead code from Variable and simplify PatternRewriter slightly (Closed)
Patch Set: Created 4 years, 2 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 | « src/ast/variables.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/variables.cc
diff --git a/src/ast/variables.cc b/src/ast/variables.cc
index cc269cd0c7f850d76cf9861b1dd55d64406051bb..13ce9865427758a3c5416c79bdc16e3d49b6d34f 100644
--- a/src/ast/variables.cc
+++ b/src/ast/variables.cc
@@ -40,14 +40,5 @@ bool Variable::IsGlobalObjectProperty() const {
scope_ != NULL && scope_->is_script_scope();
}
-
-bool Variable::IsStaticGlobalObjectProperty() const {
- // Temporaries are never global, they must always be allocated in the
- // activation frame.
- return (IsDeclaredVariableMode(mode()) && !IsLexicalVariableMode(mode())) &&
- scope_ != NULL && scope_->is_script_scope();
-}
-
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/ast/variables.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698