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

Unified Diff: src/IceAssembler.h

Issue 1738443002: Subzero. Performance tweaks. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments -- all of them Created 4 years, 10 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 | « Makefile.standalone ('k') | src/IceBitVector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssembler.h
diff --git a/src/IceAssembler.h b/src/IceAssembler.h
index b25d9b473dc3f3b2cc24b8adc07987869f0173c6..6e5ed154aa7a5c61714594c3125a2c3af89c4d99 100644
--- a/src/IceAssembler.h
+++ b/src/IceAssembler.h
@@ -30,6 +30,8 @@
#include "IceFixups.h"
#include "IceUtils.h"
+#include "llvm/Support/Allocator.h"
+
namespace Ice {
class Assembler;
@@ -338,7 +340,10 @@ protected:
private:
const AssemblerKind Kind;
- ArenaAllocator<32 * 1024> Allocator;
+ using AssemblerAllocator =
+ llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, /*SlabSize=*/32 * 1024>;
+ AssemblerAllocator Allocator;
+
/// FunctionName and IsInternal are transferred from the original Cfg object,
/// since the Cfg object may be deleted by the time the assembler buffer is
/// emitted.
« no previous file with comments | « Makefile.standalone ('k') | src/IceBitVector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698