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 #include "src/ast/modules.h" | 5 #include "src/ast/modules.h" |
6 #include "src/ast/ast-value-factory.h" | 6 #include "src/ast/ast-value-factory.h" |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/pending-compilation-error-handler.h" |
8 | 9 |
9 namespace v8 { | 10 namespace v8 { |
10 namespace internal { | 11 namespace internal { |
11 | 12 |
12 void ModuleDescriptor::AddImport( | 13 void ModuleDescriptor::AddImport( |
13 const AstRawString* import_name, const AstRawString* local_name, | 14 const AstRawString* import_name, const AstRawString* local_name, |
14 const AstRawString* module_request, Scanner::Location loc, Zone* zone) { | 15 const AstRawString* module_request, Scanner::Location loc, Zone* zone) { |
15 Entry* entry = new (zone) Entry(loc); | 16 Entry* entry = new (zone) Entry(loc); |
16 entry->local_name = local_name; | 17 entry->local_name = local_name; |
17 entry->import_name = import_name; | 18 entry->import_name = import_name; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return false; | 177 return false; |
177 } | 178 } |
178 } | 179 } |
179 | 180 |
180 MakeIndirectExportsExplicit(zone); | 181 MakeIndirectExportsExplicit(zone); |
181 return true; | 182 return true; |
182 } | 183 } |
183 | 184 |
184 } // namespace internal | 185 } // namespace internal |
185 } // namespace v8 | 186 } // namespace v8 |
OLD | NEW |