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 837553009: Make fixups reference any constant (allow const float/double pool literals). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: tweak allocator to appease Created 5 years, 11 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 | « no previous file | src/IceELFObjectWriter.cpp » ('j') | src/IceOperand.h » ('J')
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 f5147c668c5afc86c99dfc8e8f576567a807db8f..e1a278e10f0b49a800f7d6f87e6eac3bd144cb8d 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -61,6 +61,10 @@ class VariablesMetadata;
typedef llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1024 * 1024>
ArenaAllocator;
+template <size_t SlabSize>
Jim Stichnoth 2015/01/09 22:30:35 I was wondering if you could just parameterize Are
jvoung (off chromium) 2015/01/09 22:50:19 Ah yep, that seems to work. Done.
+using SizedArenaAllocator =
+ llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, SlabSize>;
+
ArenaAllocator *getCurrentCfgAllocator();
template <typename T> struct CfgLocalAllocator {
« no previous file with comments | « no previous file | src/IceELFObjectWriter.cpp » ('j') | src/IceOperand.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698