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/objects/scope-info.h" | 7 #include "src/objects/scope-info.h" |
8 | 8 |
9 #include "src/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
11 #include "src/ast/variables.h" | 11 #include "src/ast/variables.h" |
12 #include "src/bootstrapper.h" | 12 #include "src/bootstrapper.h" |
| 13 #include "src/objects-inl.h" |
13 | 14 |
14 namespace v8 { | 15 namespace v8 { |
15 namespace internal { | 16 namespace internal { |
16 | 17 |
17 // An entry in ModuleVariableEntries consists of several slots: | 18 // An entry in ModuleVariableEntries consists of several slots: |
18 enum ModuleVariableEntryOffset { | 19 enum ModuleVariableEntryOffset { |
19 kModuleVariableNameOffset, | 20 kModuleVariableNameOffset, |
20 kModuleVariableIndexOffset, | 21 kModuleVariableIndexOffset, |
21 kModuleVariablePropertiesOffset, | 22 kModuleVariablePropertiesOffset, |
22 kModuleVariableEntryLength // Sentinel value. | 23 kModuleVariableEntryLength // Sentinel value. |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 if (String::cast(entry->local_name())->Equals(*local_name)) { | 972 if (String::cast(entry->local_name())->Equals(*local_name)) { |
972 return entry; | 973 return entry; |
973 } | 974 } |
974 } | 975 } |
975 UNREACHABLE(); | 976 UNREACHABLE(); |
976 return Handle<ModuleInfoEntry>(); | 977 return Handle<ModuleInfoEntry>(); |
977 } | 978 } |
978 | 979 |
979 } // namespace internal | 980 } // namespace internal |
980 } // namespace v8 | 981 } // namespace v8 |
OLD | NEW |