| 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 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // to special. | 183 // to special. |
| 184 DCHECK_NULL(entry->import_name); | 184 DCHECK_NULL(entry->import_name); |
| 185 DCHECK_LT(entry->module_request, 0); | 185 DCHECK_LT(entry->module_request, 0); |
| 186 DCHECK_NOT_NULL(import->second->import_name); | 186 DCHECK_NOT_NULL(import->second->import_name); |
| 187 DCHECK_LE(0, import->second->module_request); | 187 DCHECK_LE(0, import->second->module_request); |
| 188 DCHECK_LT(import->second->module_request, | 188 DCHECK_LT(import->second->module_request, |
| 189 static_cast<int>(module_requests_.size())); | 189 static_cast<int>(module_requests_.size())); |
| 190 entry->import_name = import->second->import_name; | 190 entry->import_name = import->second->import_name; |
| 191 entry->module_request = import->second->module_request; | 191 entry->module_request = import->second->module_request; |
| 192 entry->local_name = nullptr; | 192 entry->local_name = nullptr; |
| 193 special_exports_.Add(entry, zone); | 193 AddSpecialExport(entry, zone); |
| 194 it = regular_exports_.erase(it); | 194 it = regular_exports_.erase(it); |
| 195 } else { | 195 } else { |
| 196 it++; | 196 it++; |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 namespace { | 201 namespace { |
| 202 | 202 |
| 203 const ModuleDescriptor::Entry* BetterDuplicate( | 203 const ModuleDescriptor::Entry* BetterDuplicate( |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 return false; | 262 return false; |
| 263 } | 263 } |
| 264 } | 264 } |
| 265 | 265 |
| 266 MakeIndirectExportsExplicit(zone); | 266 MakeIndirectExportsExplicit(zone); |
| 267 return true; | 267 return true; |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace internal | 270 } // namespace internal |
| 271 } // namespace v8 | 271 } // namespace v8 |
| OLD | NEW |