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 <functional> | 5 #include <functional> |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties.h" |
10 #include "src/compiler/typer.h" | 10 #include "src/compiler/typer.h" |
11 #include "test/cctest/cctest.h" | 11 #include "test/cctest/cctest.h" |
12 #include "test/cctest/compiler/graph-builder-tester.h" | 12 #include "test/cctest/compiler/graph-builder-tester.h" |
13 #include "test/cctest/types-fuzz.h" | 13 #include "test/cctest/types-fuzz.h" |
14 | 14 |
15 using namespace v8::internal; | 15 using namespace v8::internal; |
16 using namespace v8::internal::compiler; | 16 using namespace v8::internal::compiler; |
17 | 17 |
18 | 18 |
19 // TODO(titzer): generate a large set of deterministic inputs for these tests. | 19 // TODO(titzer): generate a large set of deterministic inputs for these tests. |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 V(Modulus) | 368 V(Modulus) |
369 | 369 |
370 | 370 |
371 #define TEST_FUNC(name) \ | 371 #define TEST_FUNC(name) \ |
372 TEST(Monotonicity_##name) { \ | 372 TEST(Monotonicity_##name) { \ |
373 TyperTester t; \ | 373 TyperTester t; \ |
374 t.TestBinaryMonotonicity(t.javascript_.name()); \ | 374 t.TestBinaryMonotonicity(t.javascript_.name()); \ |
375 } | 375 } |
376 JSBINOP_LIST(TEST_FUNC) | 376 JSBINOP_LIST(TEST_FUNC) |
377 #undef TEST_FUNC | 377 #undef TEST_FUNC |
OLD | NEW |