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

Side by Side Diff: test/cctest/test-utils-a64.h

Issue 194473005: A64: Rename k<Y>RegSize to k<Y>RegSizeInBits, and k<Y>RegSizeInBytes to k<Y>RegSize. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
« no previous file with comments | « test/cctest/test-assembler-a64.cc ('k') | test/cctest/test-utils-a64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // NZCV flags, stored in bits 28 to 31. 156 // NZCV flags, stored in bits 28 to 31.
157 // bit[31] : Negative 157 // bit[31] : Negative
158 // bit[30] : Zero 158 // bit[30] : Zero
159 // bit[29] : Carry 159 // bit[29] : Carry
160 // bit[28] : oVerflow 160 // bit[28] : oVerflow
161 uint64_t flags_; 161 uint64_t flags_;
162 } dump_; 162 } dump_;
163 163
164 static dump_t for_sizeof(); 164 static dump_t for_sizeof();
165 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kDRegSizeInBytes); 165 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kDRegSize);
166 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kSRegSizeInBytes); 166 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kSRegSize);
167 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kXRegSizeInBytes); 167 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kXRegSize);
168 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kWRegSizeInBytes); 168 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kWRegSize);
169 STATIC_ASSERT(sizeof(for_sizeof().x_[0]) == kXRegSizeInBytes); 169 STATIC_ASSERT(sizeof(for_sizeof().x_[0]) == kXRegSize);
170 STATIC_ASSERT(sizeof(for_sizeof().w_[0]) == kWRegSizeInBytes); 170 STATIC_ASSERT(sizeof(for_sizeof().w_[0]) == kWRegSize);
171 }; 171 };
172 172
173 // Some of these methods don't use the RegisterDump argument, but they have to 173 // Some of these methods don't use the RegisterDump argument, but they have to
174 // accept them so that they can overload those that take register arguments. 174 // accept them so that they can overload those that take register arguments.
175 bool Equal32(uint32_t expected, const RegisterDump*, uint32_t result); 175 bool Equal32(uint32_t expected, const RegisterDump*, uint32_t result);
176 bool Equal64(uint64_t expected, const RegisterDump*, uint64_t result); 176 bool Equal64(uint64_t expected, const RegisterDump*, uint64_t result);
177 177
178 bool EqualFP32(float expected, const RegisterDump*, float result); 178 bool EqualFP32(float expected, const RegisterDump*, float result);
179 bool EqualFP64(double expected, const RegisterDump*, double result); 179 bool EqualFP64(double expected, const RegisterDump*, double result);
180 180
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // As Clobber, but for FP registers. 224 // As Clobber, but for FP registers.
225 void ClobberFP(MacroAssembler* masm, RegList reg_list, 225 void ClobberFP(MacroAssembler* masm, RegList reg_list,
226 double const value = kFP64SignallingNaN); 226 double const value = kFP64SignallingNaN);
227 227
228 // As Clobber, but for a CPURegList with either FP or integer registers. When 228 // As Clobber, but for a CPURegList with either FP or integer registers. When
229 // using this method, the clobber value is always the default for the basic 229 // using this method, the clobber value is always the default for the basic
230 // Clobber or ClobberFP functions. 230 // Clobber or ClobberFP functions.
231 void Clobber(MacroAssembler* masm, CPURegList reg_list); 231 void Clobber(MacroAssembler* masm, CPURegList reg_list);
232 232
233 #endif // V8_A64_TEST_UTILS_A64_H_ 233 #endif // V8_A64_TEST_UTILS_A64_H_
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-a64.cc ('k') | test/cctest/test-utils-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698