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

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

Issue 169523005: make a64 compile on mavericks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 uint64_t wsp_; 154 uint64_t wsp_;
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_ASSERT(sizeof(dump_.d_[0]) == kDRegSizeInBytes); 164 static dump_t for_sizeof();
165 STATIC_ASSERT(sizeof(dump_.s_[0]) == kSRegSizeInBytes); 165 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kDRegSizeInBytes);
166 STATIC_ASSERT(sizeof(dump_.d_[0]) == kXRegSizeInBytes); 166 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kSRegSizeInBytes);
167 STATIC_ASSERT(sizeof(dump_.s_[0]) == kWRegSizeInBytes); 167 STATIC_ASSERT(sizeof(for_sizeof().d_[0]) == kXRegSizeInBytes);
168 STATIC_ASSERT(sizeof(dump_.x_[0]) == kXRegSizeInBytes); 168 STATIC_ASSERT(sizeof(for_sizeof().s_[0]) == kWRegSizeInBytes);
169 STATIC_ASSERT(sizeof(dump_.w_[0]) == kWRegSizeInBytes); 169 STATIC_ASSERT(sizeof(for_sizeof().x_[0]) == kXRegSizeInBytes);
170 STATIC_ASSERT(sizeof(for_sizeof().w_[0]) == kWRegSizeInBytes);
170 }; 171 };
171 172
172 // 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
173 // 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.
174 bool Equal32(uint32_t expected, const RegisterDump*, uint32_t result); 175 bool Equal32(uint32_t expected, const RegisterDump*, uint32_t result);
175 bool Equal64(uint64_t expected, const RegisterDump*, uint64_t result); 176 bool Equal64(uint64_t expected, const RegisterDump*, uint64_t result);
176 177
177 bool EqualFP32(float expected, const RegisterDump*, float result); 178 bool EqualFP32(float expected, const RegisterDump*, float result);
178 bool EqualFP64(double expected, const RegisterDump*, double result); 179 bool EqualFP64(double expected, const RegisterDump*, double result);
179 180
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // As Clobber, but for FP registers. 224 // As Clobber, but for FP registers.
224 void ClobberFP(MacroAssembler* masm, RegList reg_list, 225 void ClobberFP(MacroAssembler* masm, RegList reg_list,
225 double const value = kFP64SignallingNaN); 226 double const value = kFP64SignallingNaN);
226 227
227 // 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
228 // 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
229 // Clobber or ClobberFP functions. 230 // Clobber or ClobberFP functions.
230 void Clobber(MacroAssembler* masm, CPURegList reg_list); 231 void Clobber(MacroAssembler* masm, CPURegList reg_list);
231 232
232 #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