Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 6987b7ffb153e066ae6ccc11f3a88eb56d6ef395..b2bcb0aaaae9e23a22d58f76c9403f18f5843bf1 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -35,7 +35,7 @@ class VariableMap: public ZoneHashMap { |
Variable* Lookup(const AstRawString* name); |
void Remove(Variable* var); |
- void Add(Zone* zone, Variable* var); |
+ void Add(Variable* var); |
}; |
@@ -43,7 +43,7 @@ class VariableMap: public ZoneHashMap { |
class SloppyBlockFunctionMap : public ZoneHashMap { |
public: |
explicit SloppyBlockFunctionMap(Zone* zone); |
- void Declare(Zone* zone, const AstRawString* name, |
+ void Declare(const AstRawString* name, |
SloppyBlockFunctionStatement* statement); |
}; |
@@ -747,7 +747,7 @@ class DeclarationScope : public Scope { |
void DeclareSloppyBlockFunction(const AstRawString* name, |
SloppyBlockFunctionStatement* statement) { |
- sloppy_block_function_map_.Declare(zone(), name, statement); |
+ sloppy_block_function_map_.Declare(name, statement); |
} |
// Go through sloppy_block_function_map_ and hoist those (into this scope) |