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

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: 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/factory.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index e197494e6b56176b101af20f5cbb48e0c1da39fd..6dd5a8bbf67a4711f9f36775ec46a52d5cffc066 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1510,19 +1510,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());
« no previous file with comments | « 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