| Index: test/cctest/types-fuzz.h
|
| diff --git a/test/cctest/types-fuzz.h b/test/cctest/types-fuzz.h
|
| index 16bfd737ea235fd0ddcca862ae8f2e5e15c774de..caa382c65ec1f9b9fdebe3f0783c2738cbf63f9d 100644
|
| --- a/test/cctest/types-fuzz.h
|
| +++ b/test/cctest/types-fuzz.h
|
| @@ -59,8 +59,8 @@ class Types {
|
| object2 = isolate->factory()->NewJSObjectFromMap(object_map);
|
| array = isolate->factory()->NewJSArray(20);
|
| uninitialized = isolate->factory()->uninitialized_value();
|
| - SmiConstant = Type::Constant(smi, zone);
|
| - Signed32Constant = Type::Constant(signed32, zone);
|
| + SmiConstant = Type::NewConstant(smi, zone);
|
| + Signed32Constant = Type::NewConstant(signed32, zone);
|
|
|
| ObjectConstant1 = Type::Constant(object1, zone);
|
| ObjectConstant2 = Type::Constant(object2, zone);
|
| @@ -74,7 +74,7 @@ class Types {
|
| values.push_back(array);
|
| values.push_back(uninitialized);
|
| for (ValueVector::iterator it = values.begin(); it != values.end(); ++it) {
|
| - types.push_back(Type::Constant(*it, zone));
|
| + types.push_back(Type::NewConstant(*it, zone));
|
| }
|
|
|
| integers.push_back(isolate->factory()->NewNumber(-V8_INFINITY));
|
| @@ -129,6 +129,10 @@ class Types {
|
|
|
| Type* Of(Handle<i::Object> value) { return Type::Of(value, zone_); }
|
|
|
| + Type* NewConstant(Handle<i::Object> value) {
|
| + return Type::NewConstant(value, zone_);
|
| + }
|
| +
|
| Type* Constant(Handle<i::Object> value) {
|
| return Type::Constant(value, zone_);
|
| }
|
| @@ -170,7 +174,7 @@ class Types {
|
| }
|
| case 1: { // constant
|
| int i = rng_->NextInt(static_cast<int>(values.size()));
|
| - return Type::Constant(values[i], zone_);
|
| + return Type::NewConstant(values[i], zone_);
|
| }
|
| case 2: { // range
|
| int i = rng_->NextInt(static_cast<int>(integers.size()));
|
|
|