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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and add URL. Created 5 years, 2 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/IceAssemblerX86Base.h ('k') | src/IceInstARM32.cpp » ('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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 Asm->alignFunction(); 512 Asm->alignFunction();
513 IceString MangledName = mangleName(Asm->getFunctionName()); 513 IceString MangledName = mangleName(Asm->getFunctionName());
514 switch (getFlags().getOutFileType()) { 514 switch (getFlags().getOutFileType()) {
515 case FT_Elf: 515 case FT_Elf:
516 getObjectWriter()->writeFunctionCode(MangledName, Asm->getInternal(), 516 getObjectWriter()->writeFunctionCode(MangledName, Asm->getInternal(),
517 Asm.get()); 517 Asm.get());
518 break; 518 break;
519 case FT_Iasm: { 519 case FT_Iasm: {
520 OstreamLocker L(this); 520 OstreamLocker L(this);
521 Cfg::emitTextHeader(MangledName, this, Asm.get()); 521 Cfg::emitTextHeader(MangledName, this, Asm.get());
522 Asm->emitIASBytes(this); 522 Asm->emitIASBytes();
523 } break; 523 } break;
524 case FT_Asm: 524 case FT_Asm:
525 llvm::report_fatal_error("Unexpected FT_Asm"); 525 llvm::report_fatal_error("Unexpected FT_Asm");
526 break; 526 break;
527 } 527 }
528 } break; 528 } break;
529 case EmitterWorkItem::WI_Cfg: { 529 case EmitterWorkItem::WI_Cfg: {
530 if (!BuildDefs::dump()) 530 if (!BuildDefs::dump())
531 llvm::report_fatal_error("WI_Cfg work item created inappropriately"); 531 llvm::report_fatal_error("WI_Cfg work item created inappropriately");
532 lowerGlobalsIfNoCodeHasBeenSeen(); 532 lowerGlobalsIfNoCodeHasBeenSeen();
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 Ctx = Func->getContext(); 1005 Ctx = Func->getContext();
1006 Active = 1006 Active =
1007 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 1007 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
1008 if (Active) 1008 if (Active)
1009 Ctx->pushTimer(ID, StackID); 1009 Ctx->pushTimer(ID, StackID);
1010 } 1010 }
1011 1011
1012 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 1012 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
1013 1013
1014 } // end of namespace Ice 1014 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerX86Base.h ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698