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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "test/cctest/cctest.h" | 8 #include "test/cctest/cctest.h" |
9 #include "test/cctest/compiler/codegen-tester.h" | 9 #include "test/cctest/compiler/codegen-tester.h" |
10 #include "test/cctest/compiler/value-helper.h" | 10 #include "test/cctest/compiler/value-helper.h" |
11 | 11 |
12 using namespace v8::internal; | 12 namespace v8 { |
13 using namespace v8::internal::compiler; | 13 namespace internal { |
| 14 namespace compiler { |
14 | 15 |
15 typedef RawMachineAssembler::Label MLabel; | 16 typedef RawMachineAssembler::Label MLabel; |
16 | 17 |
17 static IrOpcode::Value int32cmp_opcodes[] = { | 18 static IrOpcode::Value int32cmp_opcodes[] = { |
18 IrOpcode::kWord32Equal, IrOpcode::kInt32LessThan, | 19 IrOpcode::kWord32Equal, IrOpcode::kInt32LessThan, |
19 IrOpcode::kInt32LessThanOrEqual, IrOpcode::kUint32LessThan, | 20 IrOpcode::kInt32LessThanOrEqual, IrOpcode::kUint32LessThan, |
20 IrOpcode::kUint32LessThanOrEqual}; | 21 IrOpcode::kUint32LessThanOrEqual}; |
21 | 22 |
22 | 23 |
23 TEST(BranchCombineWord32EqualZero_1) { | 24 TEST(BranchCombineWord32EqualZero_1) { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant | 452 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant |
452 : eq_constant) | 453 : eq_constant) |
453 : (cmp.Float64Compare(input_a, input_b) ? eq_constant | 454 : (cmp.Float64Compare(input_a, input_b) ? eq_constant |
454 : ne_constant); | 455 : ne_constant); |
455 CHECK_EQ(expected, m.Call()); | 456 CHECK_EQ(expected, m.Call()); |
456 } | 457 } |
457 } | 458 } |
458 } | 459 } |
459 } | 460 } |
460 } | 461 } |
| 462 |
| 463 } // namespace compiler |
| 464 } // namespace internal |
| 465 } // namespace v8 |
OLD | NEW |