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

Side by Side Diff: src/IceInst.cpp

Issue 1559243002: Suzero. X8664. NaCl Sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes filetype=asm; addresses comments. Created 4 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/IceInst.h ('k') | src/IceInstX8632.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/IceInst.cpp - High-level instruction implementation ----===// 1 //===- subzero/src/IceInst.cpp - High-level instruction implementation ----===//
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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return; 851 return;
852 Ostream &Str = Func->getContext()->getStrEmit(); 852 Ostream &Str = Func->getContext()->getStrEmit();
853 Str << "\t.bundle_lock"; 853 Str << "\t.bundle_lock";
854 switch (BundleOption) { 854 switch (BundleOption) {
855 case Opt_None: 855 case Opt_None:
856 break; 856 break;
857 case Opt_AlignToEnd: 857 case Opt_AlignToEnd:
858 Str << "\t" 858 Str << "\t"
859 "align_to_end"; 859 "align_to_end";
860 break; 860 break;
861 case Opt_PadToEnd:
862 Str << "\t"
863 "align_to_end /* pad_to_end */";
864 break;
861 } 865 }
862 Str << "\n"; 866 Str << "\n";
863 } 867 }
864 868
865 void InstBundleLock::dump(const Cfg *Func) const { 869 void InstBundleLock::dump(const Cfg *Func) const {
866 if (!BuildDefs::dump()) 870 if (!BuildDefs::dump())
867 return; 871 return;
868 Ostream &Str = Func->getContext()->getStrDump(); 872 Ostream &Str = Func->getContext()->getStrDump();
869 Str << "bundle_lock"; 873 Str << "bundle_lock";
870 switch (BundleOption) { 874 switch (BundleOption) {
871 case Opt_None: 875 case Opt_None:
872 break; 876 break;
873 case Opt_AlignToEnd: 877 case Opt_AlignToEnd:
874 Str << " align_to_end"; 878 Str << " align_to_end";
875 break; 879 break;
880 case Opt_PadToEnd:
881 Str << " pad_to_end";
882 break;
876 } 883 }
877 } 884 }
878 885
879 void InstBundleUnlock::emit(const Cfg *Func) const { 886 void InstBundleUnlock::emit(const Cfg *Func) const {
880 if (!BuildDefs::dump()) 887 if (!BuildDefs::dump())
881 return; 888 return;
882 Ostream &Str = Func->getContext()->getStrEmit(); 889 Ostream &Str = Func->getContext()->getStrEmit();
883 Str << "\t.bundle_unlock"; 890 Str << "\t.bundle_unlock";
884 Str << "\n"; 891 Str << "\n";
885 } 892 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 // upper 32 bits of rax. We need to recognize and preserve these. 967 // upper 32 bits of rax. We need to recognize and preserve these.
961 return true; 968 return true;
962 } 969 }
963 if (!Dest->hasReg() && !SrcVar->hasReg() && 970 if (!Dest->hasReg() && !SrcVar->hasReg() &&
964 Dest->getStackOffset() == SrcVar->getStackOffset()) 971 Dest->getStackOffset() == SrcVar->getStackOffset())
965 return true; 972 return true;
966 return false; 973 return false;
967 } 974 }
968 975
969 } // end of namespace Ice 976 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698