Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: src/ast/modules.cc

Issue 2362083002: [modules] Do basic linking. (Closed)
Patch Set: Rename files because the presubmit tool is so fragile. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast/modules.h ('k') | src/messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ast/modules.h ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698