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

Unified Diff: src/IceDefs.h

Issue 1838973005: Subzero. Liveness memory management. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 9 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/IceCfg.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 2055990c593087329086fb12175c3f12f7df5b9d..8e8a064dc218bcceccbf45c9ca5325a63840cdb6 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -49,7 +49,7 @@
namespace Ice {
class Assembler;
-class BitVector;
+template <template <typename> class> class BitVectorTmpl;
class Cfg;
class CfgNode;
class Constant;
@@ -272,9 +272,11 @@ using InstNumberT = int32_t;
/// A LiveBeginEndMapEntry maps a Variable::Number value to an Inst::Number
/// value, giving the instruction number that begins or ends a variable's live
/// range.
+template <typename T>
+using LivenessVector = std::vector<T, LivenessAllocator<T>>;
using LiveBeginEndMapEntry = std::pair<SizeT, InstNumberT>;
-using LiveBeginEndMap = CfgVector<LiveBeginEndMapEntry>;
-using LivenessBV = BitVector;
+using LiveBeginEndMap = LivenessVector<LiveBeginEndMapEntry>;
+using LivenessBV = BitVectorTmpl<LivenessAllocator>;
using TimerStackIdT = uint32_t;
using TimerIdT = uint32_t;
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698