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

Unified Diff: src/ast/scopeinfo.h

Issue 2277253003: [modules] Partial scope info support of modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-refactor
Patch Set: 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
Index: src/ast/scopeinfo.h
diff --git a/src/ast/scopeinfo.h b/src/ast/scopeinfo.h
new file mode 100644
index 0000000000000000000000000000000000000000..15e1512578fe71bf1ff7e90acd139471beed1ff7
--- /dev/null
+++ b/src/ast/scopeinfo.h
@@ -0,0 +1,25 @@
+// Copyright 2011 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_AST_SCOPEINFO_H_
+#define V8_AST_SCOPEINFO_H_
+
+#include "src/ast/modules.h"
+
+#include "src/objects.h"
+
+namespace v8 {
+namespace internal {
+
+class ModuleInfo : public FixedArray {
adamk 2016/08/25 16:19:43 I think there's some desire to keep all HeapObject
neis 2016/08/26 12:10:26 I moved ModuleInfo into objects.h and removed scop
adamk 2016/08/26 16:54:44 Can you at least provide a short comment on Module
+ public:
+ static Handle<ModuleInfo> New(Isolate* isolate, ModuleDescriptor* descr);
+ FixedArray* special_exports() const { return FixedArray::cast(get(0)); }
+ FixedArray* regular_exports() const { return FixedArray::cast(get(1)); }
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_AST_SCOPEINFO_H_

Powered by Google App Engine
This is Rietveld 408576698