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

Unified Diff: src/ast/scopeinfo.cc

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/scopeinfo.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopeinfo.cc
diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc
index 10315aa81651f96c870c42914c064c08c43380c3..687bd198b0d20f6c9f76d54a5afef07d2b240b6a 100644
--- a/src/ast/scopeinfo.cc
+++ b/src/ast/scopeinfo.cc
@@ -758,26 +758,5 @@ void ScopeInfo::Print() {
#endif // DEBUG
-//---------------------------------------------------------------------------
-// ModuleInfo.
-
-Handle<ModuleInfo> ModuleInfo::Create(Isolate* isolate,
- ModuleDescriptor* descriptor,
- Scope* scope) {
- Handle<ModuleInfo> info = Allocate(isolate, descriptor->Length());
- info->set_host_index(descriptor->Index());
- int i = 0;
- for (ModuleDescriptor::Iterator it = descriptor->iterator(); !it.done();
- it.Advance(), ++i) {
- Variable* var = scope->LookupLocal(it.local_name());
- info->set_name(i, *(it.export_name()->string()));
- info->set_mode(i, var->mode());
- DCHECK(var->index() >= 0);
- info->set_index(i, var->index());
- }
- DCHECK(i == info->length());
- return info;
-}
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/ast/scopeinfo.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698