Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 00cabb5e57ccab30f8aa0577fe0168fe39caa7fa..af9ddfd2557acddc4786253fd1e8809db77fe079 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7871,6 +7871,11 @@ class Module : public Struct { |
DECLARE_VERIFIER(Module) |
DECLARE_PRINTER(Module) |
+ // The code representing this Module, either a |
+ // SharedFunctionInfo or a JSFunction depending |
+ // on whether it's been instantiated. |
+ DECL_ACCESSORS(code, Object) |
+ |
DECL_ACCESSORS(exports, ObjectHashTable) |
static void CreateExport(Handle<Module> module, Handle<String> name); |
@@ -7878,7 +7883,8 @@ class Module : public Struct { |
Handle<Object> value); |
static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name); |
- static const int kExportsOffset = HeapObject::kHeaderSize; |
+ static const int kCodeOffset = HeapObject::kHeaderSize; |
+ static const int kExportsOffset = kCodeOffset + kPointerSize; |
static const int kSize = kExportsOffset + kPointerSize; |
private: |