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

Unified Diff: src/objects.h

Issue 2361593002: [modules] Do path resolution relative to each module file in d8 (Closed)
Patch Set: Review comments 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 544889ce50da517a5d211203c8d7ad5614702a3a..f4d5f6dc139c5c88cf197c1e6239e103f9ddcfbd 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7945,6 +7945,9 @@ class Module : public Struct {
// Storage for [[Evaluated]]
DECL_INT_ACCESSORS(flags)
+ // Embedder-specified data
+ DECL_ACCESSORS(embedder_data, Object)
+
static void CreateExport(Handle<Module> module, Handle<FixedArray> names);
static void StoreExport(Handle<Module> module, Handle<String> name,
Handle<Object> value);
@@ -7954,7 +7957,8 @@ class Module : public Struct {
static const int kExportsOffset = kCodeOffset + kPointerSize;
static const int kRequestedModulesOffset = kExportsOffset + kPointerSize;
static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize;
- static const int kSize = kFlagsOffset + kPointerSize;
+ static const int kEmbedderDataOffset = kFlagsOffset + kPointerSize;
+ static const int kSize = kEmbedderDataOffset + kPointerSize;
private:
enum { kEvaluatedBit };
« 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