Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 60243f2ee8daca9be4e471f20ec8014c19ca917c..ec72382b081cdcfb0552f7947423ab910a4fcbfb 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -5,7 +5,6 @@ |
#ifndef V8_AST_SCOPES_H_ |
#define V8_AST_SCOPES_H_ |
-#include "src/ast/ast.h" |
#include "src/base/compiler-specific.h" |
#include "src/base/hashmap.h" |
#include "src/globals.h" |
@@ -209,18 +208,8 @@ |
// Create a new unresolved variable. |
VariableProxy* NewUnresolved(AstNodeFactory* factory, |
const AstRawString* name, |
- int start_pos = kNoSourcePosition, |
- VariableKind kind = NORMAL_VARIABLE) { |
- // 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_pos); |
- proxy->set_next_unresolved(unresolved_); |
- unresolved_ = proxy; |
- return proxy; |
- } |
+ int start_position = kNoSourcePosition, |
+ VariableKind kind = NORMAL_VARIABLE); |
void AddUnresolved(VariableProxy* proxy); |