| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |