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

Unified Diff: src/variables.h

Issue 149245: Allow variable proxies for the same global variable to share the same... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/scopes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.h
===================================================================
--- src/variables.h (revision 2366)
+++ src/variables.h (working copy)
@@ -143,6 +143,12 @@
ARGUMENTS
};
+ Variable(Scope* scope,
+ Handle<String> name,
+ Mode mode,
+ bool is_valid_lhs,
+ Kind kind);
+
// Printing support
static const char* Mode2String(Mode mode);
@@ -196,9 +202,6 @@
SmiAnalysis* type() { return &type_; }
private:
- Variable(Scope* scope, Handle<String> name, Mode mode, bool is_valid_LHS,
- Kind kind);
-
Scope* scope_;
Handle<String> name_;
Mode mode_;
@@ -216,13 +219,10 @@
SmiAnalysis type_;
// Code generation.
- // rewrite_ is usually a Slot or a Property, but maybe any expression.
+ // rewrite_ is usually a Slot or a Property, but may be any expression.
Expression* rewrite_;
- friend class VariableProxy;
- friend class Scope;
- friend class LocalsMap;
- friend class AstBuildingParser;
+ friend class Scope; // Has explicit access to rewrite_.
};
« no previous file with comments | « src/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698