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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 } | 803 } |
804 | 804 |
805 #ifdef DEBUG | 805 #ifdef DEBUG |
806 void PrintParameters(); | 806 void PrintParameters(); |
807 #endif | 807 #endif |
808 | 808 |
809 void AllocateLocals(); | 809 void AllocateLocals(); |
810 void AllocateParameterLocals(); | 810 void AllocateParameterLocals(); |
811 void AllocateReceiver(); | 811 void AllocateReceiver(); |
812 | 812 |
813 void ResetAfterPreparsing(bool aborted); | 813 void ResetAfterPreparsing(AstValueFactory* ast_value_factory, bool aborted); |
814 | 814 |
815 private: | 815 private: |
816 void AllocateParameter(Variable* var, int index); | 816 void AllocateParameter(Variable* var, int index); |
817 | 817 |
818 // Resolve and fill in the allocation information for all variables | 818 // Resolve and fill in the allocation information for all variables |
819 // in this scopes. Must be called *after* all scopes have been | 819 // in this scopes. Must be called *after* all scopes have been |
820 // processed (parsed) to ensure that unresolved variables can be | 820 // processed (parsed) to ensure that unresolved variables can be |
821 // resolved properly. | 821 // resolved properly. |
822 // | 822 // |
823 // In the case of code compiled and run using 'eval', the context | 823 // In the case of code compiled and run using 'eval', the context |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 void AllocateModuleVariables(); | 883 void AllocateModuleVariables(); |
884 | 884 |
885 private: | 885 private: |
886 ModuleDescriptor* module_descriptor_; | 886 ModuleDescriptor* module_descriptor_; |
887 }; | 887 }; |
888 | 888 |
889 } // namespace internal | 889 } // namespace internal |
890 } // namespace v8 | 890 } // namespace v8 |
891 | 891 |
892 #endif // V8_AST_SCOPES_H_ | 892 #endif // V8_AST_SCOPES_H_ |
OLD | NEW |