| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_SCOPES_H_ | 5 #ifndef V8_SCOPES_H_ |
| 6 #define V8_SCOPES_H_ | 6 #define V8_SCOPES_H_ |
| 7 | 7 |
| 8 #include "src/ast.h" | 8 #include "src/ast.h" |
| 9 #include "src/zone.h" | 9 #include "src/zone.h" |
| 10 | 10 |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 bool scope_calls_eval_; | 467 bool scope_calls_eval_; |
| 468 // The strict mode of this scope. | 468 // The strict mode of this scope. |
| 469 StrictMode strict_mode_; | 469 StrictMode strict_mode_; |
| 470 // Source positions. | 470 // Source positions. |
| 471 int start_position_; | 471 int start_position_; |
| 472 int end_position_; | 472 int end_position_; |
| 473 | 473 |
| 474 // Computed via PropagateScopeInfo. | 474 // Computed via PropagateScopeInfo. |
| 475 bool outer_scope_calls_sloppy_eval_; | 475 bool outer_scope_calls_sloppy_eval_; |
| 476 bool inner_scope_calls_eval_; | 476 bool inner_scope_calls_eval_; |
| 477 bool inner_scope_contains_with_; | |
| 478 bool force_eager_compilation_; | 477 bool force_eager_compilation_; |
| 479 bool force_context_allocation_; | 478 bool force_context_allocation_; |
| 480 | 479 |
| 481 // True if it doesn't need scope resolution (e.g., if the scope was | 480 // True if it doesn't need scope resolution (e.g., if the scope was |
| 482 // constructed based on a serialized scope info or a catch context). | 481 // constructed based on a serialized scope info or a catch context). |
| 483 bool already_resolved_; | 482 bool already_resolved_; |
| 484 | 483 |
| 485 // Computed as variables are declared. | 484 // Computed as variables are declared. |
| 486 int num_var_or_const_; | 485 int num_var_or_const_; |
| 487 | 486 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 Scope* outer_scope, | 613 Scope* outer_scope, |
| 615 Handle<ScopeInfo> scope_info); | 614 Handle<ScopeInfo> scope_info); |
| 616 | 615 |
| 617 AstValueFactory* ast_value_factory_; | 616 AstValueFactory* ast_value_factory_; |
| 618 Zone* zone_; | 617 Zone* zone_; |
| 619 }; | 618 }; |
| 620 | 619 |
| 621 } } // namespace v8::internal | 620 } } // namespace v8::internal |
| 622 | 621 |
| 623 #endif // V8_SCOPES_H_ | 622 #endif // V8_SCOPES_H_ |
| OLD | NEW |