| 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 | |
| 281 // --------------------------------------------------------------------------- | 280 // --------------------------------------------------------------------------- |
| 282 // Debugging. | 281 // Debugging. |
| 283 | 282 |
| 284 #ifdef DEBUG | 283 #ifdef DEBUG |
| 285 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively | 284 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively |
| 286 #endif | 285 #endif |
| 287 | 286 |
| 288 // --------------------------------------------------------------------------- | 287 // --------------------------------------------------------------------------- |
| 289 // Implementation. | 288 // Implementation. |
| 290 protected: | 289 protected: |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 virtual VariableProxy* NewUnresolved(Handle<String> name, bool inside_with) { | 391 virtual VariableProxy* NewUnresolved(Handle<String> name, bool inside_with) { |
| 393 return NULL; | 392 return NULL; |
| 394 } | 393 } |
| 395 virtual VariableProxy* NewTemporary(Handle<String> name) { return NULL; } | 394 virtual VariableProxy* NewTemporary(Handle<String> name) { return NULL; } |
| 396 }; | 395 }; |
| 397 | 396 |
| 398 | 397 |
| 399 } } // namespace v8::internal | 398 } } // namespace v8::internal |
| 400 | 399 |
| 401 #endif // V8_SCOPES_H_ | 400 #endif // V8_SCOPES_H_ |
| OLD | NEW |