OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
7 | 7 |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 0x7fffffff, 0x56123761, 0x7fffff00, | 152 0x7fffffff, 0x56123761, 0x7fffff00, |
153 0x761c4761eeeeeeee, 0x80000000eeeeeeee, 0x88888888dddddddd, | 153 0x761c4761eeeeeeee, 0x80000000eeeeeeee, 0x88888888dddddddd, |
154 0xa0000000dddddddd, 0xddddddddaaaaaaaa, 0xe0000000aaaaaaaa, | 154 0xa0000000dddddddd, 0xddddddddaaaaaaaa, 0xe0000000aaaaaaaa, |
155 0xeeeeeeeeeeeeeeee, 0xfffffffdeeeeeeee, 0xf0000000dddddddd, | 155 0xeeeeeeeeeeeeeeee, 0xfffffffdeeeeeeee, 0xf0000000dddddddd, |
156 0x007fffffdddddddd, 0x003fffffaaaaaaaa, 0x001fffffaaaaaaaa, | 156 0x007fffffdddddddd, 0x003fffffaaaaaaaa, 0x001fffffaaaaaaaa, |
157 0x000fffff, 0x0007ffff, 0x0003ffff, | 157 0x000fffff, 0x0007ffff, 0x0003ffff, |
158 0x0001ffff, 0x0000ffff, 0x00007fff, | 158 0x0001ffff, 0x0000ffff, 0x00007fff, |
159 0x00003fff, 0x00001fff, 0x00000fff, | 159 0x00003fff, 0x00001fff, 0x00000fff, |
160 0x000007ff, 0x000003ff, 0x000001ff, | 160 0x000007ff, 0x000003ff, 0x000001ff, |
161 0x00003fffffffffff, 0x00001fffffffffff, 0x00000fffffffffff, | 161 0x00003fffffffffff, 0x00001fffffffffff, 0x00000fffffffffff, |
162 0x000007ffffffffff, 0x000003ffffffffff, 0x000001ffffffffff}; | 162 0x000007ffffffffff, 0x000003ffffffffff, 0x000001ffffffffff, |
| 163 0x8000008000000000, 0x8000008000000001, 0x8000000000000400, |
| 164 0x8000000000000401}; |
163 return std::vector<uint64_t>(&kValues[0], &kValues[arraysize(kValues)]); | 165 return std::vector<uint64_t>(&kValues[0], &kValues[arraysize(kValues)]); |
164 } | 166 } |
165 | 167 |
166 static const std::vector<double> nan_vector(size_t limit = 0) { | 168 static const std::vector<double> nan_vector(size_t limit = 0) { |
167 static const double nan = std::numeric_limits<double>::quiet_NaN(); | 169 static const double nan = std::numeric_limits<double>::quiet_NaN(); |
168 static const double values[] = {-nan, -V8_INFINITY * -0.0, | 170 static const double values[] = {-nan, -V8_INFINITY * -0.0, |
169 -V8_INFINITY * 0.0, V8_INFINITY * -0.0, | 171 -V8_INFINITY * 0.0, V8_INFINITY * -0.0, |
170 V8_INFINITY * 0.0, nan}; | 172 V8_INFINITY * 0.0, nan}; |
171 return std::vector<double>(&values[0], &values[arraysize(values)]); | 173 return std::vector<double>(&values[0], &values[arraysize(values)]); |
172 } | 174 } |
(...skipping 22 matching lines...) Expand all Loading... |
195 | 197 |
196 #define FOR_INT32_SHIFTS(var) for (int32_t var = 0; var < 32; var++) | 198 #define FOR_INT32_SHIFTS(var) for (int32_t var = 0; var < 32; var++) |
197 | 199 |
198 #define FOR_UINT32_SHIFTS(var) for (uint32_t var = 0; var < 32; var++) | 200 #define FOR_UINT32_SHIFTS(var) for (uint32_t var = 0; var < 32; var++) |
199 | 201 |
200 } // namespace compiler | 202 } // namespace compiler |
201 } // namespace internal | 203 } // namespace internal |
202 } // namespace v8 | 204 } // namespace v8 |
203 | 205 |
204 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 206 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
OLD | NEW |