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

Unified Diff: src/objects.h

Issue 2360063002: [modules] Basic support of import statements. (Closed)
Patch Set: . 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 544889ce50da517a5d211203c8d7ad5614702a3a..ea55abd40198daec8fd5997a350b20774944c46e 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7946,9 +7946,12 @@ class Module : public Struct {
DECL_INT_ACCESSORS(flags)
static void CreateExport(Handle<Module> module, Handle<FixedArray> names);
+ static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name);
static void StoreExport(Handle<Module> module, Handle<String> name,
Handle<Object> value);
- static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name);
+
+ static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name,
+ int module_request);
static const int kCodeOffset = HeapObject::kHeaderSize;
static const int kExportsOffset = kCodeOffset + kPointerSize;

Powered by Google App Engine
This is Rietveld 408576698