Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 00cabb5e57ccab30f8aa0577fe0168fe39caa7fa..04c73a1021043b67feb671d2276d380b0233dcac 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 |
neis
2016/09/16 20:53:33
... instantiated?
adamk
2016/09/16 20:58:06
Done.
|
+ 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: |