Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 715041c883033073a9dc2a167c535c1bf372d0d6..480e133de4f892722003a23d3754381816101fdf 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, Object) |
| + |
|
neis
2017/02/01 13:38:55
Shouldn't this always be a Script?
kozy
2017/02/01 16:39:25
Done.
|
| // 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, |