| 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 #include <limits> | 5 #include <limits> |
| 6 | 6 |
| 7 #include "src/compiler/change-lowering.h" | 7 #include "src/compiler/change-lowering.h" |
| 8 #include "src/compiler/control-builders.h" | 8 #include "src/compiler/control-builders.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 235 } |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 if (Pipeline::SupportedTarget()) { | 239 if (Pipeline::SupportedTarget()) { |
| 240 FOR_FLOAT64_INPUTS(i) { | 240 FOR_FLOAT64_INPUTS(i) { |
| 241 double input = *i; | 241 double input = *i; |
| 242 { | 242 { |
| 243 Handle<Object> number = t.factory()->NewNumber(input); | 243 Handle<Object> number = t.factory()->NewNumber(input); |
| 244 t.Call(*number); | 244 t.Call(*number); |
| 245 CHECK_EQ(input, result); | 245 CheckDoubleEq(input, result); |
| 246 } | 246 } |
| 247 | 247 |
| 248 { | 248 { |
| 249 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); | 249 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); |
| 250 t.Call(*number); | 250 t.Call(*number); |
| 251 CHECK_EQ(input, result); | 251 CheckDoubleEq(input, result); |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 } | 255 } |
| 256 | 256 |
| 257 | 257 |
| 258 TEST(RunChangeBoolToBit) { | 258 TEST(RunChangeBoolToBit) { |
| 259 ChangesLoweringTester<int32_t> t(kMachAnyTagged); | 259 ChangesLoweringTester<int32_t> t(kMachAnyTagged); |
| 260 t.BuildAndLower(t.simplified()->ChangeBoolToBit()); | 260 t.BuildAndLower(t.simplified()->ChangeBoolToBit()); |
| 261 | 261 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 input = *i; | 390 input = *i; |
| 391 Object* result = t.CallWithPotentialGC<Object>(); | 391 Object* result = t.CallWithPotentialGC<Object>(); |
| 392 t.CheckNumber(input, result); | 392 t.CheckNumber(input, result); |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 | 397 |
| 398 #endif // V8_TURBOFAN_BACKEND | 398 #endif // V8_TURBOFAN_BACKEND |
| OLD | NEW |