| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively | 312 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively |
| 313 #endif | 313 #endif |
| 314 | 314 |
| 315 // --------------------------------------------------------------------------- | 315 // --------------------------------------------------------------------------- |
| 316 // Implementation. | 316 // Implementation. |
| 317 protected: | 317 protected: |
| 318 friend class ParserFactory; | 318 friend class ParserFactory; |
| 319 | 319 |
| 320 explicit Scope(Type type); | 320 explicit Scope(Type type); |
| 321 | 321 |
| 322 Isolate* const isolate_; |
| 323 |
| 322 // Scope tree. | 324 // Scope tree. |
| 323 Scope* outer_scope_; // the immediately enclosing outer scope, or NULL | 325 Scope* outer_scope_; // the immediately enclosing outer scope, or NULL |
| 324 ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes | 326 ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes |
| 325 | 327 |
| 326 // The scope type. | 328 // The scope type. |
| 327 Type type_; | 329 Type type_; |
| 328 | 330 |
| 329 // Debugging support. | 331 // Debugging support. |
| 330 Handle<String> scope_name_; | 332 Handle<String> scope_name_; |
| 331 | 333 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 433 } |
| 432 | 434 |
| 433 void SetDefaults(Type type, | 435 void SetDefaults(Type type, |
| 434 Scope* outer_scope, | 436 Scope* outer_scope, |
| 435 Handle<SerializedScopeInfo> scope_info); | 437 Handle<SerializedScopeInfo> scope_info); |
| 436 }; | 438 }; |
| 437 | 439 |
| 438 } } // namespace v8::internal | 440 } } // namespace v8::internal |
| 439 | 441 |
| 440 #endif // V8_SCOPES_H_ | 442 #endif // V8_SCOPES_H_ |
| OLD | NEW |