Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: src/objects.h

Issue 2347933002: [modules] Introduce v8::Module to the API and return it from CompileModule (Closed)
Patch Set: Less maybe Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « src/factory.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698