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

Unified Diff: src/ast.h

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 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 | « src/arm64/stub-cache-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 1396bf4aaabfa28dec0d90bacbcdd7b533e2147f..23f9eef477a9a318769ad67256b650e23ca11372 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1628,14 +1628,17 @@ class VariableProxy V8_FINAL : public Expression {
bool IsArguments() const { return var_ != NULL && var_->is_arguments(); }
+ bool IsLValue() const { return is_lvalue_; }
+
Handle<String> name() const { return name_->string(); }
const AstRawString* raw_name() const { return name_; }
Variable* var() const { return var_; }
bool is_this() const { return is_this_; }
Interface* interface() const { return interface_; }
- bool is_assigned() const { return is_assigned_; }
- void set_is_assigned() { is_assigned_ = true; }
+
+ void MarkAsTrivial() { is_trivial_ = true; }
+ void MarkAsLValue() { is_lvalue_ = true; }
// Bind this proxy to the variable var. Interfaces must match.
void BindTo(Variable* var);
@@ -1652,7 +1655,10 @@ class VariableProxy V8_FINAL : public Expression {
const AstRawString* name_;
Variable* var_; // resolved variable, or NULL
bool is_this_;
- bool is_assigned_;
+ bool is_trivial_;
+ // True if this variable proxy is being used in an assignment
+ // or with a increment/decrement operator.
+ bool is_lvalue_;
Interface* interface_;
};
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698