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

Unified Diff: src/ast/scopes.h

Issue 2277253003: [modules] Partial scope info support of modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-refactor
Patch Set: Undo 'git cl format' screwup and fix order of writes. Created 4 years, 4 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/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 969c70a75d7b26b918660f7d601de1aaf9763920..5a3886ed65bcfde6efcf53495725e67147665d7e 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -341,7 +341,8 @@ class Scope: public ZoneObject {
// present - is not collected and should be handled separately.
void CollectVariables(ZoneList<Variable*>* stack_locals,
ZoneList<Variable*>* context_locals,
- ZoneList<Variable*>* context_globals);
+ ZoneList<Variable*>* context_globals,
+ ZoneList<Variable*>* module_vars = nullptr);
// Result of variable allocation.
int num_stack_slots() const { return num_stack_slots_; }
@@ -838,6 +839,8 @@ class ModuleScope final : public DeclarationScope {
public:
ModuleScope(DeclarationScope* script_scope,
AstValueFactory* ast_value_factory);
+ ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info,
+ AstValueFactory* ast_value_factory);
ModuleDescriptor* module() const {
DCHECK_NOT_NULL(module_descriptor_);

Powered by Google App Engine
This is Rietveld 408576698