| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "src/compiler/types.h" |
| 7 #include "src/crankshaft/hydrogen-types.h" | 8 #include "src/crankshaft/hydrogen-types.h" |
| 8 #include "src/factory.h" | 9 #include "src/factory.h" |
| 9 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
| 10 #include "src/isolate.h" | 11 #include "src/isolate.h" |
| 11 // FIXME(mstarzinger, marja): This is weird, but required because of the missing | 12 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 12 // (disallowed) include: src/factory.h -> src/objects-inl.h | 13 // (disallowed) include: src/factory.h -> src/objects-inl.h |
| 13 #include "src/objects-inl.h" | 14 #include "src/objects-inl.h" |
| 14 #include "src/types.h" | |
| 15 // FIXME(mstarzinger, marja): This is weird, but required because of the missing | 15 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 16 // (disallowed) include: src/type-feedback-vector.h -> | 16 // (disallowed) include: src/type-feedback-vector.h -> |
| 17 // src/type-feedback-vector-inl.h | 17 // src/type-feedback-vector-inl.h |
| 18 #include "src/type-feedback-vector-inl.h" | 18 #include "src/type-feedback-vector-inl.h" |
| 19 #include "test/cctest/cctest.h" | 19 #include "test/cctest/cctest.h" |
| 20 #include "test/cctest/types-fuzz.h" | 20 #include "test/cctest/types-fuzz.h" |
| 21 | 21 |
| 22 using namespace v8::internal; | 22 using namespace v8::internal; |
| 23 using namespace v8::internal::compiler; |
| 23 | 24 |
| 24 namespace { | 25 namespace { |
| 25 | 26 |
| 26 // Testing auxiliaries (breaking the Type abstraction). | 27 // Testing auxiliaries (breaking the Type abstraction). |
| 27 | 28 |
| 28 | 29 |
| 29 static bool IsInteger(double x) { | 30 static bool IsInteger(double x) { |
| 30 return nearbyint(x) == x && !i::IsMinusZero(x); // Allows for infinities. | 31 return nearbyint(x) == x && !i::IsMinusZero(x); // Allows for infinities. |
| 31 } | 32 } |
| 32 | 33 |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 | 1183 |
| 1183 TEST(Union3) { Tests().Union3(); } | 1184 TEST(Union3) { Tests().Union3(); } |
| 1184 | 1185 |
| 1185 TEST(Union4) { Tests().Union4(); } | 1186 TEST(Union4) { Tests().Union4(); } |
| 1186 | 1187 |
| 1187 TEST(Intersect) { Tests().Intersect(); } | 1188 TEST(Intersect) { Tests().Intersect(); } |
| 1188 | 1189 |
| 1189 TEST(Distributivity) { Tests().Distributivity(); } | 1190 TEST(Distributivity) { Tests().Distributivity(); } |
| 1190 | 1191 |
| 1191 TEST(GetRange) { Tests().GetRange(); } | 1192 TEST(GetRange) { Tests().GetRange(); } |
| OLD | NEW |