OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 // Determine if we can use lazy compilation for this scope. | 271 // Determine if we can use lazy compilation for this scope. |
272 bool AllowsLazyCompilation() const; | 272 bool AllowsLazyCompilation() const; |
273 | 273 |
274 // True if the outer context of this scope is always the global context. | 274 // True if the outer context of this scope is always the global context. |
275 bool HasTrivialOuterContext() const; | 275 bool HasTrivialOuterContext() const; |
276 | 276 |
277 // The number of contexts between this and scope; zero if this == scope. | 277 // The number of contexts between this and scope; zero if this == scope. |
278 int ContextChainLength(Scope* scope); | 278 int ContextChainLength(Scope* scope); |
279 | 279 |
| 280 |
280 // --------------------------------------------------------------------------- | 281 // --------------------------------------------------------------------------- |
281 // Debugging. | 282 // Debugging. |
282 | 283 |
283 #ifdef DEBUG | 284 #ifdef DEBUG |
284 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively | 285 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively |
285 #endif | 286 #endif |
286 | 287 |
287 // --------------------------------------------------------------------------- | 288 // --------------------------------------------------------------------------- |
288 // Implementation. | 289 // Implementation. |
289 protected: | 290 protected: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 virtual VariableProxy* NewUnresolved(Handle<String> name, bool inside_with) { | 392 virtual VariableProxy* NewUnresolved(Handle<String> name, bool inside_with) { |
392 return NULL; | 393 return NULL; |
393 } | 394 } |
394 virtual VariableProxy* NewTemporary(Handle<String> name) { return NULL; } | 395 virtual VariableProxy* NewTemporary(Handle<String> name) { return NULL; } |
395 }; | 396 }; |
396 | 397 |
397 | 398 |
398 } } // namespace v8::internal | 399 } } // namespace v8::internal |
399 | 400 |
400 #endif // V8_SCOPES_H_ | 401 #endif // V8_SCOPES_H_ |
OLD | NEW |