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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 2471883005: [SubZero] Generate MIPS.abiflags section (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 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/IceGlobalContext.h ('k') | src/IceTargetLowering.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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 getErrorStatus()->assign(EC_Translation); 464 getErrorStatus()->assign(EC_Translation);
465 } 465 }
466 TargetHeaderLowering::createLowering(this)->lower(); 466 TargetHeaderLowering::createLowering(this)->lower();
467 } 467 }
468 } 468 }
469 469
470 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } 470 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); }
471 471
472 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } 472 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); }
473 473
474 void GlobalContext::emitTargetRODataSections() {
475 DataLowering->emitTargetRODataSections();
476 }
477
474 void GlobalContext::saveBlockInfoPtrs() { 478 void GlobalContext::saveBlockInfoPtrs() {
475 for (VariableDeclaration *Global : Globals) { 479 for (VariableDeclaration *Global : Globals) {
476 if (Cfg::isProfileGlobal(*Global)) { 480 if (Cfg::isProfileGlobal(*Global)) {
477 ProfileBlockInfos.push_back(Global); 481 ProfileBlockInfos.push_back(Global);
478 } 482 }
479 } 483 }
480 } 484 }
481 485
482 void GlobalContext::lowerGlobals(const std::string &SectionSuffix) { 486 void GlobalContext::lowerGlobals(const std::string &SectionSuffix) {
483 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); 487 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this);
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 void TimerMarker::pushCfg(const Cfg *Func) { 1058 void TimerMarker::pushCfg(const Cfg *Func) {
1055 Ctx = Func->getContext(); 1059 Ctx = Func->getContext();
1056 Active = Func->getFocusedTiming() || getFlags().getSubzeroTimingEnabled(); 1060 Active = Func->getFocusedTiming() || getFlags().getSubzeroTimingEnabled();
1057 if (Active) 1061 if (Active)
1058 Ctx->pushTimer(ID, StackID); 1062 Ctx->pushTimer(ID, StackID);
1059 } 1063 }
1060 1064
1061 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 1065 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
1062 1066
1063 } // end of namespace Ice 1067 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698