Index: test/cctest/compiler/test-typer.cc |
diff --git a/test/cctest/compiler/test-typer.cc b/test/cctest/compiler/test-typer.cc |
index eb5e540881c0e4a331a3f7619eb1bf9fa9a42c2f..d6aaba5927a384df2b7852c454dd34085874750d 100644 |
--- a/test/cctest/compiler/test-typer.cc |
+++ b/test/cctest/compiler/test-typer.cc |
@@ -87,11 +87,8 @@ class TyperTester : public HandleAndZoneScope, public GraphAndBuilders { |
} |
Type* NewRange(double i, double j) { |
- Factory* f = isolate()->factory(); |
- i::Handle<i::Object> min = f->NewNumber(i); |
- i::Handle<i::Object> max = f->NewNumber(j); |
- if (min->Number() > max->Number()) std::swap(min, max); |
- return Type::Range(min, max, main_zone()); |
+ if (i > j) std::swap(i, j); |
+ return Type::Range(i, j, main_zone()); |
} |
double RandomInt(double min, double max) { |
@@ -113,7 +110,7 @@ class TyperTester : public HandleAndZoneScope, public GraphAndBuilders { |
} |
double RandomInt(Type::RangeType* range) { |
- return RandomInt(range->Min()->Number(), range->Max()->Number()); |
+ return RandomInt(range->Min(), range->Max()); |
} |
// Careful, this function runs O(max_width^5) trials. |