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

Unified Diff: src/ast/scopes.cc

Issue 2950993002: Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: don't expose bytecode-traits.h in bytecodes.h Created 3 years, 6 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.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index 8b7e1bf95e06e6a8c4a60109f0893eb395bb0f25..536c098c17ed276d49e1c9c1a69a2580fc053e5a 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -1233,20 +1233,6 @@ Variable* Scope::DeclareVariableName(const AstRawString* name,
}
}
-VariableProxy* Scope::NewUnresolved(AstNodeFactory* factory,
- const AstRawString* name,
- int start_position, VariableKind kind) {
- // Note that we must not share the unresolved variables with
- // the same name because they may be removed selectively via
- // RemoveUnresolved().
- DCHECK(!already_resolved_);
- DCHECK_EQ(factory->zone(), zone());
- VariableProxy* proxy = factory->NewVariableProxy(name, kind, start_position);
- proxy->set_next_unresolved(unresolved_);
- unresolved_ = proxy;
- return proxy;
-}
-
void Scope::AddUnresolved(VariableProxy* proxy) {
DCHECK(!already_resolved_);
DCHECK(!proxy->is_resolved());

Powered by Google App Engine
This is Rietveld 408576698