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

Unified Diff: src/ast/scopes.h

Issue 2457393003: Thread decls-list through Declaration (Closed)
Patch Set: rebase Created 4 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/prettyprinter.cc ('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 e5e33f3b20eb2b00a2cab55a3ceb1864c9940957..1aef7e03e194c9e1de9015af020539f5d027cfbb 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -97,7 +97,7 @@ class V8_EXPORT_PRIVATE Scope : public NON_EXPORTED_BASE(ZoneObject) {
Scope* top_inner_scope_;
VariableProxy* top_unresolved_;
int top_local_;
- int top_decl_;
+ ThreadedList<Declaration>::Iterator top_decl_;
};
enum class DeserializationMode { kIncludingVariables, kScopesOnly };
@@ -153,7 +153,7 @@ class V8_EXPORT_PRIVATE Scope : public NON_EXPORTED_BASE(ZoneObject) {
bool* ok);
// Declarations list.
- ZoneList<Declaration*>* declarations() { return &decls_; }
+ ThreadedList<Declaration>* declarations() { return &decls_; }
ZoneList<Variable*>* locals() { return &locals_; }
@@ -465,7 +465,7 @@ class V8_EXPORT_PRIVATE Scope : public NON_EXPORTED_BASE(ZoneObject) {
// form a linked list of all unresolved proxies.
VariableProxy* unresolved_;
// Declarations.
- ZoneList<Declaration*> decls_;
+ ThreadedList<Declaration> decls_;
// Serialized scope info support.
Handle<ScopeInfo> scope_info_;
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698