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

Unified Diff: src/factory.cc

Issue 2277253003: [modules] Partial scope info support of modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-refactor
Patch Set: Undo 'git cl format' screwup and fix order of writes. Created 4 years, 4 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
« src/ast/scopes.cc ('K') | « src/factory.h ('k') | src/heap/heap.h » ('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 8d22eb15a2bf93d1ea0588cf64c75852c4815aae..ea0cd277ec6a527474b9ce8415f02e4ee69edc06 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1393,6 +1393,12 @@ Handle<ScopeInfo> Factory::NewScopeInfo(int length) {
return scope_info;
}
+Handle<ModuleInfo> Factory::NewModuleInfo() {
+ Handle<FixedArray> array = NewFixedArray(2, TENURED);
adamk 2016/08/26 16:54:44 More magic constants...I think this one should be
+ array->set_map_no_write_barrier(*module_info_map());
+ Handle<ModuleInfo> module_info = Handle<ModuleInfo>::cast(array);
+ return module_info;
+}
Handle<JSObject> Factory::NewExternal(void* value) {
Handle<Foreign> foreign = NewForeign(static_cast<Address>(value));
« src/ast/scopes.cc ('K') | « src/factory.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698