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

Unified Diff: src/ast/ast.cc

Issue 2159573002: Turn the unresolved-references list into a linked list using the VariableProxies themselves (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 5 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/scopes.h » ('j') | src/ast/scopes.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index 1554a5e0b9761856b86ba99263743dc96c6627db..e8f7c4c24589f436f92aa9cecadf67d489a0668e 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -178,7 +178,8 @@ VariableProxy::VariableProxy(Zone* zone, Variable* var, int start_position,
IsAssignedField::encode(false) |
IsResolvedField::encode(false)),
end_position_(end_position),
- raw_name_(var->raw_name()) {
+ raw_name_(var->raw_name()),
+ next_unresolved_(nullptr) {
BindTo(var);
}
@@ -190,7 +191,8 @@ VariableProxy::VariableProxy(Zone* zone, const AstRawString* name,
IsAssignedField::encode(false) |
IsResolvedField::encode(false)),
end_position_(end_position),
- raw_name_(name) {}
+ raw_name_(name),
+ next_unresolved_(nullptr) {}
void VariableProxy::BindTo(Variable* var) {
DCHECK((is_this() && var->is_this()) || raw_name() == var->raw_name());
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/scopes.h » ('j') | src/ast/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698