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

Unified Diff: src/ast/variables.h

Issue 2061173002: [cleanup] Remove dead code from DeclareLookupSlot and rename it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handled review comments Created 4 years, 6 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/ast/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/variables.h
diff --git a/src/ast/variables.h b/src/ast/variables.h
index b8bb07eab7afcba33148fb708c12790f7db5e510..7d54bc09c4d8d77d52f2b53ba8b398d6bd50c499 100644
--- a/src/ast/variables.h
+++ b/src/ast/variables.h
@@ -119,21 +119,8 @@ class Variable: public ZoneObject {
index_ = index;
}
- void SetFromEval() { is_from_eval_ = true; }
-
static int CompareIndex(Variable* const* v, Variable* const* w);
- PropertyAttributes DeclarationPropertyAttributes() const {
- int property_attributes = NONE;
- if (IsImmutableVariableMode(mode_)) {
- property_attributes |= READ_ONLY;
- }
- if (is_from_eval_) {
- property_attributes |= EVAL_DECLARED;
- }
- return static_cast<PropertyAttributes>(property_attributes);
- }
-
private:
Scope* scope_;
const AstRawString* name_;
@@ -149,9 +136,6 @@ class Variable: public ZoneObject {
// binding scope (exclusive).
Variable* local_if_not_shadowed_;
- // True if this variable is introduced by a sloppy eval
- bool is_from_eval_;
-
// Usage info.
bool force_context_allocation_; // set by variable resolver
bool is_used_;
« no previous file with comments | « no previous file | src/ast/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698