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

Side by Side Diff: src/IceGlobalContext.h

Issue 877003003: Subzero: Use a "known" version of clang-format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a clang-format blacklist. Fix formatting "errors". Created 5 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 unified diff | Download patch
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceGlobalInits.h » ('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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 getStatsCumulative()->updateSpills(); 202 getStatsCumulative()->updateSpills();
203 } 203 }
204 void statsUpdateFills() { 204 void statsUpdateFills() {
205 if (!ALLOW_DUMP || !getFlags().DumpStats) 205 if (!ALLOW_DUMP || !getFlags().DumpStats)
206 return; 206 return;
207 ICE_TLS_GET_FIELD(TLS)->StatsFunction.updateFills(); 207 ICE_TLS_GET_FIELD(TLS)->StatsFunction.updateFills();
208 getStatsCumulative()->updateFills(); 208 getStatsCumulative()->updateFills();
209 } 209 }
210 210
211 // These are predefined TimerStackIdT values. 211 // These are predefined TimerStackIdT values.
212 enum TimerStackKind { 212 enum TimerStackKind { TSK_Default = 0, TSK_Funcs, TSK_Num };
213 TSK_Default = 0,
214 TSK_Funcs,
215 TSK_Num
216 };
217 213
218 TimerStackIdT newTimerStackID(const IceString &Name); 214 TimerStackIdT newTimerStackID(const IceString &Name);
219 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); 215 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name);
220 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 216 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
221 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 217 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
222 void resetTimer(TimerStackIdT StackID); 218 void resetTimer(TimerStackIdT StackID);
223 void setTimerName(TimerStackIdT StackID, const IceString &NewName); 219 void setTimerName(TimerStackIdT StackID, const IceString &NewName);
224 void dumpTimers(TimerStackIdT StackID = TSK_Default, 220 void dumpTimers(TimerStackIdT StackID = TSK_Default,
225 bool DumpCumulative = true); 221 bool DumpCumulative = true);
226 222
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } 390 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); }
395 ~OstreamLocker() { Ctx->unlockStr(); } 391 ~OstreamLocker() { Ctx->unlockStr(); }
396 392
397 private: 393 private:
398 GlobalContext *const Ctx; 394 GlobalContext *const Ctx;
399 }; 395 };
400 396
401 } // end of namespace Ice 397 } // end of namespace Ice
402 398
403 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 399 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceGlobalInits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698