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_AST_SCOPES_H_ | 5 #ifndef V8_AST_SCOPES_H_ |
6 #define V8_AST_SCOPES_H_ | 6 #define V8_AST_SCOPES_H_ |
7 | 7 |
8 #include "src/base/hashmap.h" | 8 #include "src/base/hashmap.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 bool MustAllocateInContext(Variable* var); | 539 bool MustAllocateInContext(Variable* var); |
540 | 540 |
541 // Variable allocation. | 541 // Variable allocation. |
542 void AllocateStackSlot(Variable* var); | 542 void AllocateStackSlot(Variable* var); |
543 void AllocateHeapSlot(Variable* var); | 543 void AllocateHeapSlot(Variable* var); |
544 void AllocateNonParameterLocal(Variable* var); | 544 void AllocateNonParameterLocal(Variable* var); |
545 void AllocateDeclaredGlobal(Variable* var); | 545 void AllocateDeclaredGlobal(Variable* var); |
546 void AllocateNonParameterLocalsAndDeclaredGlobals(); | 546 void AllocateNonParameterLocalsAndDeclaredGlobals(); |
547 void AllocateVariablesRecursively(); | 547 void AllocateVariablesRecursively(); |
548 | 548 |
549 void AllocateScopeInfosRecursively(Isolate* isolate, AnalyzeMode mode, | 549 void AllocateScopeInfosRecursively(Isolate* isolate, |
550 MaybeHandle<ScopeInfo> outer_scope); | 550 MaybeHandle<ScopeInfo> outer_scope); |
| 551 void AllocateDebuggerScopeInfos(Isolate* isolate, |
| 552 MaybeHandle<ScopeInfo> outer_scope); |
551 | 553 |
552 // Construct a scope based on the scope info. | 554 // Construct a scope based on the scope info. |
553 Scope(Zone* zone, ScopeType type, Handle<ScopeInfo> scope_info); | 555 Scope(Zone* zone, ScopeType type, Handle<ScopeInfo> scope_info); |
554 | 556 |
555 // Construct a catch scope with a binding for the name. | 557 // Construct a catch scope with a binding for the name. |
556 Scope(Zone* zone, const AstRawString* catch_variable_name, | 558 Scope(Zone* zone, const AstRawString* catch_variable_name, |
557 Handle<ScopeInfo> scope_info); | 559 Handle<ScopeInfo> scope_info); |
558 | 560 |
559 void AddInnerScope(Scope* inner_scope) { | 561 void AddInnerScope(Scope* inner_scope) { |
560 DCHECK_EQ(!needs_migration_, inner_scope->zone() == zone()); | 562 DCHECK_EQ(!needs_migration_, inner_scope->zone() == zone()); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 void AllocateModuleVariables(); | 867 void AllocateModuleVariables(); |
866 | 868 |
867 private: | 869 private: |
868 ModuleDescriptor* module_descriptor_; | 870 ModuleDescriptor* module_descriptor_; |
869 }; | 871 }; |
870 | 872 |
871 } // namespace internal | 873 } // namespace internal |
872 } // namespace v8 | 874 } // namespace v8 |
873 | 875 |
874 #endif // V8_AST_SCOPES_H_ | 876 #endif // V8_AST_SCOPES_H_ |
OLD | NEW |