Index: test/cctest/compiler/test-simplified-lowering.cc |
diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc |
index d770aa3e32275fc86ffc74936911c3e3d263a586..96acf2e672291a8316e1c3bbb7758265db6f40ae 100644 |
--- a/test/cctest/compiler/test-simplified-lowering.cc |
+++ b/test/cctest/compiler/test-simplified-lowering.cc |
@@ -972,11 +972,8 @@ TEST(LowerNumberCmp_to_float64) { |
TEST(LowerNumberAddSub_to_int32) { |
HandleAndZoneScope scope; |
- Factory* f = scope.main_isolate()->factory(); |
- Type* small_range = |
- Type::Range(f->NewNumber(1), f->NewNumber(10), scope.main_zone()); |
- Type* large_range = |
- Type::Range(f->NewNumber(-1e+13), f->NewNumber(1e+14), scope.main_zone()); |
+ Type* small_range = Type::Range(1, 10, scope.main_zone()); |
+ Type* large_range = Type::Range(-1e+13, 1e+14, scope.main_zone()); |
static Type* types[] = {Type::Signed32(), Type::Integral32(), small_range, |
large_range}; |
@@ -996,11 +993,8 @@ TEST(LowerNumberAddSub_to_int32) { |
TEST(LowerNumberAddSub_to_uint32) { |
HandleAndZoneScope scope; |
- Factory* f = scope.main_isolate()->factory(); |
- Type* small_range = |
- Type::Range(f->NewNumber(1), f->NewNumber(10), scope.main_zone()); |
- Type* large_range = |
- Type::Range(f->NewNumber(-1e+13), f->NewNumber(1e+14), scope.main_zone()); |
+ Type* small_range = Type::Range(1, 10, scope.main_zone()); |
+ Type* large_range = Type::Range(-1e+13, 1e+14, scope.main_zone()); |
static Type* types[] = {Type::Signed32(), Type::Integral32(), small_range, |
large_range}; |