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

Side by Side Diff: src/IceGlobalContext.h

Issue 760973002: Subzero: Improve malloc/free behavior. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « src/IceCfg.h ('k') | src/IceInst.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares aspects of the compilation that persist across 10 // This file declares aspects of the compilation that persist across
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 195 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
196 void resetTimer(TimerStackIdT StackID); 196 void resetTimer(TimerStackIdT StackID);
197 void setTimerName(TimerStackIdT StackID, const IceString &NewName); 197 void setTimerName(TimerStackIdT StackID, const IceString &NewName);
198 void dumpTimers(TimerStackIdT StackID = TSK_Default, 198 void dumpTimers(TimerStackIdT StackID = TSK_Default,
199 bool DumpCumulative = true); 199 bool DumpCumulative = true);
200 200
201 private: 201 private:
202 Ostream *StrDump; // Stream for dumping / diagnostics 202 Ostream *StrDump; // Stream for dumping / diagnostics
203 Ostream *StrEmit; // Stream for code emission 203 Ostream *StrEmit; // Stream for code emission
204 204
205 llvm::BumpPtrAllocator Allocator; 205 llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1024 * 1024> Allocator;
206 VerboseMask VMask; 206 VerboseMask VMask;
207 std::unique_ptr<class ConstantPool> ConstPool; 207 std::unique_ptr<class ConstantPool> ConstPool;
208 Intrinsics IntrinsicsInfo; 208 Intrinsics IntrinsicsInfo;
209 const TargetArch Arch; 209 const TargetArch Arch;
210 const OptLevel Opt; 210 const OptLevel Opt;
211 const IceString TestPrefix; 211 const IceString TestPrefix;
212 const ClFlags &Flags; 212 const ClFlags &Flags;
213 bool HasEmittedFirstMethod; 213 bool HasEmittedFirstMethod;
214 RandomNumberGenerator RNG; 214 RandomNumberGenerator RNG;
215 CodeStats StatsFunction; 215 CodeStats StatsFunction;
(...skipping 28 matching lines...) Expand all
244 244
245 private: 245 private:
246 TimerIdT ID; 246 TimerIdT ID;
247 GlobalContext *const Ctx; 247 GlobalContext *const Ctx;
248 const bool Active; 248 const bool Active;
249 }; 249 };
250 250
251 } // end of namespace Ice 251 } // end of namespace Ice
252 252
253 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 253 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW
« no previous file with comments | « src/IceCfg.h ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698