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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "test/cctest/cctest.h" | 7 #include "test/cctest/cctest.h" |
8 #include "test/cctest/compiler/codegen-tester.h" | 8 #include "test/cctest/compiler/codegen-tester.h" |
9 #include "test/cctest/compiler/value-helper.h" | 9 #include "test/cctest/compiler/value-helper.h" |
10 | 10 |
11 #if V8_TURBOFAN_TARGET | |
12 | |
13 using namespace v8::internal; | 11 using namespace v8::internal; |
14 using namespace v8::internal::compiler; | 12 using namespace v8::internal::compiler; |
15 | 13 |
16 typedef RawMachineAssembler::Label MLabel; | 14 typedef RawMachineAssembler::Label MLabel; |
17 | 15 |
18 static IrOpcode::Value int32cmp_opcodes[] = { | 16 static IrOpcode::Value int32cmp_opcodes[] = { |
19 IrOpcode::kWord32Equal, IrOpcode::kInt32LessThan, | 17 IrOpcode::kWord32Equal, IrOpcode::kInt32LessThan, |
20 IrOpcode::kInt32LessThanOrEqual, IrOpcode::kUint32LessThan, | 18 IrOpcode::kInt32LessThanOrEqual, IrOpcode::kUint32LessThan, |
21 IrOpcode::kUint32LessThanOrEqual}; | 19 IrOpcode::kUint32LessThanOrEqual}; |
22 | 20 |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant | 450 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant |
453 : eq_constant) | 451 : eq_constant) |
454 : (cmp.Float64Compare(input_a, input_b) ? eq_constant | 452 : (cmp.Float64Compare(input_a, input_b) ? eq_constant |
455 : ne_constant); | 453 : ne_constant); |
456 CHECK_EQ(expected, m.Call()); | 454 CHECK_EQ(expected, m.Call()); |
457 } | 455 } |
458 } | 456 } |
459 } | 457 } |
460 } | 458 } |
461 } | 459 } |
462 #endif // V8_TURBOFAN_TARGET | |
OLD | NEW |