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

Unified Diff: src/variables.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 5 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/v8.cc ('k') | src/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.h
diff --git a/src/variables.h b/src/variables.h
index 58089b36ed9699463763c9681fbd2670c313f0a2..2749b7b5b6f9c5613f62746f4034faef6b8b2ae0 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -52,12 +52,9 @@ class Variable: public ZoneObject {
LOOKUP
};
- Variable(Scope* scope,
- const AstRawString* name,
- VariableMode mode,
- bool is_valid_ref,
- Kind kind,
- InitializationFlag initialization_flag,
+ Variable(Scope* scope, const AstRawString* name, VariableMode mode,
+ bool is_valid_ref, Kind kind, InitializationFlag initialization_flag,
+ MaybeAssignedFlag maybe_assigned_flag = kNotAssigned,
Interface* interface = Interface::NewValue());
// Printing support
@@ -83,8 +80,8 @@ class Variable: public ZoneObject {
}
bool is_used() { return is_used_; }
void set_is_used() { is_used_ = true; }
- bool maybe_assigned() { return maybe_assigned_; }
- void set_maybe_assigned() { maybe_assigned_ = true; }
+ MaybeAssignedFlag maybe_assigned() const { return maybe_assigned_; }
+ void set_maybe_assigned() { maybe_assigned_ = kMaybeAssigned; }
int initializer_position() { return initializer_position_; }
void set_initializer_position(int pos) { initializer_position_ = pos; }
@@ -159,8 +156,8 @@ class Variable: public ZoneObject {
// Usage info.
bool force_context_allocation_; // set by variable resolver
bool is_used_;
- bool maybe_assigned_;
InitializationFlag initialization_flag_;
+ MaybeAssignedFlag maybe_assigned_;
// Module type info.
Interface* interface_;
« no previous file with comments | « src/v8.cc ('k') | src/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698