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

Side by Side Diff: src/variables.h

Issue 7904008: Introduce with scope and rework variable resolution. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Latest version. Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/scopes.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 private: 177 private:
178 Scope* scope_; 178 Scope* scope_;
179 Handle<String> name_; 179 Handle<String> name_;
180 Mode mode_; 180 Mode mode_;
181 Kind kind_; 181 Kind kind_;
182 Location location_; 182 Location location_;
183 int index_; 183 int index_;
184 184
185 // If this field is set, this variable references the stored locally bound
186 // variable, but it might be shadowed by variable bindings introduced by
187 // non-strict 'eval' calls between the reference scope (inclusive) and the
188 // binding scope (exclusive).
185 Variable* local_if_not_shadowed_; 189 Variable* local_if_not_shadowed_;
186 190
187 // Valid as a LHS? (const and this are not valid LHS, for example) 191 // Valid as a LHS? (const and this are not valid LHS, for example)
188 bool is_valid_LHS_; 192 bool is_valid_LHS_;
189 193
190 // Usage info. 194 // Usage info.
191 bool is_accessed_from_inner_scope_; // set by variable resolver 195 bool is_accessed_from_inner_scope_; // set by variable resolver
192 bool is_used_; 196 bool is_used_;
193 }; 197 };
194 198
195 199
196 } } // namespace v8::internal 200 } } // namespace v8::internal
197 201
198 #endif // V8_VARIABLES_H_ 202 #endif // V8_VARIABLES_H_
OLDNEW
« no previous file with comments | « src/scopes.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698