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

Unified Diff: src/ast/scopes.h

Issue 2345233003: [base] Move hashmap allocator to a field (Closed)
Patch Set: Remove zone arguments where the parameters were removed so that the bloody thing compiles again Created 4 years, 3 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.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 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)
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698