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

Unified Diff: src/objects.h

Issue 2367623004: [modules] Detect and throw exceptions for cyclic dependencies (Closed)
Patch Set: Handled review comments, added a test 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/messages.h ('k') | src/objects.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 5774b8acd92295e54398a73f7c6edb4f9849a12d..7ae525f2542006b869e886cf8bb89b48bb917e27 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7950,9 +7950,15 @@ class Module : public Struct {
// Embedder-specified data
DECL_ACCESSORS(embedder_data, Object)
+ // Get the SharedFunctionInfo associated with the code.
+ inline SharedFunctionInfo* shared() const;
+
// Get the ModuleInfo associated with the code.
inline ModuleInfo* info() const;
+ // Compute a hash for this object.
+ inline uint32_t Hash() const;
+
// Implementation of spec operation ModuleDeclarationInstantiation.
// Returns false if an exception occurred during instantiation, true
// otherwise.
@@ -7991,17 +7997,18 @@ class Module : public Struct {
//
// Currently, an exception is always thrown in the case of a cycle and in the
// case of conflicting star exports. TODO(neis): Make that spec-compliant.
- static MUST_USE_RESULT MaybeHandle<Cell> ResolveExport(Handle<Module> module,
- Handle<String> name,
- bool must_resolve);
- static MUST_USE_RESULT MaybeHandle<Cell> ResolveImport(Handle<Module> module,
- Handle<String> name,
- int module_request,
- bool must_resolve);
+ class ResolveSet;
+ static MUST_USE_RESULT MaybeHandle<Cell> ResolveExport(
+ Handle<Module> module, Handle<String> name, bool must_resolve,
+ ResolveSet* resolve_set);
+ static MUST_USE_RESULT MaybeHandle<Cell> ResolveImport(
+ Handle<Module> module, Handle<String> name, int module_request,
+ bool must_resolve, ResolveSet* resolve_set);
// Helper for ResolveExport.
static MUST_USE_RESULT MaybeHandle<Cell> ResolveExportUsingStarExports(
- Handle<Module> module, Handle<String> name, bool must_resolve);
+ Handle<Module> module, Handle<String> name, bool must_resolve,
+ ResolveSet* resolve_set);
DISALLOW_IMPLICIT_CONSTRUCTORS(Module);
};
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698