Index: src/x64/virtual-frame-x64.cc |
=================================================================== |
--- src/x64/virtual-frame-x64.cc (revision 4250) |
+++ src/x64/virtual-frame-x64.cc (working copy) |
@@ -211,12 +211,7 @@ |
void VirtualFrame::EmitPush(Handle<Object> value) { |
ASSERT(stack_pointer_ == element_count() - 1); |
- NumberInfo info = NumberInfo::Unknown(); |
- if (value->IsSmi()) { |
- info = NumberInfo::Smi(); |
- } else if (value->IsHeapNumber()) { |
- info = NumberInfo::HeapNumber(); |
- } |
+ NumberInfo info = NumberInfo::TypeFromValue(value); |
elements_.Add(FrameElement::MemoryElement(info)); |
stack_pointer_++; |
__ Push(value); |