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

Unified Diff: src/IceDefs.h

Issue 1293343003: Change to use arena allocation for function-local data in parser. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix formatting. Created 5 years, 4 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/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 1908a034f4c19b151a9faa98a44a4bd2019f655f..d7f9c028fdb720282767bdb4c7c4ca895d54b344 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -145,10 +145,12 @@ typedef llvm::ilist<Inst> InstList;
typedef InstList PhiList;
typedef InstList AssignList;
// VarList and NodeList are arena-allocated from the Cfg's allocator.
Jim Stichnoth 2015/08/20 20:11:11 In conjunction with my comment below, you can prob
Karl 2015/08/20 20:24:19 Done.
+typedef std::vector<Operand *, CfgLocalAllocator<Operand *>> OperandList;
typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList;
typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList;
typedef std::vector<Constant *> ConstantList;
Jim Stichnoth 2015/08/20 20:11:11 Maybe move ConstantList below the blank line. It'
Karl 2015/08/20 20:24:19 Done.
+typedef std::vector<FunctionDeclaration *> FunctionDeclarationList;
typedef std::vector<VariableDeclaration *> VariableDeclarationList;
/// SizeT is for holding small-ish limits like number of source
« no previous file with comments | « src/IceCfg.cpp ('k') | src/PNaClTranslator.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698