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

Side by Side Diff: src/trusted/validator_arm/baseline_classes_statics.cc

Issue 10356115: Clean up code to clarify we are only tracking the condition flags of APSR. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/trusted/validator_arm/baseline_classes.h" 7 #include "native_client/src/trusted/validator_arm/baseline_classes.h"
8 8
9 // Implementation of static interface accessors. This are put in a 9 // Implementation of static interface accessors. This are put in a
10 // separate file, since they are only needed if one compiles in dbg 10 // separate file, since they are only needed if one compiles in dbg
11 // mode rather than opt. 11 // mode rather than opt.
12 12
13 namespace nacl_arm_dec { 13 namespace nacl_arm_dec {
14 14
15 // Unary1RegisterImmediateOp 15 // Unary1RegisterImmediateOp
16 const Imm12Bits0To11Interface Unary1RegisterImmediateOp::imm12; 16 const Imm12Bits0To11Interface Unary1RegisterImmediateOp::imm12;
17 const RegDBits12To15Interface Unary1RegisterImmediateOp::d; 17 const RegDBits12To15Interface Unary1RegisterImmediateOp::d;
18 const Imm4Bits16To19Interface Unary1RegisterImmediateOp::imm4; 18 const Imm4Bits16To19Interface Unary1RegisterImmediateOp::imm4;
19 const UpdatesFlagsRegisterBit20Interface 19 const UpdatesConditionsBit20Interface
20 Unary1RegisterImmediateOp::flags; 20 Unary1RegisterImmediateOp::conditions;
21 const ConditionBits28To31Interface Unary1RegisterImmediateOp::cond; 21 const ConditionBits28To31Interface Unary1RegisterImmediateOp::cond;
22 22
23 // Binary2RegisterImmediateOp 23 // Binary2RegisterImmediateOp
24 const Imm12Bits0To11Interface Binary2RegisterImmediateOp::imm; 24 const Imm12Bits0To11Interface Binary2RegisterImmediateOp::imm;
25 const RegDBits12To15Interface Binary2RegisterImmediateOp::d; 25 const RegDBits12To15Interface Binary2RegisterImmediateOp::d;
26 const RegNBits16To19Interface Binary2RegisterImmediateOp::n; 26 const RegNBits16To19Interface Binary2RegisterImmediateOp::n;
27 const UpdatesFlagsRegisterBit20Interface Binary2RegisterImmediateOp::flags; 27 const UpdatesConditionsBit20Interface Binary2RegisterImmediateOp::conditions;
28 const ConditionBits28To31Interface Binary2RegisterImmediateOp::cond; 28 const ConditionBits28To31Interface Binary2RegisterImmediateOp::cond;
29 29
30 // BinaryRegisterImmediateTest:: 30 // BinaryRegisterImmediateTest::
31 const Imm12Bits0To11Interface BinaryRegisterImmediateTest::imm; 31 const Imm12Bits0To11Interface BinaryRegisterImmediateTest::imm;
32 const RegNBits16To19Interface BinaryRegisterImmediateTest::n; 32 const RegNBits16To19Interface BinaryRegisterImmediateTest::n;
33 const UpdatesFlagsRegisterBit20Interface BinaryRegisterImmediateTest::flags; 33 const UpdatesConditionsBit20Interface BinaryRegisterImmediateTest::conditions;
34 const ConditionBits28To31Interface BinaryRegisterImmediateTest::cond; 34 const ConditionBits28To31Interface BinaryRegisterImmediateTest::cond;
35 35
36 // Unary2RegisterOp 36 // Unary2RegisterOp
37 const RegMBits0To3Interface Unary2RegisterOp::m; 37 const RegMBits0To3Interface Unary2RegisterOp::m;
38 const RegDBits12To15Interface Unary2RegisterOp::d; 38 const RegDBits12To15Interface Unary2RegisterOp::d;
39 const UpdatesFlagsRegisterBit20Interface Unary2RegisterOp::flags; 39 const UpdatesConditionsBit20Interface Unary2RegisterOp::conditions;
40 const ConditionBits28To31Interface Unary2RegisterOp::cond; 40 const ConditionBits28To31Interface Unary2RegisterOp::cond;
41 41
42 // Binary3RegisterOp 42 // Binary3RegisterOp
43 const RegNBits0To3Interface Binary3RegisterOp::n; 43 const RegNBits0To3Interface Binary3RegisterOp::n;
44 const RegMBits8To11Interface Binary3RegisterOp::m; 44 const RegMBits8To11Interface Binary3RegisterOp::m;
45 const RegDBits12To15Interface Binary3RegisterOp::d; 45 const RegDBits12To15Interface Binary3RegisterOp::d;
46 const UpdatesFlagsRegisterBit20Interface Binary3RegisterOp::flags; 46 const UpdatesConditionsBit20Interface Binary3RegisterOp::conditions;
47 const ConditionBits28To31Interface Binary3RegisterOp::cond; 47 const ConditionBits28To31Interface Binary3RegisterOp::cond;
48 48
49 // Unary2RegisterImmedShiftedOp 49 // Unary2RegisterImmedShiftedOp
50 const RegMBits0To3Interface Unary2RegisterImmedShiftedOp::m; 50 const RegMBits0To3Interface Unary2RegisterImmedShiftedOp::m;
51 const ShiftTypeBits5To6Interface 51 const ShiftTypeBits5To6Interface Unary2RegisterImmedShiftedOp::shift_type;
52 Unary2RegisterImmedShiftedOp::shift_type;
53 const Imm5Bits7To11Interface Unary2RegisterImmedShiftedOp::imm; 52 const Imm5Bits7To11Interface Unary2RegisterImmedShiftedOp::imm;
54 const RegDBits12To15Interface Unary2RegisterImmedShiftedOp::d; 53 const RegDBits12To15Interface Unary2RegisterImmedShiftedOp::d;
55 const UpdatesFlagsRegisterBit20Interface 54 const UpdatesConditionsBit20Interface Unary2RegisterImmedShiftedOp::conditions;
56 Unary2RegisterImmedShiftedOp::flags; 55 const ConditionBits28To31Interface Unary2RegisterImmedShiftedOp::cond;
57 const ConditionBits28To31Interface
58 Unary2RegisterImmedShiftedOp::cond;
59 56
60 // Unary3RegisterShiftedOp 57 // Unary3RegisterShiftedOp
61 const RegMBits0To3Interface Unary3RegisterShiftedOp::m; 58 const RegMBits0To3Interface Unary3RegisterShiftedOp::m;
62 const ShiftTypeBits5To6Interface Unary3RegisterShiftedOp::shift_type; 59 const ShiftTypeBits5To6Interface Unary3RegisterShiftedOp::shift_type;
63 const RegSBits8To11Interface Unary3RegisterShiftedOp::s; 60 const RegSBits8To11Interface Unary3RegisterShiftedOp::s;
64 const RegDBits12To15Interface Unary3RegisterShiftedOp::d; 61 const RegDBits12To15Interface Unary3RegisterShiftedOp::d;
65 const UpdatesFlagsRegisterBit20Interface 62 const UpdatesConditionsBit20Interface Unary3RegisterShiftedOp::conditions;
66 Unary3RegisterShiftedOp::flags;
67 const ConditionBits28To31Interface Unary3RegisterShiftedOp::cond; 63 const ConditionBits28To31Interface Unary3RegisterShiftedOp::cond;
68 64
69 // Binary3RegisterImmedShiftedOp 65 // Binary3RegisterImmedShiftedOp
70 const RegMBits0To3Interface Binary3RegisterImmedShiftedOp::m; 66 const RegMBits0To3Interface Binary3RegisterImmedShiftedOp::m;
71 const ShiftTypeBits5To6Interface 67 const ShiftTypeBits5To6Interface Binary3RegisterImmedShiftedOp::shift_type;
72 Binary3RegisterImmedShiftedOp::shift_type;
73 const Imm5Bits7To11Interface Binary3RegisterImmedShiftedOp::imm; 68 const Imm5Bits7To11Interface Binary3RegisterImmedShiftedOp::imm;
74 const RegDBits12To15Interface Binary3RegisterImmedShiftedOp::d; 69 const RegDBits12To15Interface Binary3RegisterImmedShiftedOp::d;
75 const RegNBits16To19Interface Binary3RegisterImmedShiftedOp::n; 70 const RegNBits16To19Interface Binary3RegisterImmedShiftedOp::n;
76 const UpdatesFlagsRegisterBit20Interface 71 const UpdatesConditionsBit20Interface Binary3RegisterImmedShiftedOp::conditions;
77 Binary3RegisterImmedShiftedOp::flags;
78 const ConditionBits28To31Interface Binary3RegisterImmedShiftedOp::cond; 72 const ConditionBits28To31Interface Binary3RegisterImmedShiftedOp::cond;
79 73
80 // Binary4RegisterShiftedOp 74 // Binary4RegisterShiftedOp
81 const RegMBits0To3Interface Binary4RegisterShiftedOp::m; 75 const RegMBits0To3Interface Binary4RegisterShiftedOp::m;
82 const RegSBits8To11Interface Binary4RegisterShiftedOp::s; 76 const RegSBits8To11Interface Binary4RegisterShiftedOp::s;
83 const RegDBits12To15Interface Binary4RegisterShiftedOp::d; 77 const RegDBits12To15Interface Binary4RegisterShiftedOp::d;
84 const RegNBits16To19Interface Binary4RegisterShiftedOp::n; 78 const RegNBits16To19Interface Binary4RegisterShiftedOp::n;
85 const UpdatesFlagsRegisterBit20Interface 79 const UpdatesConditionsBit20Interface Binary4RegisterShiftedOp::conditions;
86 Binary4RegisterShiftedOp::flags;
87 const ConditionBits28To31Interface Binary4RegisterShiftedOp::cond; 80 const ConditionBits28To31Interface Binary4RegisterShiftedOp::cond;
88 81
89 // Binary2RegisterImmedShiftedTest:: 82 // Binary2RegisterImmedShiftedTest::
90 const RegMBits0To3Interface Binary2RegisterImmedShiftedTest::m; 83 const RegMBits0To3Interface Binary2RegisterImmedShiftedTest::m;
91 const ShiftTypeBits5To6Interface 84 const ShiftTypeBits5To6Interface Binary2RegisterImmedShiftedTest::shift_type;
92 Binary2RegisterImmedShiftedTest::shift_type;
93 const Imm5Bits7To11Interface Binary2RegisterImmedShiftedTest::imm; 85 const Imm5Bits7To11Interface Binary2RegisterImmedShiftedTest::imm;
94 const RegNBits16To19Interface Binary2RegisterImmedShiftedTest::n; 86 const RegNBits16To19Interface Binary2RegisterImmedShiftedTest::n;
95 const UpdatesFlagsRegisterBit20Interface 87 const UpdatesConditionsBit20Interface
96 Binary2RegisterImmedShiftedTest::flags; 88 Binary2RegisterImmedShiftedTest::conditions;
97 const ConditionBits28To31Interface 89 const ConditionBits28To31Interface Binary2RegisterImmedShiftedTest::cond;
98 Binary2RegisterImmedShiftedTest::cond;
99 90
100 // Binary3RegisterShiftedTest 91 // Binary3RegisterShiftedTest
101 const RegMBits0To3Interface Binary3RegisterShiftedTest::m; 92 const RegMBits0To3Interface Binary3RegisterShiftedTest::m;
102 const ShiftTypeBits5To6Interface Binary3RegisterShiftedTest::shift_type; 93 const ShiftTypeBits5To6Interface Binary3RegisterShiftedTest::shift_type;
103 const RegSBits8To11Interface Binary3RegisterShiftedTest::s; 94 const RegSBits8To11Interface Binary3RegisterShiftedTest::s;
104 const RegNBits16To19Interface Binary3RegisterShiftedTest::n; 95 const RegNBits16To19Interface Binary3RegisterShiftedTest::n;
105 const UpdatesFlagsRegisterBit20Interface 96 const UpdatesConditionsBit20Interface Binary3RegisterShiftedTest::conditions;
106 Binary3RegisterShiftedTest::flags;
107 const ConditionBits28To31Interface Binary3RegisterShiftedTest::cond; 97 const ConditionBits28To31Interface Binary3RegisterShiftedTest::cond;
108 98
109 } // namespace nacl_arm_dec 99 } // namespace nacl_arm_dec
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698