OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #include <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "src/ast/context-slot-cache.h" | 7 #include "src/ast/context-slot-cache.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/ast/variables.h" |
9 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 // An entry in ModuleVariableEntries consists of several slots: | 15 // An entry in ModuleVariableEntries consists of several slots: |
15 enum ModuleVariableEntryOffset { | 16 enum ModuleVariableEntryOffset { |
16 kModuleVariableNameOffset, | 17 kModuleVariableNameOffset, |
17 kModuleVariableIndexOffset, | 18 kModuleVariableIndexOffset, |
18 kModuleVariablePropertiesOffset, | 19 kModuleVariablePropertiesOffset, |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 } | 847 } |
847 | 848 |
848 Handle<ModuleInfo> result = isolate->factory()->NewModuleInfo(); | 849 Handle<ModuleInfo> result = isolate->factory()->NewModuleInfo(); |
849 result->set(kSpecialExportsIndex, *special_exports); | 850 result->set(kSpecialExportsIndex, *special_exports); |
850 result->set(kRegularExportsIndex, *regular_exports); | 851 result->set(kRegularExportsIndex, *regular_exports); |
851 return result; | 852 return result; |
852 } | 853 } |
853 | 854 |
854 } // namespace internal | 855 } // namespace internal |
855 } // namespace v8 | 856 } // namespace v8 |
OLD | NEW |