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_ |