| 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/objects-inl.h" | 8 #include "src/objects-inl.h" |
| 9 #include "src/objects/module-info.h" |
| 9 | 10 |
| 10 namespace v8 { | 11 namespace v8 { |
| 11 namespace internal { | 12 namespace internal { |
| 12 | 13 |
| 13 void ModuleDescriptor::AddImport( | 14 void ModuleDescriptor::AddImport( |
| 14 const AstRawString* import_name, const AstRawString* local_name, | 15 const AstRawString* import_name, const AstRawString* local_name, |
| 15 const AstRawString* module_request, Scanner::Location loc, Zone* zone) { | 16 const AstRawString* module_request, Scanner::Location loc, Zone* zone) { |
| 16 Entry* entry = new (zone) Entry(loc); | 17 Entry* entry = new (zone) Entry(loc); |
| 17 entry->local_name = local_name; | 18 entry->local_name = local_name; |
| 18 entry->import_name = import_name; | 19 entry->import_name = import_name; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 } | 316 } |
| 316 } | 317 } |
| 317 | 318 |
| 318 MakeIndirectExportsExplicit(zone); | 319 MakeIndirectExportsExplicit(zone); |
| 319 AssignCellIndices(); | 320 AssignCellIndices(); |
| 320 return true; | 321 return true; |
| 321 } | 322 } |
| 322 | 323 |
| 323 } // namespace internal | 324 } // namespace internal |
| 324 } // namespace v8 | 325 } // namespace v8 |
| OLD | NEW |