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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 830303003: Subzero: Clean up a few areas. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rewrite another loop using reverse_range() 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 unified diff | Download patch
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceLiveness.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.cpp - Global context defs -------------===// 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===//
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 defines aspects of the compilation that persist across 10 // This file defines aspects of the compilation that persist across
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Str << "(requires '-track-memory')"; 123 Str << "(requires '-track-memory')";
124 Str << "\n"; 124 Str << "\n";
125 } 125 }
126 126
127 GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit, 127 GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit,
128 ELFStreamer *ELFStr, VerboseMask Mask, 128 ELFStreamer *ELFStr, VerboseMask Mask,
129 TargetArch Arch, OptLevel Opt, 129 TargetArch Arch, OptLevel Opt,
130 IceString TestPrefix, const ClFlags &Flags) 130 IceString TestPrefix, const ClFlags &Flags)
131 : StrDump(OsDump), StrEmit(OsEmit), VMask(Mask), 131 : StrDump(OsDump), StrEmit(OsEmit), VMask(Mask),
132 ConstPool(new ConstantPool()), Arch(Arch), Opt(Opt), 132 ConstPool(new ConstantPool()), Arch(Arch), Opt(Opt),
133 TestPrefix(TestPrefix), Flags(Flags), HasEmittedFirstMethod(false), 133 TestPrefix(TestPrefix), Flags(Flags), RNG(""), ObjectWriter() {
134 RNG(""), ObjectWriter() {
135 // Pre-register built-in stack names. 134 // Pre-register built-in stack names.
136 if (ALLOW_DUMP) { 135 if (ALLOW_DUMP) {
137 newTimerStackID("Total across all functions"); 136 newTimerStackID("Total across all functions");
138 newTimerStackID("Per-function summary"); 137 newTimerStackID("Per-function summary");
139 } 138 }
140 if (Flags.UseELFWriter) { 139 if (Flags.UseELFWriter) {
141 ObjectWriter.reset(new ELFObjectWriter(*this, *ELFStr)); 140 ObjectWriter.reset(new ELFObjectWriter(*this, *ELFStr));
142 } 141 }
143 } 142 }
144 143
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) 509 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func)
511 : ID(ID), Ctx(Func->getContext()), Active(false) { 510 : ID(ID), Ctx(Func->getContext()), Active(false) {
512 if (ALLOW_DUMP) { 511 if (ALLOW_DUMP) {
513 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; 512 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled;
514 if (Active) 513 if (Active)
515 Ctx->pushTimer(ID); 514 Ctx->pushTimer(ID);
516 } 515 }
517 } 516 }
518 517
519 } // end of namespace Ice 518 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceLiveness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698