Index: src/register-allocator-inl.h |
=================================================================== |
--- src/register-allocator-inl.h (revision 4250) |
+++ src/register-allocator-inl.h (working copy) |
@@ -106,13 +106,7 @@ |
NumberInfo Result::number_info() const { |
ASSERT(is_valid()); |
- if (!is_constant()) { |
- return NumberInfo::FromInt(NumberInfoField::decode(value_)); |
- } |
- Handle<Object> value = handle(); |
- if (value->IsSmi()) return NumberInfo::Smi(); |
- if (value->IsHeapNumber()) return NumberInfo::HeapNumber(); |
- return NumberInfo::Unknown(); |
+ return NumberInfo::FromInt(NumberInfoField::decode(value_)); |
} |
@@ -138,8 +132,8 @@ |
} |
-bool Result::is_heap_number() const { |
- return number_info().IsHeapNumber(); |
+bool Result::is_double() const { |
+ return number_info().IsDouble(); |
} |
} } // namespace v8::internal |