From: mmaly@chromium.org Date: Wed, 26 Jan 2011 18:15:43 +0000 (+0000) Subject: Compress Variable class. X-Git-Tag: upstream/4.7.83~20421 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=498e3ce3cc1faf66cadb2a6c51d4f3c4dbe7d9cd;p=platform%2Fupstream%2Fv8.git Compress Variable class. Review Link: http://codereview.chromium.org/6246019/ git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6502 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/variables.cc b/src/variables.cc index 7f580fc6f..fa7ce1b0c 100644 --- a/src/variables.cc +++ b/src/variables.cc @@ -112,12 +112,12 @@ Variable::Variable(Scope* scope, : scope_(scope), name_(name), mode_(mode), - is_valid_LHS_(is_valid_LHS), kind_(kind), local_if_not_shadowed_(NULL), + rewrite_(NULL), + is_valid_LHS_(is_valid_LHS), is_accessed_from_inner_scope_(false), - is_used_(false), - rewrite_(NULL) { + is_used_(false) { // names must be canonicalized for fast equality checks ASSERT(name->IsSymbol()); } diff --git a/src/variables.h b/src/variables.h index 882a52ed8..5d27a02d5 100644 --- a/src/variables.h +++ b/src/variables.h @@ -187,21 +187,23 @@ class Variable: public ZoneObject { Scope* scope_; Handle name_; Mode mode_; - bool is_valid_LHS_; Kind kind_; Variable* local_if_not_shadowed_; - // Usage info. - bool is_accessed_from_inner_scope_; // set by variable resolver - bool is_used_; - // Static type information StaticType type_; // Code generation. // rewrite_ is usually a Slot or a Property, but may be any expression. Expression* rewrite_; + + // Valid as a LHS? (const and this are not valid LHS, for example) + bool is_valid_LHS_; + + // Usage info. + bool is_accessed_from_inner_scope_; // set by variable resolver + bool is_used_; };