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

Unified Diff: src/factory.cc

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Leftovers. 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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 3c5f4161fd00f8c162a8c0c21903cceeb8e9260f..ef279eb4ba79254a85e892f6d1f6f8681796c47a 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1523,19 +1523,6 @@ Handle<JSObject> Factory::NewJSObjectWithNullProto() {
return result;
}
-Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
- Handle<ScopeInfo> scope_info) {
- // Allocate a fresh map. Modules do not have a prototype.
- Handle<Map> map = NewMap(JS_MODULE_TYPE, JSModule::kSize);
- // Allocate the object based on the map.
- Handle<JSModule> module =
- Handle<JSModule>::cast(NewJSObjectFromMap(map, TENURED));
- module->set_context(*context);
- module->set_scope_info(*scope_info);
- return module;
-}
-
-
Handle<JSGlobalObject> Factory::NewJSGlobalObject(
Handle<JSFunction> constructor) {
DCHECK(constructor->has_initial_map());
« src/ast/scopes.cc ('K') | « src/factory.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698