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

Unified Diff: arguments/src/variables.h

Issue 6667076: Remove arguments shadow from scopes, stop rewriting parameters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental
Patch Set: Created 9 years, 9 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
Index: arguments/src/variables.h
diff --git a/arguments/src/variables.h b/arguments/src/variables.h
index 5d27a02d5375ec70b84934e637b0a18a0e621f41..6cfc4a5d648d77e07a3dfff2a67b44ccd91a586e 100644
--- a/arguments/src/variables.h
+++ b/arguments/src/variables.h
@@ -178,8 +178,8 @@ class Variable: public ZoneObject {
local_if_not_shadowed_ = local;
}
- Expression* rewrite() const { return rewrite_; }
- void set_rewrite(Expression* expr) { rewrite_ = expr; }
+ Slot* rewrite() const { return rewrite_; }
+ void set_rewrite(Slot* expr) { rewrite_ = expr; }
StaticType* type() { return &type_; }
@@ -195,8 +195,7 @@ class Variable: public ZoneObject {
StaticType type_;
// Code generation.
- // rewrite_ is usually a Slot or a Property, but may be any expression.
- Expression* rewrite_;
+ Slot* rewrite_;
// Valid as a LHS? (const and this are not valid LHS, for example)
bool is_valid_LHS_;

Powered by Google App Engine
This is Rietveld 408576698