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

Side by Side Diff: src/PNaClTranslator.cpp

Issue 802183004: Subzero: Use CFG-local arena allocation for relevant containers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Typo fix 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/IceTargetLoweringX8632.cpp ('k') | src/assembler.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/PNaClTranslator.cpp - ICE from bitcode -----------------===// 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===//
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 implements the PNaCl bitcode file to Ice, to machine code 10 // This file implements the PNaCl bitcode file to Ice, to machine code
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 class FunctionParser : public BlockParserBaseClass { 1059 class FunctionParser : public BlockParserBaseClass {
1060 FunctionParser(const FunctionParser &) = delete; 1060 FunctionParser(const FunctionParser &) = delete;
1061 FunctionParser &operator=(const FunctionParser &) = delete; 1061 FunctionParser &operator=(const FunctionParser &) = delete;
1062 1062
1063 public: 1063 public:
1064 FunctionParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser) 1064 FunctionParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser)
1065 : BlockParserBaseClass(BlockID, EnclosingParser), 1065 : BlockParserBaseClass(BlockID, EnclosingParser),
1066 Timer(Ice::TimerStack::TT_parseFunctions, getTranslator().getContext()), 1066 Timer(Ice::TimerStack::TT_parseFunctions, getTranslator().getContext()),
1067 Func(isIRGenerationDisabled() 1067 Func(isIRGenerationDisabled()
1068 ? nullptr 1068 ? nullptr
1069 : new Ice::Cfg(getTranslator().getContext())), 1069 : Ice::Cfg::create(getTranslator().getContext())),
1070 CurrentBbIndex(0), FcnId(Context->getNextFunctionBlockValueID()), 1070 CurrentBbIndex(0), FcnId(Context->getNextFunctionBlockValueID()),
1071 FuncDecl(Context->getFunctionByID(FcnId)), 1071 FuncDecl(Context->getFunctionByID(FcnId)),
1072 CachedNumGlobalValueIDs(Context->getNumGlobalIDs()), 1072 CachedNumGlobalValueIDs(Context->getNumGlobalIDs()),
1073 NextLocalInstIndex(Context->getNumGlobalIDs()), 1073 NextLocalInstIndex(Context->getNumGlobalIDs()),
1074 InstIsTerminating(false) { 1074 InstIsTerminating(false) {
1075 if (ALLOW_DUMP && getFlags().TimeEachFunction) 1075 if (ALLOW_DUMP && getFlags().TimeEachFunction)
1076 getTranslator().getContext()->pushTimer( 1076 getTranslator().getContext()->pushTimer(
1077 getTranslator().getContext()->getTimerID( 1077 getTranslator().getContext()->getTimerID(
1078 Ice::GlobalContext::TSK_Funcs, FuncDecl->getName()), 1078 Ice::GlobalContext::TSK_Funcs, FuncDecl->getName()),
1079 Ice::GlobalContext::TSK_Funcs); 1079 Ice::GlobalContext::TSK_Funcs);
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 3001
3002 if (TopLevelBlocks != 1) { 3002 if (TopLevelBlocks != 1) {
3003 errs() << IRFilename 3003 errs() << IRFilename
3004 << ": Contains more than one module. Found: " << TopLevelBlocks 3004 << ": Contains more than one module. Found: " << TopLevelBlocks
3005 << "\n"; 3005 << "\n";
3006 ErrorStatus = true; 3006 ErrorStatus = true;
3007 } 3007 }
3008 } 3008 }
3009 3009
3010 } // end of namespace Ice 3010 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698