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 "test/cctest/cctest.h" | 5 #include "test/cctest/cctest.h" |
6 #include "test/cctest/compiler/codegen-tester.h" | 6 #include "test/cctest/compiler/codegen-tester.h" |
7 #include "test/cctest/compiler/value-helper.h" | 7 #include "test/cctest/compiler/value-helper.h" |
8 | 8 |
9 using namespace v8::internal; | 9 namespace v8 { |
10 using namespace v8::internal::compiler; | 10 namespace internal { |
| 11 namespace compiler { |
11 | 12 |
12 TEST(CompareWrapper) { | 13 TEST(CompareWrapper) { |
13 // Who tests the testers? | 14 // Who tests the testers? |
14 // If CompareWrapper is broken, then test expectations will be broken. | 15 // If CompareWrapper is broken, then test expectations will be broken. |
15 CompareWrapper wWord32Equal(IrOpcode::kWord32Equal); | 16 CompareWrapper wWord32Equal(IrOpcode::kWord32Equal); |
16 CompareWrapper wInt32LessThan(IrOpcode::kInt32LessThan); | 17 CompareWrapper wInt32LessThan(IrOpcode::kInt32LessThan); |
17 CompareWrapper wInt32LessThanOrEqual(IrOpcode::kInt32LessThanOrEqual); | 18 CompareWrapper wInt32LessThanOrEqual(IrOpcode::kInt32LessThanOrEqual); |
18 CompareWrapper wUint32LessThan(IrOpcode::kUint32LessThan); | 19 CompareWrapper wUint32LessThan(IrOpcode::kUint32LessThan); |
19 CompareWrapper wUint32LessThanOrEqual(IrOpcode::kUint32LessThanOrEqual); | 20 CompareWrapper wUint32LessThanOrEqual(IrOpcode::kUint32LessThanOrEqual); |
20 | 21 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 } | 562 } |
562 | 563 |
563 { | 564 { |
564 RawMachineAssemblerTester<int32_t> m; | 565 RawMachineAssemblerTester<int32_t> m; |
565 Float64BinopTester bt(&m); | 566 Float64BinopTester bt(&m); |
566 bt.AddReturn(bt.param1); | 567 bt.AddReturn(bt.param1); |
567 | 568 |
568 FOR_FLOAT64_INPUTS(i) { CheckDoubleEq(*i, bt.call(-11.25, *i)); } | 569 FOR_FLOAT64_INPUTS(i) { CheckDoubleEq(*i, bt.call(-11.25, *i)); } |
569 } | 570 } |
570 } | 571 } |
| 572 |
| 573 } // namespace compiler |
| 574 } // namespace internal |
| 575 } // namespace v8 |
OLD | NEW |