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

Unified Diff: src/ast/scopes.h

Issue 1485053002: [cleanup] Remove modules-related cruft from Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-value-factory.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 3ef40ecf91d4e646be78d63065beda1f73578d6d..97ff604fb8cda2d0dc7386f4bc159b1b10e37c38 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -510,12 +510,6 @@ class Scope: public ZoneObject {
int ContextLocalCount() const;
int ContextGlobalCount() const;
- // For script scopes, the number of module literals (including nested ones).
- int num_modules() const { return num_modules_; }
-
- // For module scopes, the host scope's internal variable binding this module.
- Variable* module_var() const { return module_var_; }
-
// Make sure this scope and all outer scopes are eagerly compiled.
void ForceEagerCompilation() { force_eager_compilation_ = true; }
@@ -692,12 +686,6 @@ class Scope: public ZoneObject {
int num_heap_slots_;
int num_global_slots_;
- // The number of modules (including nested ones).
- int num_modules_;
-
- // For module scopes, the host scope's temporary variable binding this module.
- Variable* module_var_;
-
// Info about the parameter list of a function.
int arity_;
bool has_simple_parameters_;
@@ -794,7 +782,6 @@ class Scope: public ZoneObject {
void AllocateVariablesRecursively(Isolate* isolate);
void AllocateParameter(Variable* var, int index);
void AllocateReceiver();
- void AllocateModules();
// Resolve and fill in the allocation information for all variables
// in this scopes. Must be called *after* all scopes have been
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698