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