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

Side by Side Diff: unittest/AssemblerX8664/TestUtil.h

Issue 1548363002: Subzero. Code organization. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
OLDNEW
1 1
2 //===- subzero/unittest/unittest/AssemblerX8664/TestUtil.h ------*- C++ -*-===// 2 //===- subzero/unittest/unittest/AssemblerX8664/TestUtil.h ------*- C++ -*-===//
3 // 3 //
4 // The Subzero Code Generator 4 // The Subzero Code Generator
5 // 5 //
6 // This file is distributed under the University of Illinois Open Source 6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details. 7 // License. See LICENSE.TXT for details.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 // 10 //
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 XmmRegAliases(xmm12); 128 XmmRegAliases(xmm12);
129 XmmRegAliases(xmm13); 129 XmmRegAliases(xmm13);
130 XmmRegAliases(xmm14); 130 XmmRegAliases(xmm14);
131 XmmRegAliases(xmm15); 131 XmmRegAliases(xmm15);
132 #undef XmmRegAliases 132 #undef XmmRegAliases
133 #undef NewRegAliases 133 #undef NewRegAliases
134 #undef LegacyRegAliases 134 #undef LegacyRegAliases
135 135
136 AssemblerX8664TestBase() { reset(); } 136 AssemblerX8664TestBase() { reset(); }
137 137
138 void reset() { Assembler.reset(new AssemblerX8664()); } 138 void reset() { Assembler = makeUnique<AssemblerX8664>(); }
139 139
140 AssemblerX8664 *assembler() const { return Assembler.get(); } 140 AssemblerX8664 *assembler() const { return Assembler.get(); }
141 141
142 size_t codeBytesSize() const { return Assembler->getBufferView().size(); } 142 size_t codeBytesSize() const { return Assembler->getBufferView().size(); }
143 143
144 const uint8_t *codeBytes() const { 144 const uint8_t *codeBytes() const {
145 return static_cast<const uint8_t *>( 145 return static_cast<const uint8_t *>(
146 static_cast<const void *>(Assembler->getBufferView().data())); 146 static_cast<const void *>(Assembler->getBufferView().data()));
147 } 147 }
148 148
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 1094
1095 bool NeedsEpilogue; 1095 bool NeedsEpilogue;
1096 uint32_t NumAllocatedDwords; 1096 uint32_t NumAllocatedDwords;
1097 }; 1097 };
1098 1098
1099 } // end of namespace Test 1099 } // end of namespace Test
1100 } // end of namespace X8664 1100 } // end of namespace X8664
1101 } // end of namespace Ice 1101 } // end of namespace Ice
1102 1102
1103 #endif // ASSEMBLERX8664_TESTUTIL_H_ 1103 #endif // ASSEMBLERX8664_TESTUTIL_H_
OLDNEW
« src/IceTargetLoweringX86BaseImpl.h ('K') | « unittest/AssemblerX8632/TestUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698