| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 integers.push_back(isolate->factory()->NewNumber(+V8_INFINITY)); | 96 integers.push_back(isolate->factory()->NewNumber(+V8_INFINITY)); |
| 97 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); | 97 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); |
| 98 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); | 98 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); |
| 99 for (int i = 0; i < 10; ++i) { | 99 for (int i = 0; i < 10; ++i) { |
| 100 double x = rng_->NextInt(); | 100 double x = rng_->NextInt(); |
| 101 integers.push_back(isolate->factory()->NewNumber(x)); | 101 integers.push_back(isolate->factory()->NewNumber(x)); |
| 102 x *= rng_->NextInt(); | 102 x *= rng_->NextInt(); |
| 103 if (!IsMinusZero(x)) integers.push_back(isolate->factory()->NewNumber(x)); | 103 if (!IsMinusZero(x)) integers.push_back(isolate->factory()->NewNumber(x)); |
| 104 } | 104 } |
| 105 | 105 |
| 106 Integer = Type::Range(isolate->factory()->NewNumber(-V8_INFINITY), |
| 107 isolate->factory()->NewNumber(+V8_INFINITY), region); |
| 108 |
| 106 NumberArray = Type::Array(Number, region); | 109 NumberArray = Type::Array(Number, region); |
| 107 StringArray = Type::Array(String, region); | 110 StringArray = Type::Array(String, region); |
| 108 AnyArray = Type::Array(Any, region); | 111 AnyArray = Type::Array(Any, region); |
| 109 | 112 |
| 110 SignedFunction1 = Type::Function(SignedSmall, SignedSmall, region); | 113 SignedFunction1 = Type::Function(SignedSmall, SignedSmall, region); |
| 111 NumberFunction1 = Type::Function(Number, Number, region); | 114 NumberFunction1 = Type::Function(Number, Number, region); |
| 112 NumberFunction2 = Type::Function(Number, Number, Number, region); | 115 NumberFunction2 = Type::Function(Number, Number, Number, region); |
| 113 MethodFunction = Type::Function(String, Object, 0, region); | 116 MethodFunction = Type::Function(String, Object, 0, region); |
| 114 | 117 |
| 115 for (int i = 0; i < 30; ++i) { | 118 for (int i = 0; i < 30; ++i) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 138 TypeHandle NumberClass; | 141 TypeHandle NumberClass; |
| 139 TypeHandle UninitializedClass; | 142 TypeHandle UninitializedClass; |
| 140 | 143 |
| 141 TypeHandle SmiConstant; | 144 TypeHandle SmiConstant; |
| 142 TypeHandle Signed32Constant; | 145 TypeHandle Signed32Constant; |
| 143 TypeHandle ObjectConstant1; | 146 TypeHandle ObjectConstant1; |
| 144 TypeHandle ObjectConstant2; | 147 TypeHandle ObjectConstant2; |
| 145 TypeHandle ArrayConstant; | 148 TypeHandle ArrayConstant; |
| 146 TypeHandle UninitializedConstant; | 149 TypeHandle UninitializedConstant; |
| 147 | 150 |
| 151 TypeHandle Integer; |
| 152 |
| 148 TypeHandle NumberArray; | 153 TypeHandle NumberArray; |
| 149 TypeHandle StringArray; | 154 TypeHandle StringArray; |
| 150 TypeHandle AnyArray; | 155 TypeHandle AnyArray; |
| 151 | 156 |
| 152 TypeHandle SignedFunction1; | 157 TypeHandle SignedFunction1; |
| 153 TypeHandle NumberFunction1; | 158 TypeHandle NumberFunction1; |
| 154 TypeHandle NumberFunction2; | 159 TypeHandle NumberFunction2; |
| 155 TypeHandle MethodFunction; | 160 TypeHandle MethodFunction; |
| 156 | 161 |
| 157 typedef std::vector<TypeHandle> TypeVector; | 162 typedef std::vector<TypeHandle> TypeVector; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 313 |
| 309 private: | 314 private: |
| 310 Region* region_; | 315 Region* region_; |
| 311 v8::base::RandomNumberGenerator* rng_; | 316 v8::base::RandomNumberGenerator* rng_; |
| 312 }; | 317 }; |
| 313 | 318 |
| 314 | 319 |
| 315 } } // namespace v8::internal | 320 } } // namespace v8::internal |
| 316 | 321 |
| 317 #endif | 322 #endif |
| OLD | NEW |