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

Unified Diff: src/ast/modules.h

Issue 2302783002: [modules] Basic support of exports (Closed)
Patch Set: Disable module tests for deopt fuzzer. 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/ast/ast.h ('k') | src/ast/modules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/modules.h
diff --git a/src/ast/modules.h b/src/ast/modules.h
index 7e78ac2bad9927332d1ee64a5cc5dfa252d16c0d..0ed3509bc1b9ecfd6a8b88bf2ef0576dfff2dba3 100644
--- a/src/ast/modules.h
+++ b/src/ast/modules.h
@@ -14,7 +14,7 @@ namespace internal {
class AstRawString;
-
+class ModuleInfoEntry;
class ModuleDescriptor : public ZoneObject {
public:
@@ -80,6 +80,7 @@ class ModuleDescriptor : public ZoneObject {
const AstRawString* import_name;
const AstRawString* module_request;
+ // TODO(neis): Remove local_name component?
explicit Entry(Scanner::Location loc)
: location(loc),
export_name(nullptr),
@@ -87,9 +88,12 @@ class ModuleDescriptor : public ZoneObject {
import_name(nullptr),
module_request(nullptr) {}
- Handle<FixedArray> Serialize(Isolate* isolate) const;
+ // (De-)serialization support.
+ // Note that the location value is not preserved as it's only needed by the
+ // parser. (A Deserialize'd entry has an invalid location.)
+ Handle<ModuleInfoEntry> Serialize(Isolate* isolate) const;
static Entry* Deserialize(Isolate* isolate, AstValueFactory* avfactory,
- Handle<FixedArray> data);
+ Handle<ModuleInfoEntry> entry);
};
// Empty imports and namespace imports.
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/modules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698