Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 715041c883033073a9dc2a167c535c1bf372d0d6..6bfc0bd77735bca41ae47be1e88db3a127d9434a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7914,6 +7914,9 @@ class Module : public Struct { |
// ModuleInfo::module_requests. |
DECL_ACCESSORS(requested_modules, FixedArray) |
+ // [script]: Script from which the module originates. |
+ DECL_ACCESSORS(script, Script) |
+ |
// Get the ModuleInfo associated with the code. |
inline ModuleInfo* info() const; |
@@ -7948,7 +7951,8 @@ class Module : public Struct { |
static const int kModuleNamespaceOffset = kHashOffset + kPointerSize; |
static const int kRequestedModulesOffset = |
kModuleNamespaceOffset + kPointerSize; |
- static const int kSize = kRequestedModulesOffset + kPointerSize; |
+ static const int kScriptOffset = kRequestedModulesOffset + kPointerSize; |
+ static const int kSize = kScriptOffset + kPointerSize; |
private: |
static void CreateExport(Handle<Module> module, int cell_index, |