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

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

Issue 1419903002: Subzero: Refactor x86 register definitions to use the alias mechanism. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Bring back ByteRegister Created 5 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
OLDNEW
1 //===- subzero/unittest/unittest/AssemblerX8632/TestUtil.h ------*- C++ -*-===// 1 //===- subzero/unittest/unittest/AssemblerX8632/TestUtil.h ------*- C++ -*-===//
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 // Utility classes for testing the X8632 Assembler. 10 // Utility classes for testing the X8632 Assembler.
(...skipping 10 matching lines...) Expand all
21 #include <cassert> 21 #include <cassert>
22 #include <sys/mman.h> 22 #include <sys/mman.h>
23 23
24 namespace Ice { 24 namespace Ice {
25 namespace X8632 { 25 namespace X8632 {
26 namespace Test { 26 namespace Test {
27 27
28 class AssemblerX8632TestBase : public ::testing::Test { 28 class AssemblerX8632TestBase : public ::testing::Test {
29 protected: 29 protected:
30 using Address = AssemblerX8632::Traits::Address; 30 using Address = AssemblerX8632::Traits::Address;
31 using ByteRegister = AssemblerX8632::Traits::ByteRegister;
32 using Cond = AssemblerX8632::Traits::Cond; 31 using Cond = AssemblerX8632::Traits::Cond;
33 using GPRRegister = AssemblerX8632::Traits::GPRRegister; 32 using GPRRegister = AssemblerX8632::Traits::GPRRegister;
34 using Label = ::Ice::X86Internal::Label; 33 using Label = ::Ice::X86Internal::Label;
35 using Traits = AssemblerX8632::Traits; 34 using Traits = AssemblerX8632::Traits;
36 using XmmRegister = AssemblerX8632::Traits::XmmRegister; 35 using XmmRegister = AssemblerX8632::Traits::XmmRegister;
37 using X87STRegister = AssemblerX8632::Traits::X87STRegister; 36 using X87STRegister = AssemblerX8632::Traits::X87STRegister;
38 37
39 AssemblerX8632TestBase() { reset(); } 38 AssemblerX8632TestBase() { reset(); }
40 39
41 void reset() { Assembler.reset(new AssemblerX8632()); } 40 void reset() { Assembler.reset(new AssemblerX8632()); }
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 839
841 bool NeedsEpilogue; 840 bool NeedsEpilogue;
842 uint32_t NumAllocatedDwords; 841 uint32_t NumAllocatedDwords;
843 }; 842 };
844 843
845 } // end of namespace Test 844 } // end of namespace Test
846 } // end of namespace X8632 845 } // end of namespace X8632
847 } // end of namespace Ice 846 } // end of namespace Ice
848 847
849 #endif // ASSEMBLERX8632_TESTUTIL_H_ 848 #endif // ASSEMBLERX8632_TESTUTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698