OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 SmiConstant = Type::Constant(smi, region); | 66 SmiConstant = Type::Constant(smi, region); |
67 Signed32Constant = Type::Constant(signed32, region); | 67 Signed32Constant = Type::Constant(signed32, region); |
68 ObjectConstant1 = Type::Constant(object1, region); | 68 ObjectConstant1 = Type::Constant(object1, region); |
69 ObjectConstant2 = Type::Constant(object2, region); | 69 ObjectConstant2 = Type::Constant(object2, region); |
70 ArrayConstant = Type::Constant(array, region); | 70 ArrayConstant = Type::Constant(array, region); |
71 for (ValueVector::iterator it = values.begin(); it != values.end(); ++it) { | 71 for (ValueVector::iterator it = values.begin(); it != values.end(); ++it) { |
72 types.push_back(Type::Constant(*it, region)); | 72 types.push_back(Type::Constant(*it, region)); |
73 } | 73 } |
74 | 74 |
75 while (types.size() < kMaxTypes) { | 75 while (types.size() < kMaxTypes) { |
76 size_t i = rng.NextInt(types.size()); | 76 size_t i = rng.NextInt(static_cast<int>(types.size())); |
77 size_t j = rng.NextInt(types.size()); | 77 size_t j = rng.NextInt(static_cast<int>(types.size())); |
78 if (i != j) types.push_back(Type::Union(types[i], types[j], region)); | 78 if (i != j) types.push_back(Type::Union(types[i], types[j], region)); |
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 RandomNumberGenerator rng; | 82 RandomNumberGenerator rng; |
83 | 83 |
84 #define DECLARE_TYPE(name, value) TypeHandle name; | 84 #define DECLARE_TYPE(name, value) TypeHandle name; |
85 BITSET_TYPE_LIST(DECLARE_TYPE) | 85 BITSET_TYPE_LIST(DECLARE_TYPE) |
86 #undef DECLARE_TYPE | 86 #undef DECLARE_TYPE |
87 | 87 |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 ZoneTests().Intersect(); | 1066 ZoneTests().Intersect(); |
1067 HeapTests().Intersect(); | 1067 HeapTests().Intersect(); |
1068 } | 1068 } |
1069 | 1069 |
1070 | 1070 |
1071 TEST(Convert) { | 1071 TEST(Convert) { |
1072 CcTest::InitializeVM(); | 1072 CcTest::InitializeVM(); |
1073 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>(); | 1073 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>(); |
1074 HeapTests().Convert<Type, Type*, Zone, ZoneRep>(); | 1074 HeapTests().Convert<Type, Type*, Zone, ZoneRep>(); |
1075 } | 1075 } |
OLD | NEW |