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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1439983002: Subzero: Add "--verbose=status" option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month 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/IceDefs.h ('k') | src/IceInstX86BaseImpl.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 /// \file 10 /// \file
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 TargetHeaderLowering::createLowering(this)->lower(); 372 TargetHeaderLowering::createLowering(this)->lower();
373 } 373 }
374 } 374 }
375 375
376 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } 376 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); }
377 377
378 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } 378 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); }
379 379
380 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { 380 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) {
381 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); 381 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this);
382 const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() && 382 const bool DumpGlobalVariables =
383 Flags.getVerboseFocusOn().empty(); 383 BuildDefs::dump() && (Flags.getVerbose() & Cfg::defaultVerboseMask()) &&
384 Flags.getVerboseFocusOn().empty();
384 if (DumpGlobalVariables) { 385 if (DumpGlobalVariables) {
385 OstreamLocker L(this); 386 OstreamLocker L(this);
386 Ostream &Stream = getStrDump(); 387 Ostream &Stream = getStrDump();
387 for (const Ice::VariableDeclaration *Global : Globals) { 388 for (const Ice::VariableDeclaration *Global : Globals) {
388 Global->dump(this, Stream); 389 Global->dump(this, Stream);
389 } 390 }
390 } 391 }
391 if (Flags.getDisableTranslation()) 392 if (Flags.getDisableTranslation())
392 return; 393 return;
393 394
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 Ctx = Func->getContext(); 1008 Ctx = Func->getContext();
1008 Active = 1009 Active =
1009 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 1010 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
1010 if (Active) 1011 if (Active)
1011 Ctx->pushTimer(ID, StackID); 1012 Ctx->pushTimer(ID, StackID);
1012 } 1013 }
1013 1014
1014 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 1015 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
1015 1016
1016 } // end of namespace Ice 1017 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceInstX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698